/* --- "Dark Matter" Theme System --- */
:root {
    --bg-void: #030014;
    /* Deepest Indigo/Black */
    --bg-panel: rgba(13, 13, 25, 0.6);

    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #475569;

    --neon-indigo: #818CF8;
    --neon-cyan: #22D3EE;
    --neon-purple: #C084FC;
    --neon-rose: #FB7185;

    --glow-strong: 0 0 20px rgba(129, 140, 248, 0.5);
    --glow-soft: 0 0 10px rgba(129, 140, 248, 0.2);

    --font-display: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-display);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- The Aurora Background --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #030014 60%);
    overflow: hidden;
}

.aurora-beam {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(99, 102, 241, 0.1) 60deg,
            transparent 120deg,
            rgba(192, 132, 252, 0.1) 180deg,
            transparent 240deg,
            rgba(34, 211, 238, 0.1) 300deg,
            transparent 360deg);
    filter: blur(80px);
    animation: aurora-spin 20s linear infinite;
    top: -50%;
    left: -50%;
    transform-origin: 50% 50%;
    width: 200%;
    height: 200%;
    opacity: 0.6;
    will-change: transform;
}

@keyframes aurora-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Layout Components --- */
.container-dashboard {
    max-width: 1400px;
    /* Wider for cinematic feel */
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.grid-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .grid-dashboard {
        grid-template-columns: 350px 1fr;
        /* Sidebar | Main Stage */
    }
}

/* --- Void Panels --- */
.panel-void {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Ultra subtle border */
    border-radius: 24px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.panel-void:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Stealth Inputs --- */
/* Inputs that look like part of the design until clicked */
.input-stealth-group {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s;
}

.input-stealth-group:focus-within {
    border-color: var(--neon-indigo);
}

.input-stealth {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    width: 100%;
    padding: 0.5rem 0;
    font-family: monospace;
    /* Tech feel for numbers */
}

.input-stealth:focus {
    outline: none;
}

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

.label-stealth {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Custom Select - Minimal */
.select-void {
    appearance: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    width: 100%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.select-void:hover {
    background: rgba(255, 255, 255, 0.06);
}

.select-void:focus {
    outline: none;
    border-color: var(--neon-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* --- Neon Sliders --- */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin: 1.5rem 0;
    cursor: grab;
}

input[type=range]:focus {
    outline: none;
}

/* Track */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    /* Thin laser line */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Thumb */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--bg-void);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    margin-top: -10px;
    /* Center */
    transition: transform 0.1s, box-shadow 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--neon-cyan);
    background: var(--neon-cyan);
}

/* --- Metrics Display --- */
.metric-huge {
    font-size: 3.5rem;
    font-weight: 300;
    /* Thin look */
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Toggle Switch (Cyber) --- */
.toggle-cyber-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-cyber {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    transition: all 0.3s;
}

.toggle-cyber::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

input:checked+.toggle-cyber {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10B981;
}

input:checked+.toggle-cyber::after {
    transform: translateX(24px);
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
}

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

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}