:root {
    --bg: #09090b;       /* Zinc 950 */
    --panel: #141416;    /* Deep technical gray */
    --border: #27272a;   /* Zinc 800 */
    --sky: #38bdf8;      /* Sky 400 */
    --emerald: #10b981;  /* Emerald 500 */
    --red: #ef4444;      /* Red 500 */
}

body {
    background-color: var(--bg);
    color: #f4f4f5;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
    box-sizing: border-box;
}

::-webkit-scrollbar {width: 10px;}
::-webkit-scrollbar-track {background: #09090b;}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 5px;
    border: 2px solid #09090b;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

.dashboard-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 320px 1fr; /* Split Pane: Sidebar controls vs Main view */
    }
}

/* High-tech Panels */
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.panel-header {
    font-size: 0.65rem;
    font-weight: 900;
    color: #a1a1aa;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Sleek Button Engine */
button, .btn-nav {
    background: #1f1f22;
    border: 2px solid var(--border);
    color: #e4e4e7;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover:not(:disabled) {
    background: #09090b;
    border-width: 2px;
    border-color: var(--sky);
    color: white;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

button:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.btn-primary {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--sky);
}
.btn-primary:hover {
    background: var(--sky) !important;
    color: black !important;
}

/* Live Badge Telemetry */
.status-indicator {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #09090b;
    border: 2px solid var(--border);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Timeline Slider */
.timeline-slider {
    position: relative;
    height: 6px;
    background: #27272a;
    border-radius: 3px;
    cursor: pointer;
    margin: 1.5rem 0;
}

.timeline-progress {
    height: 100%;
    background: var(--sky);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.timeline-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.speed-btn.active {
    background: var(--sky);
    color: #000;
    border-color: var(--sky);
}

/* Terminal Console Box */
.log-terminal {
    background: #050507;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Fira Code', 'ui-monospace', monospace;
    font-size: 0.75rem;
    padding: 1rem;
    color: var(--emerald);
    height: 220px;
    overflow-y: auto;
    line-height: 1.6;
}