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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.controls {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

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

.control-group label {
    font-weight: bold;
}

.control-group input, .control-group select {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #ff6b6b;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

button.active {
    background: #4ecdc4;
}

.drum-pad {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #4ecdc4 rgba(255, 255, 255, 0.1);
}

.drum-pad::-webkit-scrollbar {
    height: 6px;
}

.drum-pad::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.drum-pad::-webkit-scrollbar-thumb {
    background: #4ecdc4;
    border-radius: 3px;
}

.pad {
    min-width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #2d3436, #636e72);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.pad:hover {
    transform: scale(1.05);
}

.pad:active, .pad.active {
    background: linear-gradient(145deg, #e17055, #fdcb6e);
    transform: scale(0.95);
}

.pad .note {
    font-size: 0.8rem;
    opacity: 0.8;
}

.sequencer {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.sequencer-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    min-width: max-content;
}

.beat-marker {
    min-width: 100px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-weight: bold;
    color: #ffd700;
}

.beat-cell {
    min-width: 40px;
    text-align: center;
    padding: 5px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.sequencer-row {
    display: flex;
    align-items: center;
    gap: 0px;
    min-width: max-content;
}

.drum-name {
    min-width: 100px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-weight: bold;
}

.step-header {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.step-cell {
    min-width: 40px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
}

.step-cell.active {
    background: #4ecdc4;
    border-color: #4ecdc4;
}

.step-cell.current {
    border-color: #ffd700;
    box-shadow: 0 0 10px #ffd700;
}

.presets {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.preset-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.preset-btn {
    background: #74b9ff;
}

.export-section {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.export-btn {
    background: #00b894;
}

.status {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    color: #ffd700;
}