* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --amber-glow: #ffb347;
    --amber-dark: #cc8800;
    --green-lcd: #39ff14;
    --green-lcd-dim: #1a6b0a;
    --charcoal: #2a2a2a;
    --charcoal-light: #3d3d3d;
    --brushed-metal: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 25%, #d0d0d0 50%, #909090 75%, #b0b0b0 100%);
    --soft-plastic: #1a1a1a;
    --chrome: linear-gradient(180deg, #e8e8e8 0%, #b0b0b0 50%, #888 100%);
}

body {
    font-family: 'Orbitron', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    overflow-x: hidden;
}

.dashboard-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
}

.dashboard-vignette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
    z-index: 100;
}

.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Windshield Section */
.windshield-section {
    flex: 0 0 auto;
}

.windshield-bezel {
    background: #0a0a0a;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 
        inset 0 2px 10px rgba(0,0,0,0.8),
        0 4px 20px rgba(0,0,0,0.5);
    position: relative;
}

.windshield-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    border-radius: 10px;
    overflow: hidden;
}

.greenscreen {
    width: 100%;
    height: 100%;
    background: #00ff00;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    font-family: 'VT323', monospace;
    font-size: clamp(16px, 4vw, 32px);
    color: rgba(0, 100, 0, 0.5);
    letter-spacing: 4px;
}

.dashboard-reflection {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(30, 30, 30, 0.8) 0%, transparent 100%);
    pointer-events: none;
}

.clock-container {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    border-radius: 5px;
    border: 2px solid #333;
}

.lcd-clock {
    display: flex;
    align-items: center;
    font-family: 'VT323', monospace;
    font-size: clamp(18px, 3vw, 28px);
    color: var(--amber-glow);
    text-shadow: 0 0 10px var(--amber-glow);
}

.lcd-colon.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

