/* Range Slider Component Styles */
.range-slider-wrapper {
    width: 100%;
    margin: 10px 0;
}

.range-slider-container {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.range-slider-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.range-slider-track:hover {
    background: #d0d0d0;
}

.range-slider-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #2962ff, #1e50cf);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.range-slider-thumb {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 2px solid #2962ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 2;
}

.range-slider-thumb:hover {
    transform: translate(-50%, -50%) scale(1.05);
    border-width: 3px;
}

.range-slider-thumb:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
    border-width: 3px;
}

.range-slider-thumb-min {
    z-index: 3;
}

.range-slider-thumb-max {
    z-index: 3;
}

.range-slider-values {
    margin-top: 8px;
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
    text-align: center;
    min-height: 1.2em;
}

/* Dragging state */
.range-slider-container.dragging .range-slider-thumb {
    transform: translate(-50%, -50%) scale(1.1);
    border-width: 3px;
}

.range-slider-container.dragging .range-slider-track {
    background: #c0c0c0;
}

/* Disabled state */
.range-slider-container.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.range-slider-container.disabled .range-slider-thumb {
    cursor: not-allowed;
}

/* Dark theme support */
body.dark-theme .range-slider-track {
    background: #444;
}

body.dark-theme .range-slider-track:hover {
    background: #555;
}

body.dark-theme .range-slider-fill {
    background: linear-gradient(90deg, #81b4ff, #3182ce);
}

body.dark-theme .range-slider-thumb {
    background: #2d3748;
    border-color: #81b4ff;
}

body.dark-theme .range-slider-values {
    color: #a0aec0;
}

body.dark-theme .range-slider-container.dragging .range-slider-track {
    background: #333;
}

/* Compact version for smaller spaces */
.range-slider-wrapper.compact .range-slider-container {
    height: 30px;
}

.range-slider-wrapper.compact .range-slider-track {
    height: 4px;
}

.range-slider-wrapper.compact .range-slider-thumb {
    width: 14px;
    height: 14px;
}

.range-slider-wrapper.compact .range-slider-values {
    margin-top: 4px;
    font-size: 0.8em;
}

/* Focus states for accessibility */
.range-slider-thumb:focus {
    outline: 2px solid #2962ff;
    outline-offset: 2px;
}

body.dark-theme .range-slider-thumb:focus {
    outline-color: #81b4ff;
} 