/* Custom Styles for Metronome */

.glass-panel {
    background: rgba(20, 15, 30, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 6px;
    border-radius: 999px;
    outline: none;
    position: relative;
    z-index: 1;
}

input[type=range]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 50%);
    background: #6C63FF;
    border-radius: 999px;
    z-index: -1;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
    transition: transform 0.1s;
}

input[type=range]::-moz-range-progress {
    background: #6C63FF;
    border-radius: 999px;
    height: 6px;
}

/* Beat Flash Animation */
@keyframes flashPrimary {
    0% {
        background-color: #6C63FF;
        box-shadow: 0 0 15px #6C63FF;
        transform: scale(1.2);
    }

    100% {
        background-color: #4B5563;
        box-shadow: none;
        transform: scale(1);
    }
}

@keyframes flashSecondary {
    0% {
        background-color: #9CA3AF;
        box-shadow: 0 0 10px #9CA3AF;
        transform: scale(1.1);
    }

    100% {
        background-color: #4B5563;
        box-shadow: none;
        transform: scale(1);
    }
}

.beat-primary {
    animation: flashPrimary 0.3s ease-out;
}

.beat-secondary {
    animation: flashSecondary 0.3s ease-out;
}