:root {
    /* Light Theme */
    --color-base: #fafafa;
    /* neutral-50 */
    --color-panel: #ffffff;
    --color-border: #e5e5e5;
    /* neutral-200 */
    --color-text: #171717;
    /* neutral-900 */
    --color-muted: #737373;
    /* neutral-500 */
    --color-primary: #10b981;
    /* emerald-500 */
}

.dark {
    /* Dark Theme - optimized for a more "terminal/secops" vibe */
    --color-base: #09090b;
    /* zinc-950 */
    --color-panel: #18181b;
    /* zinc-900 */
    --color-border: #27272a;
    /* zinc-800 */
    --color-text: #fafafa;
    /* zinc-50 */
    --color-muted: #a1a1aa;
    /* zinc-400 */
    --color-primary: #10b981;
    /* emerald-500 */
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(161, 161, 170, 0.4);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(161, 161, 170, 0.8);
}

/* Glass UI */
.glass-nav {
    background: rgba(var(--color-panel), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.anim-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.scan-pulse-text {
    animation: pulseText 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Background Grid Pattern */
.bg-grid-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.dark .bg-grid-pattern::before {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Grade Colors (Injected via JS, fallback here) */
.grade-A,
.grade-APlus {
    color: #10b981;
}

/* emerald-500 */
.grade-B {
    color: #8b5cf6;
}

/* violet-500 */
.grade-C {
    color: #eab308;
}

/* yellow-500 */
.grade-D {
    color: #f97316;
}

/* orange-500 */
.grade-F {
    color: #ef4444;
}

/* red-500 */