/* Main Custom Styles for SLAQ */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-elevated, #f1f1f1);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-green-hover);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-base, #f3f3f3);
    border-top: 3px solid var(--brand-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Button Effects */
.btn-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Custom Focus Styles */
.focus-brand:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(157, 219, 44, 0.5);
}

/* Status Badges Animation */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.status-badge:hover {
    transform: scale(1.05);
}

/* Recording Active Pulse */
@keyframes recording-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

.recording-active {
    animation: recording-pulse 2s ease-in-out infinite;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    background-color: #10b981;
    color: white;
}

.toast-error {
    background-color: #ef4444;
    color: white;
}

.toast-info {
    background-color: #3b82f6;
    color: white;
}

.toast-warning {
    background-color: #f59e0b;
    color: white;
}

/* Mobile Menu Transition */
.mobile-menu {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

.mobile-menu.hidden {
    max-height: 0;
}

.mobile-menu:not(.hidden) {
    max-height: 500px;
}

/* Waveform Canvas Styles */
#waveform {
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.3s;
}

#waveform.recording {
    border-color: #ef4444;
}

/* Progress Bar Animation */
@keyframes progress {
    0% {
        width: 0%;
    }
}

.progress-bar {
    animation: progress 0.5s ease-out;
}

/* Table Row Hover */
table tbody tr {
    transition: background-color 0.2s;
}

table tbody tr:hover {
    background-color: var(--bg-card, #f9fafb);
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border-base) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Custom Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-brand {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green) 100%);
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .shadow-lg,
    .shadow-xl {
        box-shadow: none !important;
        border: 1px solid #e5e7eb;
    }
}

/* Theme Variables */
:root {
    --bg-base: #FFFFFF;
    --bg-card: #f9fafb;
    --bg-elevated: #f4f4f5;
    --text-primary: #000000;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    --border-base: #e4e4e7;
    --brand-green: #9DDB2C;
    --brand-green-hover: #8BC91F;
}

.dark {
    --bg-base: #0a0a0a;
    --bg-card: #111111;
    --bg-elevated: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #a1a1aa;
    --text-muted: #888888;
    --border-base: #2a2a2a;
}

/* Keep native control rendering stable while the app's class-based theme changes. */
:root { color-scheme: light dark; }

/* Semantic theme utilities used by the templates. */
.bg-base { background-color: var(--bg-base); }
.bg-card { background-color: var(--bg-card); }
.bg-elevated { background-color: var(--bg-elevated); }
.bg-card\/5 { background-color: color-mix(in srgb, var(--bg-card) 5%, transparent); }
.bg-card\/10 { background-color: color-mix(in srgb, var(--bg-card) 10%, transparent); }
.bg-card\/20 { background-color: color-mix(in srgb, var(--bg-card) 20%, transparent); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.border-bdr, .border-base { border-color: var(--border-base); }
.placeholder-muted::placeholder { color: var(--text-muted); }

.dark .dark\:bg-base { background-color: var(--bg-base); }
.dark .dark\:bg-card { background-color: var(--bg-card); }
.dark .dark\:bg-elevated { background-color: var(--bg-elevated); }
.dark .dark\:bg-base\/90 { background-color: color-mix(in srgb, var(--bg-base) 90%, transparent); }
.dark .dark\:bg-card\/50 { background-color: color-mix(in srgb, var(--bg-card) 50%, transparent); }
.dark .dark\:bg-card\/90 { background-color: color-mix(in srgb, var(--bg-card) 90%, transparent); }
.dark .dark\:bg-elevated\/40 { background-color: color-mix(in srgb, var(--bg-elevated) 40%, transparent); }
.dark .dark\:text-primary { color: var(--text-primary); }
.dark .dark\:text-secondary { color: var(--text-secondary); }
.dark .dark\:text-muted { color: var(--text-muted); }
.dark .dark\:border-bdr, .dark .dark\:border-base { border-color: var(--border-base); }
.dark .dark\:placeholder-muted::placeholder { color: var(--text-muted); }
.dark .dark\:hover\:bg-base:hover { background-color: var(--bg-base); }
.dark .dark\:hover\:bg-card:hover { background-color: var(--bg-card); }
.dark .dark\:hover\:bg-elevated:hover { background-color: var(--bg-elevated); }
.dark .dark\:hover\:text-primary:hover { color: var(--text-primary); }
.dark .dark\:hover\:border-bdr:hover { border-color: var(--border-base); }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6, .page-title, .title {
    font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
}

@keyframes pulseRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(157, 219, 44, 0.7); }
    50% { box-shadow: 0 0 0 20px rgba(157, 219, 44, 0); }
}

@keyframes waveform {
    0%   { transform: scaleY(0.3); }
    25%  { transform: scaleY(1.0); }
    50%  { transform: scaleY(0.4); }
    75%  { transform: scaleY(0.9); }
    100% { transform: scaleY(0.3); }
}

