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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.metronome {
    /* Container styling removed */
}

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

#bpm-value {
    display: block;
    font-size: 4rem;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

.bpm-label {
    display: block;
    font-size: 1.2rem;
    color: #666;
    margin-top: 5px;
}

.time-signature-selector {
    text-align: center;
    margin-bottom: 30px;
}

.time-signature-selector label {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

#time-signature {
    padding: 10px 20px;
    font-size: 1rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #667eea;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

#time-signature:hover {
    background: #f0f0ff;
}

#time-signature:focus {
    border-color: #764ba2;
}

.controls {
    margin-bottom: 30px;
}

#bpm-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 20px;
}

#bpm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

#bpm-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #764ba2;
}

#bpm-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

#bpm-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #764ba2;
}

.bpm-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.bpm-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

.bpm-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.bpm-btn:active {
    transform: scale(0.95);
}

.start-stop-btn {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.start-stop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.start-stop-btn:active {
    transform: translateY(0);
}

.start-stop-btn.playing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.visual-indicator {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    background: #f0f0f0;
    transition: all 0.1s;
}

.visual-indicator.beat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.05);
}

.visual-indicator.downbeat {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
