/* Filter Sidebar Styles */
.filter-sidebar {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.filter-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 1.25rem 1.5rem;
    color: white;
}

.filter-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.filter-body {
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.filter-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section-title i {
    width: 1rem;
    height: 1rem;
    color: #0ea5e9;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background-color: #f8fafc;
}

.filter-option input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.375rem;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
}

.filter-option input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-color: #0ea5e9;
}

.filter-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.375rem;
    height: 0.625rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.filter-option input[type="checkbox"]:hover {
    border-color: #0ea5e9;
}

.filter-option-label {
    font-size: 0.875rem;
    color: #475569;
    user-select: none;
    flex: 1;
}

.filter-option:hover .filter-option-label {
    color: #0ea5e9;
}

.filter-reset-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: none;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-reset-btn:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #334155;
    transform: translateY(-1px);
}

.filter-reset-btn i {
    width: 1rem;
    height: 1rem;
}

/* Filter Count Badge */
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.5rem;
    margin-left: auto;
}

/* Mobile Filter */
@media (max-width: 1024px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .filter-body {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .filter-sidebar.active .filter-body {
        display: block;
        max-height: 2000px;
        padding: 1.5rem;
    }

    .filter-header {
        cursor: pointer;
        position: relative;
    }

    .filter-header::after {
        content: '';
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid white;
        transition: transform 0.3s ease;
    }

    .filter-sidebar.active .filter-header::after {
        transform: translateY(-50%) rotate(180deg);
    }
}
