/* ============================================================================
 * CW Doppler Modular WebApp - Stylesheet (css/styles.css)
 * Works both with Tailwind CDN and standalone offline.
 * ============================================================================ */

:root {
    --bg-deep: #020617;
    --bg-panel: #0f172a;
    --bg-card: #1e293b;
    --border-color: #334155;
    --neon-green: #39ff14;
    --neon-cyan: #22d3ee;
    --neon-amber: #fbbf24;
    --neon-rose: #fb7185;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg-panel);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

/* Oscilloscope & Subplot Canvas Containers */
.scope-grid {
    position: relative;
    background-color: var(--bg-deep);
    background-image:
        linear-gradient(rgba(30, 41, 59, 0.75) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 41, 59, 0.75) 1px, transparent 1px);
    background-size: 40px 40px;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 28px rgba(57, 255, 20, 0.04);
    overflow: hidden;
}

.scope-grid canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Neon Accents */
.neon-green-text {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.45);
}

.neon-cyan-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.45);
}

/* Condition Badges */
.condition-badge {
    transition: all 0.25s ease;
}
.condition-normal {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
}
.condition-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #f59e0b;
    color: #fbbf24;
}
.condition-critical {
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid #f43f5e;
    color: #fb7185;
}
.condition-idle {
    background: rgba(100, 116, 139, 0.15);
    border: 1px solid #475569;
    color: #94a3b8;
}

/* Range Inputs */
input[type="range"] {
    accent-color: #10b981;
}

/* Custom Scrollbar for Beat Log and Recording List */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: #0f172a;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Recording Pulse Animation */
@keyframes recPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.92); }
}
.rec-dot {
    animation: recPulse 1.1s infinite ease-in-out;
}
