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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    min-height: 100vh;
    padding: 20px;
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

#room-container {
    background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#monitor-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#monitor-frame {
    background: linear-gradient(145deg, #4a4a5a, #2a2a3a);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 
        inset -5px -5px 15px rgba(0, 0, 0, 0.3),
        inset 5px 5px 15px rgba(255, 255, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

#brand-label {
    position: absolute;
    top: 10px;
    left: 30px;
    color: #888;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

#power-led {
    position: absolute;
    top: 15px;
    right: 30px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.led-off {
    background: #440000;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.led-on {
    background: #00ff00;
    box-shadow: 
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#screen-bezel {
    position: relative;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(0, 0, 0, 0.6);
}

#crt-screen {
    display: block;
    background: #000;
    border-radius: 8px;
    filter: 
        contrast(1.1) 
        brightness(1.1) 
        saturate(1.2);
    image-rendering: pixelated;
}

#screen-reflection {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    pointer-events: none;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.05) 100%
    );
}

#control-panel {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(145deg, #3a3a4a, #2a2a3a);
    border-radius: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.control-group label {
    color: #ccc;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.control-button {
    background: linear-gradient(145deg, #5a5a6a, #3a3a4a);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.control-button:hover {
    background: linear-gradient(145deg, #6a6a7a, #4a4a5a);
    transform: translateY(-1px);
}

.control-button:active {
    transform: translateY(1px);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.knob-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.knob {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, #6a6a7a, #3a3a4a);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.2),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3);
}

.knob:hover {
    background: radial-gradient(circle at 30% 30%, #7a7a8a, #4a4a5a);
}

.knob:before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 15px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#content-selector {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#content-selector label {
    color: #ccc;
    font-size: 14px;
}

#content-select {
    background: #2a2a3a;
    border: 1px solid #4a4a5a;
    border-radius: 5px;
    color: #fff;
    padding: 5px 10px;
    font-family: inherit;
}

#stats-panel {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    color: #888;
    font-size: 12px;
}

.stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 900px) {
    #room-container {
        padding: 20px;
    }
    
    #monitor-frame {
        padding: 20px;
    }
    
    #crt-screen {
        width: 640px;
        height: 480px;
    }
    
    #control-panel {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 700px) {
    #crt-screen {
        width: 480px;
        height: 360px;
    }
    
    #control-panel {
        gap: 10px;
    }
    
    .knob-container {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 550px) {
    #room-container {
        padding: 10px;
    }
    
    #monitor-frame {
        padding: 15px;
    }
    
    #crt-screen {
        width: 400px;
        height: 300px;
    }
    
    #control-panel {
        flex-direction: column;
        align-items: center;
    }
    
    #stats-panel {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Animation for screen effects */
@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Glow effects for authentic CRT feel */
#crt-screen {
    filter: 
        contrast(1.1) 
        brightness(1.1) 
        saturate(1.2)
        drop-shadow(0 0 10px rgba(0, 255, 0, 0.1));
}