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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#monitor-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#monitor-frame {
    background: linear-gradient(145deg, #e8e8e8, #c0c0c0);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        inset 0 2px 5px rgba(255,255,255,0.8),
        inset 0 -2px 5px rgba(0,0,0,0.2);
    position: relative;
}

.monitor-crt {
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0) !important;
    border-radius: 20px !important;
}

.monitor-modern {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a) !important;
    border-radius: 5px !important;
}

#monitor-bezel {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.7),
        0 0 10px rgba(0,0,0,0.5);
}

#screen {
    display: block;
    background: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.3) 2px,
        rgba(0,0,0,0.3) 4px
    );
    pointer-events: none;
    border-radius: 3px;
}

#monitor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 10px;
}

.control-section {
    display: flex;
    gap: 15px;
    align-items: center;
}

.power-button {
    background: linear-gradient(145deg, #ff4444, #cc2222);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-weight: bold;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.2);
    transition: all 0.2s;
    position: relative;
}

.power-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.power-led.on {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.power-led.off {
    background: #660000;
}

.knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.knob {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e0e0e0, #a0a0a0);
    border: 3px solid #888;
    position: relative;
    cursor: pointer;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.3);
}

.knob-indicator {
    position: absolute;
    top: 3px;
    left: 50%;
    width: 2px;
    height: 12px;
    background: #ff4444;
    transform-origin: bottom center;
    transform: translateX(-50%);
    border-radius: 1px;
}

.knob-container label {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.degauss-button {
    background: linear-gradient(145deg, #4444ff, #2222cc);
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.degauss-button:active {
    transform: translateY(1px);
}

#brand-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 12px;
    font-weight: bold;
}

#control-panel {
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
    border-radius: 10px;
    padding: 20px;
    min-width: 250px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

#control-panel h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

.setting-group {
    margin-bottom: 15px;
}

.setting-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.setting-group select,
.setting-group input[type="range"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

/* Desktop Environment Styles */
#desktop-environment {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    pointer-events: none;
}

#taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, #c0c0c0, #808080);
    border-top: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    pointer-events: all;
}

#start-button {
    background: linear-gradient(to bottom, #c0c0c0, #808080);
    border: 1px outset #c0c0c0;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}

#start-button:active {
    border: 1px inset #c0c0c0;
}

#taskbar-clock {
    font-size: 11px;
    color: #000;
    font-family: 'MS Sans Serif', sans-serif;
}

#desktop-icons {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: all;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    font-size: 10px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s;
}

.desktop-icon:hover {
    background: rgba(0,0,255,0.3);
}

#start-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 200px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    pointer-events: all;
}

.menu-item {
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    border-bottom: 1px solid #808080;
}

.menu-item:hover {
    background: #0000ff;
    color: white;
}

.menu-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    #monitor-container {
        flex-direction: column;
        align-items: center;
    }
    
    #monitor-frame {
        padding: 20px;
    }
    
    #screen {
        width: 300px;
        height: 225px;
    }
    
    #control-panel {
        min-width: 200px;
    }
}

/* Fun animations */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.monitor-crt #screen {
    animation: flicker 0.15s infinite alternate;
}

@keyframes degauss {
    0% { filter: blur(0px) hue-rotate(0deg); }
    25% { filter: blur(2px) hue-rotate(90deg); }
    50% { filter: blur(1px) hue-rotate(180deg); }
    75% { filter: blur(3px) hue-rotate(270deg); }
    100% { filter: blur(0px) hue-rotate(360deg); }
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}