/* Simple Filter Styles */

.filter-container {
    position: static;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto;
    overflow: visible;
}


/* Clear All Main Button */
.clear-all-section {
    margin-bottom: 12px;
}

.clear-all-main-btn {
    width: 100%;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.clear-all-main-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.clear-all-main-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.clear-all-main-btn i {
    font-size: 1rem;
}

.filter-group {
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    box-shadow: none !important;
}

/* Ensure last filter group has proper bottom spacing */
.filter-group:last-child {
    margin-bottom: 0;
}

.filter-header {
    background: #f5f5f5;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.filter-content {
    padding: 10px;
}

.filter-content.hidden {
    display: none;
}

.filter-item {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.filter-item:last-child {
    border-bottom: none;
}

.filter-item a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.filter-item a:hover {
    color: #dc3545;
}

.filter-item a.active {
    color: #dc3545;
    font-weight: bold;
}

/* Modern Range Inputs - Slider'lar kaldırıldı */
.modern-range-inputs {
    display: flex;
    align-items: flex-start; /* Tüm input'ları üstten hizala */
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.range-input-wrapper {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
}

.range-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-with-icon:focus-within {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.modern-range-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    background: transparent;
    width: 100%;
}

.modern-range-input::placeholder {
    color: #999;
    font-weight: 400;
}

.input-suffix {
    padding: 12px 16px 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #dc3545;
    white-space: nowrap;
    background: transparent;
}

.range-separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
    padding-top: 28px; /* Label yüksekliği kadar padding ekle ki hizalansın */
    align-self: flex-start;
    line-height: 1;
}

.range-info {
    margin: 12px 0;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.range-info-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.range-info-text span {
    color: #dc3545;
    font-weight: 700;
}

.price-range {
    display: none; /* Eski yapıyı gizle */
}

.power-range {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.power-range input {
    flex: 1;
    padding: 6px;
    border: 1px solid #ddd;
    font-size: 0.8rem;
}

.usage-hours-range {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.usage-hours-range input {
    flex: 1;
    padding: 6px;
    border: 1px solid #ddd;
    font-size: 0.8rem;
}

/* Dual Range Slider */
.dual-range-slider {
    position: relative;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 20px 0;
    display: block !important;
}

.slider-track {
    position: absolute;
    top: 0;
    height: 8px;
    background: #dc3545;
    border-radius: 4px;
    pointer-events: none !important;
    left: 0%;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.3);
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure all dual range sliders have red tracks */
.dual-range-slider .slider-track {
    background: #dc3545 !important;
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.3) !important;
}

.dual-range-slider input[type="range"] {
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    width: 100%;
    height: 24px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    pointer-events: auto !important; /* Slider tıklanabilir olmalı - thumb'lar için gerekli */
    z-index: 5;
    margin: 0;
    padding: 0;
    touch-action: none;
}



.dual-range-slider input[type="range"]:last-of-type {
    z-index: 5 !important;
}

/* Aktif slider üste çıksın - dinamik olarak JS ile ayarlanacak */
.dual-range-slider input[type="range"].active {
    z-index: 8 !important;
}

/* Track kısmı kesinlikle tıklanamaz - sadece thumb tıklanabilir */
.dual-range-slider input[type="range"]::-webkit-slider-runnable-track {
    pointer-events: none !important;
    cursor: default !important;
}

.dual-range-slider input[type="range"]::-moz-range-track {
    pointer-events: none !important;
    cursor: default !important;
}

/* Thumb'lar her zaman tıklanabilir olmalı - BU ÇOK ÖNEMLİ! */
.dual-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all !important;
    cursor: grab !important;
    -webkit-appearance: none;
    appearance: none;
    width: 22px !important;
    height: 22px !important;
    background: #dc3545 !important;
    border-radius: 50%;
    border: 3px solid white !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4) !important;
    position: relative;
    z-index: 100 !important; /* Çok yüksek z-index - her zaman üstte */
    margin-top: -2px;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    cursor: grab !important;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.6) !important;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing !important;
    transform: scale(1.15);
    box-shadow: 0 5px 12px rgba(220, 53, 69, 0.8) !important;
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: all !important;
    cursor: grab !important;
    width: 22px !important;
    height: 22px !important;
    background: #dc3545 !important;
    border-radius: 50%;
    border: 3px solid white !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4) !important;
    position: relative;
    z-index: 100 !important; /* Çok yüksek z-index - her zaman üstte */
}

.dual-range-slider input[type="range"]::-moz-range-thumb:hover {
    cursor: grab !important;
    transform: scale(1.1);
}

.dual-range-slider input[type="range"]::-moz-range-thumb:active {
    cursor: grabbing !important;
    transform: scale(1.15);
}

/* Z-index ayarları yukarıda tanımlandı, tekrar tanımlamaya gerek yok */

/* Track'e tıklandığında tıklanabilir yap */
.dual-range-slider {
    cursor: pointer;
}

/* Bu kısım yukarıda zaten tanımlı, tekrar tanımlamaya gerek yok */

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
    margin-top: 8px;
}

.power-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
    margin-top: 8px;
}

.usage-hours-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
    margin-top: 8px;
}

/* Apply Price Button */
.apply-price-btn {
    width: 100%;
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 8px;
}

.apply-price-btn:hover {
    background: #c82333;
}

/* Apply Power Button */
.apply-power-btn {
    width: 100%;
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 8px;
}

.apply-power-btn:hover {
    background: #c82333;
}

/* Apply Usage Hours Button */
.apply-usage-hours-btn {
    width: 100%;
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 8px;
}

.apply-usage-hours-btn:hover {
    background: #c82333;
}

.search-box {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.sub-category {
    margin-left: 20px;
    position: relative;
}

.sub-category::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ddd;
}

.sub-category::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 8px;
    height: 1px;
    background: #ddd;
    transform: translateY(-50%);
}

.product-count {
    background: #6c757d;
    color: white;
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 0.65rem;
}

/* Active Filters */
.active-filters {
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    box-shadow: none !important;
}

.active-filters-header {
    background: #e9ecef;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: bold;
}

.clear-all-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    cursor: pointer;
}

.clear-all-btn:hover {
    background: #c82333;
}

.active-filters-list {
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.active-filter-tag {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.active-filter-tag .remove-filter {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    margin-left: 4px;
}

.active-filter-tag .remove-filter:hover {
    color: #ffc107;
}

/* Invalid range state */
.slider-track.invalid {
    background: #ff4444 !important;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.5) !important;
    animation: pulse-invalid 1s ease-in-out;
}

@keyframes pulse-invalid {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Price input validation */
.price-range input.invalid {
    border-color: #ff4444 !important;
    box-shadow: 0 0 4px rgba(255, 68, 68, 0.3) !important;
}

.price-labels .invalid-label {
    color: #ff4444 !important;
    font-weight: bold;
}

/* Power range input validation */
.power-range input.invalid {
    border-color: #ff4444 !important;
    box-shadow: 0 0 4px rgba(255, 68, 68, 0.3) !important;
}

.power-labels .invalid-label {
    color: #ff4444 !important;
    font-weight: bold;
}

/* Usage hours range input validation */
.usage-hours-range input.invalid {
    border-color: #ff4444 !important;
    box-shadow: 0 0 4px rgba(255, 68, 68, 0.3) !important;
}

.usage-hours-labels .invalid-label {
    color: #ff4444 !important;
    font-weight: bold;
}

/* Responsive adjustments for filter container */
@media (max-width: 768px) {
    .filter-container {
        padding: 0 0 20px 0 !important;
    }
}
