/* Date Range Slider Styles */
.date-range-filter-container {
    padding: 10px 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.range-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.range-slider-header label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.range-values {
    font-size: 13px;
    color: #0078A8;
    font-weight: 500;
    background: #eef7fb;
    padding: 2px 8px;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.range-slider-wrapper {
    position: relative;
    width: 100%;
    height: 20px;
    transition: opacity 0.2s ease;
}

.range-slider-wrapper.disabled-wrapper {
    opacity: 0.5;
    pointer-events: none;
}

.slider-track {
    width: 100%;
    height: 5px;
    background-color: #ddd;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 5px;
    pointer-events: none;
}

/* The selected range bar */
.slider-track-fill {
    height: 5px;
    background-color: #0078A8;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 5px;
    pointer-events: none;
    transition: background-color 0.2s;
}

.disabled-wrapper .slider-track-fill {
    background-color: #aaa;
}

.range-slider-wrapper input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    pointer-events: none;
    /* Let clicks pass through to container/track where not on thumb */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    background: transparent;
    z-index: 2;
    outline: none;
}

/* Webkit Thumb */
.range-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    /* Re-enable pointer events for thumb */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0078A8;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-top: -7px;
    /* vertical alignment adjustment if needed, usually webkit needs it relative to track? Input height is 20px, track is 5px. */
    position: relative;
    z-index: 3;
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.2s;
}

.disabled-wrapper input[type="range"]::-webkit-slider-thumb {
    border-color: #aaa;
    cursor: not-allowed;
}

.range-slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.disabled-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}


/* Firefox Thumb */
.range-slider-wrapper input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0078A8;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 3;
    position: relative;
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.2s;
}

.disabled-wrapper input[type="range"]::-moz-range-thumb {
    border-color: #aaa;
    cursor: not-allowed;
}

.range-slider-wrapper input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.disabled-wrapper input[type="range"]::-moz-range-thumb:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}