/*--------------------------------------------------------------
>>> FILTER SIDEBAR STYLES - MODERN BEAUTIFUL DESIGN
--------------------------------------------------------------*/

.filter-sidebar {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

/* Sidebar Title */
.sidebar-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.sidebar-title::before {
    content: '\f0b0';
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: var(--spacing-sm);
}

/* Filter Form */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Filter Section */
.filter-section {
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: var(--spacing-lg);
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-heading {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.filter-heading::before {
    content: '\f107';
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.filter-heading.collapsed::before {
    transform: rotate(-90deg);
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-options.collapsed {
    max-height: 0;
}

.filter-options.scrollable {
    max-height: 250px;
    overflow-y: auto;
    padding-right: var(--spacing-xs);
}

/* Custom Scrollbar */
.filter-options.scrollable::-webkit-scrollbar {
    width: 6px;
}

.filter-options.scrollable::-webkit-scrollbar-track {
    background: var(--color-background);
    border-radius: var(--radius-sm);
}

.filter-options.scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-sm);
}

/* Custom Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.filter-checkbox:hover {
    background: rgba(102, 126, 234, 0.05);
}

.filter-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.filter-checkbox input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.filter-checkbox span {
    flex: 1;
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

.filter-checkbox .count {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
}

/* Private Badge */
.badge-private {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    color: white;
    font-size: 10px;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-lg);
}

.filter-actions .btn {
    width: 100%;
    padding: var(--spacing-md);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.filter-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.filter-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.filter-actions .btn-outline {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.filter-actions .btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .filter-sidebar {
        position: static;
        margin-bottom: var(--spacing-xl);
    }
}

@media (max-width: 767px) {
    .filter-sidebar {
        padding: var(--spacing-md);
    }

    .sidebar-title {
        font-size: var(--font-size-lg);
        padding: var(--spacing-md);
    }
}