/* custom.css — minimal overrides, Tailwind handles the heavy lifting */

/* Smooth sidebar transition on mobile */
#sidebar {
    will-change: transform;
}

/* Pulsing dot animation for "today" banner */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
    animation: pulse-dot 1.4s ease-in-out infinite;
    vertical-align: middle;
}

/* Running enrichment spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

/* Collapsible summary arrow */
details > summary {
    list-style: none;
    cursor: pointer;
}
details > summary::-webkit-details-marker {
    display: none;
}
details[open] .summary-arrow {
    transform: rotate(90deg);
}
.summary-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

/* Monospace domain display */
.domain-mono {
    font-family: 'ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
}

/* Countdown text — fixed-width for alignment */
.countdown-text {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* Prevent body scroll when mobile sidebar open */
body.sidebar-open {
    overflow: hidden;
}

/* ==========================================================================
   Dashboard — Progress bars
   ========================================================================== */

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.progress-shimmer {
    position: relative;
    overflow: hidden;
}

.progress-shimmer::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s infinite;
}

.progress-fill {
    transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Dashboard — Fade-in animations
   ========================================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

/* ==========================================================================
   Dashboard — Event rows
   ========================================================================== */

.event-row {
    cursor: pointer;
    transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.event-row:hover {
    background-color: rgb(248 250 252);
    box-shadow: inset 3px 0 0 0 #6366f1;
}

.event-row:focus {
    outline: 2px solid #6366f1;
    outline-offset: -2px;
}

/* ==========================================================================
   Dashboard — Today banner pulse dot (rose)
   ========================================================================== */

.pulse-dot-rose {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    animation: pulse-dot 1s ease-in-out infinite;
    vertical-align: middle;
}

/* ==========================================================================
   Dashboard — Stat card hover lift
   ========================================================================== */

.stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
