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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #001a4d 0%, #003d99 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1000px;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Taskbar */
.taskbar {
    background: linear-gradient(135deg, #001a4d 0%, #003d99 100%);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 30px;
    align-items: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.taskbar-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.taskbar-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.taskbar-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.main-content {
    padding: 30px;
}

/* Control Panel */
.control-panel {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #404040;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: white;
}

.control-group label {
    font-weight: bold;
    min-width: 80px;
    color: #4CAF50;
}

.control-group input[type="range"] {
    flex: 0 0 200px;
    height: 8px;
    background: #404040;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.control-group span {
    color: #4CAF50;
    font-weight: bold;
    min-width: 60px;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.record-btn {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    flex: 1;
    min-width: 120px;
}

.record-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.4);
}

.record-btn.recording {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
    }
}

.play-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    flex: 1;
    min-width: 120px;
}

.play-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.play-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.clear-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    flex: 1;
    min-width: 120px;
}

.clear-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

/* Recording Status */
.recording-status {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid #404040;
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-text {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1em;
    flex: 1;
}

.recording-indicator {
    width: 15px;
    height: 15px;
    background: #666;
    border-radius: 50%;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.recording-status.recording .recording-indicator {
    background: #ff4444;
    animation: blink 1s infinite;
}

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

/* Drums Section */
.drums-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.drum-kit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.drum-pad {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Different colors for different drum types */
.drum-pad[data-drum*="kick"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.drum-pad[data-drum*="snare"] {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
}

.drum-pad[data-drum*="hihat"] {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.drum-pad[data-drum*="tom"] {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

.drum-pad[data-drum*="clap"],
.drum-pad[data-drum*="snap"] {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
}

.drum-pad[data-drum*="cymbal"] {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    color: #333;
}

.drum-pad .pad-label {
    font-weight: bold;
    color: white;
    text-align: center;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.drum-pad[data-drum*="cymbal"] .pad-label {
    color: #333;
}

.drum-pad .pad-key {
    font-size: 2em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
}

.drum-pad[data-drum*="cymbal"] .pad-key {
    color: rgba(0, 0, 0, 0.2);
}

.drum-pad:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.drum-pad:active,
.drum-pad.active {
    transform: translateY(-2px) scale(0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Keyboard Help */
.keyboard-help {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    margin-bottom: 30px;
}

.keyboard-help p {
    color: #ccc;
    font-size: 0.95em;
}

/* Recording Info */
.recording-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-box {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #404040;
    text-align: center;
}

.info-box h3 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.info-box p {
    color: white;
    font-size: 1.8em;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .taskbar {
        padding: 10px 15px;
        gap: 8px;
    }

    .taskbar-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    header h1 {
        font-size: 1.8em;
    }

    .main-content {
        padding: 15px;
    }

    .drum-kit {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .drum-pad {
        border-radius: 10px;
    }

    .control-group input[type="range"] {
        flex: 0 0 120px;
    }

    .button-group {
        flex-direction: column;
    }

    .control-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .taskbar {
        padding: 8px 10px;
        gap: 6px;
    }

    .taskbar-btn {
        padding: 5px 10px;
        font-size: 0.75em;
    }

    header h1 {
        font-size: 1.5em;
    }

    .drum-kit {
        grid-template-columns: repeat(2, 1fr);
    }

    .recording-info {
        grid-template-columns: 1fr;
    }
}