.wave-bar {
    transform-origin: bottom;
    animation: waveform 1.2s ease-in-out infinite;
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob { animation: blob 7s infinite; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

@keyframes popIn {
    from { opacity: 0; transform: scale(0.95) translateY(-5px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.notification-popup {
    transform-origin: top right;
    animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.notification-dropdown-panel { box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08) !important; }
.dark .notification-dropdown-panel { box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4) !important; }

.skeleton-shimmer {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border-base) 50%, var(--bg-elevated) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.recording-pulse { animation: pulseRing 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

syb { display: inline-block; padding: 2px 5px; margin: 2px; background: #9DDB2C; color: black; border-radius: 5px; font-weight: 500; }
rep, pro, block { display: inline-block; padding: 2px 5px; margin: 2px; background: #ef4444; color: white; border-radius: 5px; font-weight: 600; }
inter { display: inline-block; padding: 2px 5px; margin: 2px; background: #f97316; color: white; border-radius: 5px; font-style: italic; }

#toast-container { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { padding: 0.75rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; animation: fadeIn 0.3s ease-out; min-width: 220px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.toast-success { background: white; border: 1px solid #9DDB2C; color: #166534; }
.toast-error { background: white; border: 1px solid #ef4444; color: #991b1b; }
.toast-info { background: white; border: 1px solid #e4e4e7; color: #27272a; }
.dark .toast { background: #111111; }
.dark .toast-success { border: 1px solid #9DDB2C; color: #9DDB2C; }
.dark .toast-error { border: 1px solid #ef4444; color: #ef4444; }
.dark .toast-info { border: 1px solid #2a2a2a; color: #f5f5f5; }

.selection-green::selection { background-color: #9DDB2C; color: black; }

.grain-overlay::before {
    content: ""; position: absolute; inset: 0; z-index: 9999; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.8; mix-blend-mode: overlay; transform: translateZ(0);
}

#navbar { transition: max-width 0.5s ease, box-shadow 0.4s ease, backdrop-filter 0.3s ease, background-color 0.3s ease; }
#navbar.navbar-scrolled { max-width: 900px !important; box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.12); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
#navbar>div:first-child { transition: padding 0.4s ease; }
#navbar.navbar-scrolled>div:first-child { padding-top: 0.5rem; padding-bottom: 0.5rem; }
#mobile-menu-toggle.menu-open #bar-1 { transform: translateY(3px) rotate(45deg); }
#mobile-menu-toggle.menu-open #bar-2 { transform: translateY(-3px) rotate(-45deg); }
.dark #navbar.navbar-scrolled { box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.4); }


/* --- Extracted from base.html --- */
body {
            font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        /* Theme Variables */
        :root {
            /* Light Theme (Default) */
            --bg-base: #FFFFFF;
            --bg-card: #f9fafb;
            /* zinc-50 */
            --bg-elevated: #f4f4f5;
            /* zinc-100 */
            --text-primary: #000000;
            --text-secondary: #52525b;
            /* zinc-600 */
            --text-muted: #71717a;
            /* zinc-500 */
            --border-base: #e4e4e7;
            /* zinc-200 */
            --brand-green: #9DDB2C;
            --brand-green-hover: #8BC91F;
        }

        .dark {
            /* Dark Theme Override */
            --bg-base: #0a0a0a;
            --bg-card: #111111;
            --bg-elevated: #1a1a1a;
            --text-primary: #f5f5f5;
            --text-secondary: #a1a1aa;
            /* zinc-400 */
            --text-muted: #888888;
            --border-base: #2a2a2a;
        }

        body {
            background-color: var(--bg-base);
            color: var(--text-primary);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-16px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes shimmer {
            0% {
                background-position: -1000px 0;
            }

            100% {
                background-position: 1000px 0;
            }
        }

        @keyframes pulseRing {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(157, 219, 44, 0.7);
            }

            50% {
                box-shadow: 0 0 0 20px rgba(157, 219, 44, 0);
            }
        }



        .animate-blob {
            animation: blob 7s infinite;
        }

        .animation-delay-2000 {
            animation-delay: 2s;
        }

        .animation-delay-4000 {
            animation-delay: 4s;
        }

        .fade-in {
            animation: fadeIn 0.4s ease-out forwards;
        }

        @keyframes popIn {
            from { opacity: 0; transform: scale(0.95) translateY(-5px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .notification-popup {
            transform-origin: top right;
            animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .notification-dropdown-panel {
            box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08) !important;
        }
        .dark .notification-dropdown-panel {
            box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4) !important;
        }

        .slide-in {
            animation: slideIn 0.3s ease-out forwards;
        }

        .skeleton-shimmer {
            background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border-base) 50%, var(--bg-elevated) 75%);
            background-size: 1000px 100%;
            animation: shimmer 2s infinite linear;
        }

        .recording-pulse {
            animation: pulseRing 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }

        .loading-spinner {
            border: 3px solid var(--border-base);
            border-top: 3px solid #9DDB2C;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }

        /* Syllable tags */
        syb {
            display: inline-block;
            padding: 2px 5px;
            margin: 2px;
            background: #9DDB2C;
            color: black;
            border-radius: 5px;
            font-weight: 500;
        }

        rep,
        pro,
        block {
            display: inline-block;
            padding: 2px 5px;
            margin: 2px;
            background: #ef4444;
            color: white;
            border-radius: 5px;
            font-weight: 600;
        }

        inter {
            display: inline-block;
            padding: 2px 5px;
            margin: 2px;
            background: #f97316;
            color: white;
            border-radius: 5px;
            font-style: italic;
        }

        /* Toast */
        #toast-container {
            position: fixed;
            top: 1.25rem;
            right: 1.25rem;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .toast {
            padding: 0.75rem 1.25rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            animation: fadeIn 0.3s ease-out;
            min-width: 220px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .toast-success {
            background: white;
            border: 1px solid #9DDB2C;
            color: #166534;
        }

        .toast-error {
            background: white;
            border: 1px solid #ef4444;
            color: #991b1b;
        }

        .toast-info {
            background: white;
            border: 1px solid #e4e4e7;
            color: #27272a;
        }

        .dark .toast {
            background: #111111;
        }

        .dark .toast-success {
            border: 1px solid #9DDB2C;
            color: #9DDB2C;
        }

        .dark .toast-error {
            border: 1px solid #ef4444;
            color: #ef4444;
        }

        .dark .toast-info {
            border: 1px solid #2a2a2a;
            color: #f5f5f5;
        }

        .selection-green::selection {
            background-color: #9DDB2C;
            color: black;
        }

        /* Grain Overlay */
        .grain-overlay::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 9999;
            pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
            opacity: 0.8;
            mix-blend-mode: overlay;
            transform: translateZ(0);
        }

        /* Navbar scroll state */
        #navbar {
            transition: max-width 0.5s ease, box-shadow 0.4s ease, backdrop-filter 0.3s ease, background-color 0.3s ease;
        }

        #navbar.navbar-scrolled {
            max-width: 900px !important;
            box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.12);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
        }

        #navbar>div:first-child {
            transition: padding 0.4s ease;
        }

        #navbar.navbar-scrolled>div:first-child {
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
        }

        /* Hamburger Animation */
        #mobile-menu-toggle.menu-open #bar-1 {
            transform: translateY(3px) rotate(45deg);
        }

        #mobile-menu-toggle.menu-open #bar-2 {
            transform: translateY(-3px) rotate(-45deg);
        }

        .dark #navbar.navbar-scrolled {
            box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.4);
        }

/* --- Extracted from components.css --- */
/* Component-specific Styles */

/* Navbar Component */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.navbar-link {
    position: relative;
    transition: color 0.2s;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-green);
    transition: width 0.3s ease;
}

.navbar-link:hover::after {
    width: 100%;
}

/* Message Component */
.message {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
}

.message-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
}

.message-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.message-close:hover {
    opacity: 1;
}

/* Severity Badge Component */
.severity-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.severity-badge:hover {
    transform: scale(1.05);
}

.severity-none {
    background-color: #d1fae5;
    color: #065f46;
}

.severity-mild {
    background-color: #fef3c7;
    color: #92400e;
}

.severity-moderate {
    background-color: #fed7aa;
    color: #9a3412;
}

.severity-severe {
    background-color: #fecaca;
    color: #991b1b;
}

.dark .severity-none { background-color: rgba(16,185,129,.15); color: #34d399; }
.dark .severity-mild { background-color: rgba(251,191,36,.15); color: #fbbf24; }
.dark .severity-moderate { background-color: rgba(249,115,22,.15); color: #fb923c; }
.dark .severity-severe { background-color: rgba(239,68,68,.15); color: #f87171; }

/* Card Component */
.card {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--brand-green);
    color: black;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--brand-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(157, 219, 44, 0.3);
}

.btn-secondary {
    background-color: #6b7280;
    color: black;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #ef4444;
    color: black;
}

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
}

/* Form Component */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-base);
    color: var(--text-primary);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
    outline: none;
    border-color: var(--brand-green);
    ring: 2px;
    ring-color: rgba(157, 219, 44, 0.2);
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-help {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Modal Component */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    animation: fadeIn 0.2s;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-base);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 32rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 50;
    animation: scaleIn 0.2s;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Stats Card Component */
.stats-card {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Timeline Component */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-base);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: -0.375rem;
    top: 0.25rem;
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
    background-color: var(--brand-green);
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 0 2px var(--brand-green);
}

/* Badge Component */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-green {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-yellow {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-orange {
    background-color: #fed7aa;
    color: #9a3412;
}

.badge-red {
    background-color: #fecaca;
    color: #991b1b;
}

.badge-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-gray {
    background-color: #f3f4f6;
    color: #374151;
}

.dark .badge-green { background-color: rgba(16,185,129,.15); color: #34d399; }
.dark .badge-yellow { background-color: rgba(251,191,36,.15); color: #fbbf24; }
.dark .badge-orange { background-color: rgba(249,115,22,.15); color: #fb923c; }
.dark .badge-red { background-color: rgba(239,68,68,.15); color: #f87171; }
.dark .badge-blue { background-color: rgba(59,130,246,.15); color: #60a5fa; }
.dark .badge-gray { background-color: var(--bg-elevated); color: var(--text-secondary); }

/* Empty State Component */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #9ca3af;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}
