@import url('../_variables.css');

/* ========================================
   VIEC LAM PUBLIC FILTER STYLES
   ======================================== */

/* Dual Range Slider Styles */
.range-slide {
    position: relative;
    margin: 20px 0;
    height: 4px;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    height: 4px;
    background: #dee2e6;
    left: 9px;
    right: 9px;
    border-radius: 2px;
}

.line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd 0%, #198754 100%);
    border-radius: 2px;
}

.thumb {
    position: absolute;
    z-index: 2;
    border: 2px solid #fff;
    background-color: #0d6efd;
    border-radius: 50%;
    outline: none;
    top: -7px;
    height: 18px;
    width: 18px;
    margin-left: -9px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.thumb:hover {
    transform: scale(1.2);
}

.thumb#thumbMax {
    background-color: #198754;
}

.range-slide input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    pointer-events: none;
    z-index: 3;
    height: 4px;
    top: 0;
    width: 100%;
    opacity: 0;
    margin: 0;
}

.range-slide input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: all;
    border-radius: 50%;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.range-slide input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    border-radius: 50%;
    cursor: pointer;
    width: 18px;
    height: 18px;
    border: none;
}

/* Form Styles */
.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Modal Styles */
.modal-xl {
    max-width: 1140px;
}

/* Empty State */
.empty-icon {
    display: block;
    margin: 1rem auto;
    font-size: 4rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-xl {
        max-width: 95%;
    }
    
    .range-slide {
        margin: 30px 0;
    }
}

.filter-card {
    border: 1px solid #efefef;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.filter-card .card-header {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
}

.select2-selection__placeholder {
    color: #212529 !important;
}