/* AC Panel Section */
.ac-panel {
    flex: 0 0 auto;
    background: var(--brushed-metal);
    border-radius: 10px;
    padding: 3px;
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.ac-panel-inner {
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 50%, #2a2a2a 100%);
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.climate-label {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #888;
    letter-spacing: 3px;
    font-weight: 700;
}

.vents-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}

.ac-vent {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vent-outer-ring {
    width: clamp(60px, 15vw, 90px);
    height: clamp(60px, 15vw, 90px);
    border-radius: 50%;
    background: linear-gradient(145deg, #555 0%, #222 100%);
    padding: 5px;
    box-shadow: 
        inset 0 2px 5px rgba(0,0,0,0.8),
        0 2px 5px rgba(255,255,255,0.1);
}

.vent-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: ns-resize;
    overflow: hidden;
    position: relative;
}

.louvers-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 80%;
}

.louver {
    height: 4px;
    background: linear-gradient(180deg, #666 0%, #333 50%, #444 100%);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.1s ease-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.paper-strips-container {
    position: absolute;
    bottom: 5px;
    display: flex;
    gap: 4px;
}

.paper-strip {
    width: 3px;
    height: 15px;
    background: linear-gradient(180deg, #fff 0%, #f0f0f0 50%, #ddd 100%);
    border-radius: 1px;
    transform-origin: top center;
    animation: flutter 0.4s ease-in-out infinite alternate;
}

@keyframes flutter {
    0% { transform: rotate(-5deg) translateY(0); }
    100% { transform: rotate(5deg) translateY(2px); }
}

.vent-knob {
    width: 12px;
    height: 12px;
    background: var(--chrome);
    border-radius: 50%;
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.temp-display {
    background: #0a0a0a;
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid #333;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.temp-value {
    font-family: 'VT323', monospace;
    font-size: clamp(24px, 5vw, 36px);
    color: var(--green-lcd);
    text-shadow: 0 0 10px var(--green-lcd);
}

.temp-unit {
    font-family: 'VT323', monospace;
    font-size: clamp(14px, 3vw, 20px);
    color: var(--green-lcd);
    text-shadow: 0 0 5px var(--green-lcd);
}

/* Radio Unit Section */
.radio-unit {
    flex: 1;
    min-height: 280px;
}

.radio-unit.off .radio-faceplate {
    filter: brightness(0.3);
}

.radio-unit.off .station-display,
.radio-unit.off .genre-btn,
.radio-unit.off .preset-btn {
    opacity: 0.3;
}

.radio-chrome-trim {
    background: var(--chrome);
    border-radius: 15px;
    padding: 4px;
    box-shadow: 
        0 6px 25px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.radio-faceplate {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 30%, #222 70%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    min-height: 250px;
}

.power-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(145deg, #333 0%, #1a1a1a 100%);
    border: 2px solid #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.power-btn:active {
    transform: scale(0.95);
}

.power-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #400;
    transition: all 0.3s;
}

.power-btn.on .power-led {
    background: #ff3333;
    box-shadow: 0 0 10px #ff3333, 0 0 20px #ff3333;
}

/* Genre Row */
.genre-row {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #555 #222;
    padding: 5px 0;
    margin-top: 25px;
}

.genre-row::-webkit-scrollbar {
    height: 6px;
}

.genre-row::-webkit-scrollbar-track {
    background: #222;
    border-radius: 3px;
}

.genre-row::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.genre-scroll {
    display: flex;
    gap: 8px;
    padding: 0 5px;
}

.genre-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: linear-gradient(180deg, #444 0%, #2a2a2a 50%, #333 100%);
    border: 2px solid #555;
    border-radius: 8px;
    color: #999;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.genre-btn:hover {
    background: linear-gradient(180deg, #555 0%, #333 50%, #444 100%);
    color: #ccc;
}

.genre-btn.active {
    background: linear-gradient(180deg, #ff9933 0%, #cc6600 50%, #ff8800 100%);
    color: #000;
    border-color: #ffaa44;
    box-shadow: 
        0 0 15px rgba(255, 153, 51, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Station Display */
.station-display {
    background: #0a0a0a;
    border: 3px solid #333;
    border-radius: 8px;
    padding: 12px 15px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

.station-name {
    font-family: 'VT323', monospace;
    font-size: clamp(18px, 4vw, 24px);
    color: var(--amber-glow);
    text-shadow: 0 0 10px var(--amber-glow);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-name.off-text {
    color: #444;
    text-shadow: none;
}

.station-icon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.station-info {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--green-lcd-dim);
    margin-top: 2px;
}

.station-freq {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: var(--green-lcd);
    text-shadow: 0 0 5px var(--green-lcd);
    margin-top: 4px;
}

/* Transport Controls */
.transport-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.transport-btn {
    background: linear-gradient(180deg, #444 0%, #222 50%, #333 100%);
    border: 3px solid #555;
    border-radius: 50%;
    color: #aaa;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.transport-btn.prev,
.transport-btn.next {
    width: 45px;
    height: 45px;
    font-size: 16px;
}

.transport-btn.play {
    width: 60px;
    height: 60px;
    font-size: 22px;
}

.transport-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #555 0%, #333 50%, #444 100%);
    color: #fff;
}

.transport-btn:active:not(:disabled) {
    transform: scale(0.95);
    box-shadow: 
        0 2px 5px rgba(0,0,0,0.5),
        inset 0 2px 5px rgba(0,0,0,0.3);
}

.transport-btn.play.playing {
    background: linear-gradient(180deg, #39ff14 0%, #1a8f0a 50%, #2ab010 100%);
    color: #000;
    border-color: #4fff4f;
    box-shadow: 
        0 0 20px rgba(57, 255, 20, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.transport-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Presets Row */
.presets-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.preset-btn {
    width: 35px;
    height: 35px;
    background: linear-gradient(180deg, #333 0%, #1a1a1a 50%, #252525 100%);
    border: 2px solid #444;
    border-radius: 6px;
    color: #666;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.preset-btn.has-station {
    color: #999;
    border-color: #555;
}

.preset-btn.active {
    background: linear-gradient(180deg, #ffcc00 0%, #cc9900 50%, #ffbb00 100%);
    color: #000;
    border-color: #ffdd44;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.preset-btn:hover {
    background: linear-gradient(180deg, #444 0%, #2a2a2a 50%, #363636 100%);
}

.save-preset-btn {
    padding: 8px 12px;
    background: linear-gradient(180deg, #444 0%, #222 50%, #333 100%);
    border: 2px solid #555;
    border-radius: 6px;
    color: #888;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.save-preset-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #555 0%, #333 50%, #444 100%);
    color: #ccc;
}

.save-preset-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Volume Knob */
.volume-knob-container {
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.volume-label {
    font-size: 10px;
    color: #666;
    letter-spacing: 2px;
}

.volume-knob {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #555 0%, #222 50%, #333 100%);
    border-radius: 50%;
    border: 3px solid #444;
    cursor: grab;
    position: relative;
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.5),
        inset 0 2px 5px rgba(255,255,255,0.1);
}

.volume-knob:active {
    cursor: grabbing;
}

.knob-indicator {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 12px;
    background: var(--chrome);
    border-radius: 2px;
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 10px;
    color: #444;
    font-size: 12px;
    font-family: 'Orbitron', sans-serif;
}

.dashboard-footer a {
    color: #666;
    text-decoration: none;
}

.dashboard-footer a:hover {
    color: var(--amber-glow);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .dashboard-content {
        padding: 5px;
        gap: 8px;
    }
    
    .windshield-bezel {
        padding: 10px;
        border-radius: 15px;
    }
    
    .clock-container {
        top: 15px;
        right: 15px;
        padding: 5px 10px;
    }
    
    .ac-panel-inner {
        padding: 10px;
    }
    
    .vents-row {
        gap: 5px;
    }
    
    .temp-display {
        padding: 8px 10px;
    }
    
    .radio-faceplate {
        padding: 12px;
        min-height: 220px;
    }
    
    .genre-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .station-display {
        padding: 10px 12px;
        min-height: 60px;
    }
    
    .transport-btn.prev,
    .transport-btn.next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .transport-btn.play {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .preset-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .volume-knob-container {
        right: 10px;
        bottom: 10px;
    }
    
    .volume-knob {
        width: 40px;
        height: 40px;
    }
}