/* Custom slider with filled progress and inverted text */
.slider-container {
    display: flex;
    position: relative;
    border: 2px solid white;
    height: 32px;
    width: 100%;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}

/* Filled portion of the slider */
.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    transition: width 0.05s linear;
    pointer-events: none;
}

/* Text container - shows white text on black background */
.slider-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    color: white;
    font-size: 0.85em;
    font-weight: bold;
    pointer-events: none;
    z-index: 1;
    box-sizing: border-box;
}

/* Inverted text container - shows black text on white background, clipped by fill */
.slider-text-inverted {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    color: black;
    font-size: 0.85em;
    font-weight: bold;
    pointer-events: none;
    z-index: 2;
    clip-path: inset(0 100% 0 0);
    box-sizing: border-box;
}

/* Hidden range input for accessibility and functionality */
.slider-container input[type="range"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

