:root {
    --primary-color: #6e45e2;
    --secondary-color: #88d3ce;
    --bg-color: #1a1a2e;
    --text-color: #f8f8f8;
    --pad-color: #16213e;
    --pad-active: #6e45e2;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
    --bg-color: #f8f8f8;
    --text-color: #1a1a2e;
    --pad-color: #e6e6e6;
    --pad-active: #88d3ce;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    background-image: radial-gradient(circle at 10% 20%, var(--primary-color) 0%, var(--bg-color) 90%);
}

.app-container {
    width: 90%;
    max-width: 800px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.app-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    background: var(--glass-bg);
    border: none;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
}

.volume-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.volume-control label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.drum-machine {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.drum-pad {
    aspect-ratio: 1/1;
    background: var(--pad-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.drum-pad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.drum-pad span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.drum-pad p {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drum-pad:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.drum-pad.active {
    background: var(--pad-active);
    transform: scale(0.95);
    box-shadow: 0 0 10px var(--pad-active);
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recorder {
    display: flex;
    gap: 0.5rem;
}

.bpm-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.bpm-control label {
    font-size: 0.8rem;
    opacity: 0.8;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    background: var(--pad-color);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 600px) {
    .app-container {
        width: 95%;
        padding: 1rem;
    }

    .drum-machine {
        gap: 1rem;
    }

    .app-header h1 {
        font-size: 1.5rem;
    }
}