﻿:root {
    --slider-track-height: 6px;
    --slider-track-bg: #e5e7eb; /* Light gray */
    --slider-fill-bg: var(--bs-primary);
    --slider-thumb-size: 24px;
    --slider-thumb-bg: var(--bs-primary);
    --slider-thumb-border-color: var(--bs-primary);
    --slider-thumb-shadow: 0 0 8px rgba(0,0,0,0.2);
    --pip-line-color: #cbd5e1; /* Medium gray */
    --pip-label-color: #6b7280; /* Dark gray */
    --pip-active-line-color: var(--bs-secondary);
    --pip-active-label-color: var(--bs-secondary);
    --pip-line-height: 8px;
    --pip-line-width: 2px;
    --pip-label-font-size: 0.75rem; /* 12px */
    --input-border-color: #d1d5db;
    --input-focus-ring-color: var(--bs-primary);
}

.value-display {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    background-color: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    line-height: 1.5;
}

.slider-area {
    position: relative;
    height: 3rem;
    display: flex;
    align-items: center;
}

.slider-track-bg {
    position: absolute;
    left: 0;
    width: 100%;
    height: var(--slider-track-height);
    background-color: var(--slider-track-bg);
    border-radius: 9999px;
    top: 50%;
    transform: translateY(-50%);
}

.slider-fill {
    position: absolute;
    height: var(--slider-track-height);
    background-color: var(--slider-fill-bg);
    border-radius: 9999px;
    top: 50%;
    transform: translateY(-50%);
}

.range-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    pointer-events: none;
    position: absolute;
    top: 60%;
    left: 0;
    transform: translateY(-50%);
    height: var(--slider-track-height);
    margin: 0;
    padding: 0;
    z-index: 10;
}

    .range-slider-input::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: var(--slider-thumb-size);
        height: var(--slider-thumb-size);
        background: var(--slider-thumb-bg);
        border: 2px solid var(--slider-thumb-border-color);
        border-radius: 50%;
        cursor: pointer;
        pointer-events: auto;
        margin-top: calc(-1 * (var(--slider-thumb-size) / 2) + (var(--slider-track-height) / 2) - 2px);
        box-shadow: var(--slider-thumb-shadow);
    }

    .range-slider-input::-moz-range-thumb {
        width: calc(var(--slider-thumb-size) - 4px);
        height: calc(var(--slider-thumb-size) - 4px);
        background: var(--slider-thumb-bg);
        border: 2px solid var(--slider-thumb-border-color);
        border-radius: 50%;
        cursor: pointer;
        pointer-events: auto;
        box-shadow: var(--slider-thumb-shadow);
    }

.pips-container-padding{
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}

.pips-container {
    position: relative;
    height: 30px;
    width: 100%;
}

.pip {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transform: translateX(-50%);
}

.pip-line {
    width: var(--pip-line-width);
    height: var(--pip-line-height);
    background-color: var(--pip-line-color);
    border-radius: 1px;
}

.pip-label {
    margin-top: 4px;
    font-size: var(--pip-label-font-size);
    color: var(--pip-label-color);
    white-space: nowrap;
}

.pip.active .pip-line {
    background-color: var(--pip-active-line-color);
    height: calc(var(--pip-line-height) + 2px);
}

.pip.active .pip-label {
    color: var(--pip-active-label-color);
    font-weight: 600;
}
