/* ============================================================
   FILTER SIDEBAR STYLE
   Path: plugins/multi_opac_path/assets/css/filtersidebar.css
   Version: 1.0.0
   ============================================================ */

.filter-sidebar {
    background: #ffffff;
    padding: 16px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 20px;
}

.filter-sidebar .filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary-color, #0d6efd);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.filter-sidebar .filter-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color, #212529);
    margin: 0;
}

.filter-sidebar .filter-header .badge {
    font-size: 0.65rem;
    background: var(--primary-color, #0d6efd);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
}

.filter-sidebar .list-group-item {
    border: none;
    border-top: 1px solid #f0f0f0 !important;
    padding: 10px 0;
}

.filter-sidebar .list-group-item:first-child {
    border-top: none !important;
}

.filter-sidebar .list-group-item .text-sm {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color, #212529);
}

.filter-sidebar .list-group-item .cursor-pointer {
    cursor: pointer;
    user-select: none;
}

.filter-sidebar .list-group-item .cursor-pointer:hover {
    color: var(--primary-color, #0d6efd);
}

.filter-sidebar .list-group-item .dropdown-toggle {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.filter-sidebar .list-group-item .dropdown-toggle::before {
    content: "▼";
    font-size: 0.6rem;
}

.filter-sidebar .list-group-item .collapse.show + .cursor-pointer .dropdown-toggle::before {
    content: "▲";
}

.filter-sidebar .form-check {
    padding-left: 24px;
    margin-bottom: 4px;
}

.filter-sidebar .form-check-input {
    margin-left: -20px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary-color, #0d6efd);
}

.filter-sidebar .form-check-label {
    font-size: 0.82rem;
    color: #495057;
    cursor: pointer;
}

.filter-sidebar .form-check-label:hover {
    color: var(--primary-color, #0d6efd);
}

.filter-sidebar .collapse .mt-2 {
    margin-top: 6px !important;
    padding-left: 4px;
}

.filter-sidebar .divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 12px 0;
}

.filter-sidebar .btn-apply {
    background: var(--primary-color, #0d6efd);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    width: 100%;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.filter-sidebar .btn-apply:hover {
    background: var(--primary-dark, #0a58ca);
}

.filter-sidebar .btn-reset {
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    width: 100%;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: background 0.2s;
}

.filter-sidebar .btn-reset:hover {
    background: #e0e0e0;
    text-decoration: none;
    color: #444;
}

.filter-sidebar .filter-count {
    font-size: 0.7rem;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

.filter-sidebar .filter-group {
    margin-bottom: 12px;
}

.filter-sidebar .filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color, #212529);
    margin-bottom: 3px;
    display: block;
}

.filter-sidebar .filter-group .form-control,
.filter-sidebar .filter-group .form-select {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.filter-sidebar .filter-group .form-control:focus,
.filter-sidebar .filter-group .form-select:focus {
    border-color: var(--primary-color, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.12);
}

@media (max-width: 768px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}
