.double-range-slider {
    position: relative;
    padding: 1.5rem 0;
    height: 40px;
    width: 100%;
}

.slider-track {
    position: absolute;
    border-radius: 3px;
    height: 5px;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #1F2937;  /* darker background for better contrast */
}

.slider-track::before {
    content: "";
    position: absolute;
    height: 5px;
    left: var(--left-percent, 0%);
    right: var(--right-percent, 0%);
    background: #3B82F6;  /* blue-500 */
    border-radius: 3px;
    transition: all 0.2s ease;
}

.slider-range {
    position: absolute;
    appearance: none;
    width: 100%;
    height: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    pointer-events: none;
}

/* Hide default track */
.slider-range::-webkit-slider-runnable-track {
    height: 5px;
    background: transparent;
    border: none;
    pointer-events: none;
}

.slider-range::-moz-range-track {
    height: 5px;
    background: transparent;
    border: none;
    pointer-events: none;
}

/* Thumb styles */
.slider-range::-webkit-slider-thumb {
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #3B82F6;
    cursor: pointer;
    margin-top: -6px;
    position: relative;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.slider-range::-moz-range-thumb {
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #3B82F6;
    cursor: pointer;
    position: relative;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

/* Hover effects */
.slider-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #3B82F6;
    border-color: #fff;
}

.slider-range::-moz-range-thumb:hover {
    transform: scale(1.1);
    background: #3B82F6;
    border-color: #fff;
}

/* Active state */
.slider-range:active::-webkit-slider-thumb {
    transform: scale(0.95);
    background: #2563EB;
    border-color: #fff;
}

.slider-range:active::-moz-range-thumb {
    transform: scale(0.95);
    background: #2563EB;
    border-color: #fff;
}

/* Focus state */
.slider-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    outline: none;
}

.slider-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    outline: none;
}

.min-range {
    z-index: 2;
}

.max-range {
    z-index: 1;
}

.slider-values {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    color: #D1D5DB;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Animation keyframes for the click effect */
@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 32px;
        height: 32px;
        opacity: 0;
    }
}

/* Apply animation to active thumbs */
.slider-range:active::-webkit-slider-thumb,
.slider-range:active::-moz-range-thumb {
    animation: ripple 0.6s ease-out;
}