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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #2a2a3a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.synth-container {
    width: 100%;
    max-width: 1200px;
    background: #3a3a4a;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Control Panel */
.control-panel {
    display: flex;
    background: #2a2a3a;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    gap: 20px;
}

.left-controls {
    display: flex;
    gap: 20px;
}

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

.control-label {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 2px;
}

.selector {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.selector-btn {
    padding: 6px 12px;
    background: #4a4a5a;
    border: 1px solid #5a5a6a;
    color: #aaa;
    font-size: 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.selector-btn:hover {
    background: #5a5a6a;
}

.selector-btn.active {
    background: #6a6a7a;
    color: #fff;
    border-color: #7a7a8a;
}

.slider-vertical {
    width: 30px;
    height: 80px;
    background: #1a1a2a;
    border-radius: 15px;
    position: relative;
    border: 2px solid #4a4a5a;
}

.slider-track {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #4a4a5a;
    border-radius: 2px;
}

.slider-thumb {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #6a6a7a;
    border-radius: 50%;
    border: 2px solid #8a8a9a;
    cursor: pointer;
}

/* Center Display */
.center-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 4px;
}

.main-screen {
    background: #1a2a1a;
    border: 3px solid #0a1a0a;
    border-radius: 8px;
    padding: 15px 40px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.screen-content {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    color: #4aff4a;
    text-shadow: 0 0 10px rgba(74, 255, 74, 0.5);
    letter-spacing: 3px;
}

.under-screen {
    display: flex;
    gap: 8px;
}

.preset-btn {
    width: 30px;
    height: 25px;
    background: #4a4a5a;
    border: 1px solid #5a5a6a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #5a5a6a;
}

.preset-btn.active {
    background: #5aff5a;
    color: #1a1a2a;
    border-color: #4aff4a;
}

/* Right Controls */
.right-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.knob-row {
    display: flex;
    gap: 15px;
}

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

.round-knob {
    width: 45px;
    height: 45px;
    background: linear-gradient(145deg, #5a5a6a, #3a3a4a);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.3),
        inset 0 1px 3px rgba(255,255,255,0.1);
    border: 2px solid #4a4a5a;
}

.knob-marker {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 12px;
    background: #aaa;
    border-radius: 2px;
}

.knob-label {
    font-size: 0.6rem;
    color: #888;
    letter-spacing: 1px;
}

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

.main-power-btn {
    padding: 10px 20px;
    background: linear-gradient(145deg, #5a5a6a, #3a3a4a);
    border: 2px solid #4a4a5a;
    color: #aaa;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.main-power-btn:hover {
    background: linear-gradient(145deg, #6a6a7a, #4a4a5a);
}

.power-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    border: 1px solid #444;
    transition: all 0.3s;
}

.power-indicator.active {
    background: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    border-color: #ff6666;
}

/* Keyboard Container */
.keyboard-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #2a2a3a;
    border-radius: 15px;
    padding: 20px;
}

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

.section-header {
    width: 30px;
    display: flex;
    justify-content: center;
}

.section-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.blue-dot { background: #4488ff; box-shadow: 0 0 10px rgba(68, 136, 255, 0.5); }
.white-dot { background: #eeeeee; box-shadow: 0 0 10px rgba(238, 238, 238, 0.5); }
.yellow-dot { background: #ffdd44; box-shadow: 0 0 10px rgba(255, 221, 68, 0.5); }
.red-dot { background: #ff4444; box-shadow: 0 0 10px rgba(255, 68, 68, 0.5); }
.green-dot { background: #44ff88; box-shadow: 0 0 10px rgba(68, 255, 136, 0.5); }

.keys-grid {
    flex: 1;
    display: flex;
    gap: 6px;
}

.key {
    flex: 1;
    height: 55px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    border: none;
    position: relative;
    user-select: none;
}

.key span {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Blue Keys */
.blue-key {
    background: linear-gradient(145deg, #4488ff, #2266dd);
    box-shadow: 
        0 4px 0 #1144bb,
        0 4px 8px rgba(68, 136, 255, 0.3);
}

.blue-key:active, .blue-key.active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #1144bb, 0 0 20px rgba(68, 136, 255, 0.8);
}

.blue-key span { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* White Keys */
.white-key {
    background: linear-gradient(145deg, #eeeeee, #cccccc);
    box-shadow: 
        0 4px 0 #aaaaaa,
        0 4px 8px rgba(238, 238, 238, 0.3);
}

.white-key:active, .white-key.active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #aaaaaa, 0 0 20px rgba(238, 238, 238, 0.8);
}

.white-key span { color: #333; }

/* Yellow Keys */
.yellow-key {
    background: linear-gradient(145deg, #ffdd44, #ddbb22);
    box-shadow: 
        0 4px 0 #aa8800,
        0 4px 8px rgba(255, 221, 68, 0.3);
}

.yellow-key:active, .yellow-key.active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #aa8800, 0 0 20px rgba(255, 221, 68, 0.8);
}

.yellow-key span { color: #332200; }

/* Red Keys */
.red-key {
    background: linear-gradient(145deg, #ff4444, #dd2222);
    box-shadow: 
        0 4px 0 #aa0000,
        0 4px 8px rgba(255, 68, 68, 0.3);
}

.red-key:active, .red-key.active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #aa0000, 0 0 20px rgba(255, 68, 68, 0.8);
}

.red-key span { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* Green Keys */
.green-key {
    background: linear-gradient(145deg, #44ff88, #22dd66);
    box-shadow: 
        0 4px 0 #00aa44,
        0 4px 8px rgba(68, 255, 136, 0.3);
}

.green-key:active, .green-key.active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #00aa44, 0 0 20px rgba(68, 255, 136, 0.8);
}

.green-key span { color: #003311; }

/* Bottom Panel */
.bottom-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 15px 20px;
    background: #2a2a3a;
    border-radius: 15px;
}

.output-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.output-label {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 1px;
}

.output-jack {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a1a2a;
    border: 2px solid #4a4a5a;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.midi-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.midi-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.8);
}

.midi-indicator span {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1000px) {
    .control-panel {
        flex-direction: column;
    }
    
    .keys-grid {
        flex-wrap: wrap;
    }
    
    .key {
        min-width: 60px;
    }
}

@media (max-width: 600px) {
    .synth-container {
        padding: 15px;
    }
    
    .knob-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .key {
        min-width: 50px;
        height: 45px;
    }
    
    .key span {
        font-size: 0.65rem;
    }
}
