/* Sidebar overlay style */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    overflow: hidden;
    transition: width 0.3s ease;
    display: none; /* Hide by default */
}

.filter-toggle-btn {
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-toggle-btn i {
    font-size: 18px;
    color: #333;
}

#sidebar-overlay.active {
    width: 100%;
    display: block; /* Show when active */
}

.sidebar-content {
    width: 250px;
    height: 100%;
    background: white;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1051;
    overflow-y: auto;
    padding: 1rem;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

.close-overlay-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 24px;
    margin-bottom: 10px;
    z-index: 1052;
    display: block;
    margin-left: auto; /* Align close button to the right */
}

.overlay-separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0 15px 0;
}

@media (max-width: 768px) {
    #sidebar-overlay {
        display: none;
    }

    #sidebar-overlay.active {
        display: block;
    }

    aside.col-md-3 {
        display: none !important;  /* Hide desktop sidebar on mobile */
    }
}

    @media (min-width: 769px) {
        #sidebar-overlay {
            display: none !important;
        }
    }