/* Metronome Styles */

/* Metronome Display */
.metronome-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(5, 44, 101, 0.05) 0%, rgba(5, 44, 101, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(5, 44, 101, 0.2);
}

[data-bs-theme="dark"] .metronome-display {
    background: linear-gradient(135deg, rgba(5, 44, 101, 0.15) 0%, rgba(5, 44, 101, 0.25) 100%);
    border-color: rgba(5, 44, 101, 0.4);
}

/* Beat Indicator */
.beat-indicator {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beat-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 4px solid var(--bs-primary-text-emphasis);
    transition: all 0.1s ease;
}

[data-bs-theme="dark"] .beat-circle {
    background-color: #495057;
}

.beat-circle.pulse {
    background-color: var(--bs-primary-text-emphasis);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(5, 44, 101, 0.6);
}

.beat-circle.accent {
    background-color: #dc3545;
    border-color: #dc3545;
    transform: scale(1.15);
    box-shadow: 0 0 40px rgba(220, 53, 69, 0.7);
}

.beat-number {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    font-weight: 700;
    color: var(--bs-primary-text-emphasis);
    font-family: 'Arial', sans-serif;
}

.beat-circle.pulse .beat-number,
.beat-circle.accent .beat-number {
    color: white;
}

/* BPM Display */
.bpm-display {
    text-align: center;
}

.bpm-value {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--bs-primary-text-emphasis);
    line-height: 1;
    font-family: 'Arial', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.bpm-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6c757d;
    margin-top: 8px;
    letter-spacing: 2px;
}

/* Tempo Quick Buttons */
.tempo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tempo-btn {
    flex: 0 0 auto;
    min-width: 140px;
    font-weight: 600;
}

.tempo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(5, 44, 101, 0.2);
}

/* Audio Preview */
.audio-preview-wrapper {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .audio-preview-wrapper {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.audio-preview {
    width: 100%;
    outline: none;
}

/* Range Sliders */
#bpm,
#volume {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #ced4da;
}

#bpm::-webkit-slider-track,
#volume::-webkit-slider-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e9ecef 0%, var(--bs-primary-text-emphasis) 100%);
    border: none;
}

#bpm::-moz-range-track,
#volume::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e9ecef 0%, var(--bs-primary-text-emphasis) 100%);
    border: 1px solid #ced4da;
}

#bpm::-webkit-slider-thumb,
#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bs-primary-text-emphasis);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

#bpm::-moz-range-thumb,
#volume::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bs-primary-text-emphasis);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

#bpm::-webkit-slider-thumb:hover,
#volume::-webkit-slider-thumb:hover {
    background: #041f4a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(5, 44, 101, 0.4);
}

#bpm::-moz-range-thumb:hover,
#volume::-moz-range-thumb:hover {
    background: #041f4a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(5, 44, 101, 0.4);
}

/* Dark mode sliders */
[data-bs-theme="dark"] #bpm,
[data-bs-theme="dark"] #volume {
    background: #6c757d;
    border-color: #495057;
}

[data-bs-theme="dark"] #bpm::-webkit-slider-track,
[data-bs-theme="dark"] #volume::-webkit-slider-track {
    background: linear-gradient(to right, #495057 0%, #6ea8fe 100%);
}

[data-bs-theme="dark"] #bpm::-moz-range-track,
[data-bs-theme="dark"] #volume::-moz-range-track {
    background: linear-gradient(to right, #495057 0%, #6ea8fe 100%);
    border-color: #495057;
}

[data-bs-theme="dark"] #bpm::-webkit-slider-thumb,
[data-bs-theme="dark"] #volume::-webkit-slider-thumb {
    background: #6ea8fe;
    border-color: #212529;
}

[data-bs-theme="dark"] #bpm::-moz-range-thumb,
[data-bs-theme="dark"] #volume::-moz-range-thumb {
    background: #6ea8fe;
    border-color: #212529;
}

/* Responsive */
@media (max-width: 768px) {
    .metronome-display {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }

    .beat-indicator {
        width: 120px;
        height: 120px;
    }

    .beat-circle {
        width: 120px;
        height: 120px;
    }

    .beat-number {
        font-size: 2.5rem;
    }

    .bpm-value {
        font-size: 3.5rem;
    }

    .tempo-buttons {
        flex-direction: column;
    }

    .tempo-btn {
        width: 100%;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}
