/* Item Filter Styles */
.budget-display {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

#budget-slider {
    margin: 15px 5px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
}

/* Circular slider handles */
#budget-slider .ui-slider-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    outline: none;
    top: -6px;
}

/* Budget min handle (first handle) - smaller size */
#budget-slider .ui-slider-handle:first-of-type {
    width: 16px;
    height: 16px;
    top: -4px;
}

/* Budget max handle (second handle) - bigger size and ensure it's positioned next to min when both are at 0 */
#budget-slider .ui-slider-handle:last-of-type {
    width: 20px;
    height: 20px;
    top: -6px;
    z-index: 2;
}

/* When both handles are at position 0, offset the max handle slightly */
#budget-slider .ui-slider-handle[style*="left: 0%"]:last-of-type {
    margin-left: 10px;
}

#budget-slider .ui-slider-handle:hover {
    background: #0056b3;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

#budget-slider .ui-slider-range {
    background: #007bff;
    border-radius: 4px;
}

/* Budget row styling */
.budget-row {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.budget-row label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Filters row styling */
.filters-row .col-md-3 {
    padding-left: 10px;
    padding-right: 10px;
}

.filter-select {
    margin-bottom: 10px;
}

.panel-info {
    border-radius: 3px;
    box-shadow: #cecece 2px 2px 2px;
    margin-bottom: 10px;
}

.panel-warning {
    border-radius: 3px;
    box-shadow: #cecece 2px 2px 2px;
    margin-bottom: 10px;
}

.panel-info .panel-heading {
    background-color: #d9edf7;
    /* border-color: #bce8f1; */
}

.panel-warning .panel-heading {
    background-color: #fcf8e3;
    /* border-color: #faebcc; */
}

.panel-body .row {
    margin-bottom: 15px;
}

.panel-body label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .panel-body .col-md-2 {
        margin-bottom: 15px;
    }
    
    .panel-body .row .col-md-2:last-child {
        margin-bottom: 0;
    }
}

/* Clear filters button styling */
#clear-filters-btn {
    margin-top: 5px;
    /* margin-right: 10px; */
    transition: all 0.2s ease;
}

/* Apply filters button styling */
#apply-filters-btn {
    margin-top: 5px;
    margin-right: 12px;
    transition: all 0.2s ease;
}

/* Default state (when no filters are active) for both buttons */
#clear-filters-btn.btn-default,
#apply-filters-btn.btn-default {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

#clear-filters-btn.btn-default:hover,
#apply-filters-btn.btn-default:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* Danger state for clear button (when filters are active) */
#clear-filters-btn.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

#clear-filters-btn.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: #ffffff;
}

/* Success state for apply button (when filters are active) */
#apply-filters-btn.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

#apply-filters-btn.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: #ffffff;
}

/* Focus states */
#clear-filters-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

#clear-filters-btn.btn-danger:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#apply-filters-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

#apply-filters-btn.btn-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Icon spacing for both buttons */
#clear-filters-btn .fa,
#apply-filters-btn .fa {
    margin-right: 5px;
}

.budget-hint {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    text-align: center;
} 

.col-md-12.text-right {
    padding-left: 10px;
    padding-right: 10px;
}   

/* .progressive-loading {
    border-radius: 3px;
    box-shadow: #cecece 2px 2px 2px;
    margin-bottom: 10px;
} */