@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #020617; /* Slate 950 */
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.glass-container {
    background: transparent;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    color: #94a3b8;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

.nav-btn.active {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border-left: 3px solid #34d399;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Range Slider */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f1f5f9;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    border: 2px solid #0f172a;
}
.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #34d399;
}

/* Tab Button */
.tab-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.tab-btn:hover {
    color: #cbd5e1;
    background: rgba(255,255,255,0.03);
}
.tab-btn.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes flash-green {
    0%, 100% { background-color: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); }
    50% { background-color: rgba(16, 185, 129, 0.3); border-color: rgba(16, 185, 129, 0.6); }
}

@keyframes flash-red {
    0%, 100% { background-color: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.3); }
    50% { background-color: rgba(244, 63, 94, 0.3); border-color: rgba(244, 63, 94, 0.6); }
}

.flash-bg-green {
    animation: flash-green 1s ease-in-out;
}
.flash-bg-red {
    animation: flash-red 1s ease-in-out;
}

.signal-light {
    position: relative;
}
.signal-light::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}
.signal-light.active::after {
    opacity: 1;
    background: inherit;
    filter: blur(8px);
    animation: pulse 1.5s infinite;
}

@media (max-width: 768px) {
    .glass-panel {
        backdrop-filter: blur(12px);
    }
}
