﻿/* Add this CSS to your stylesheet */
.applied-filters {
    font-size: 0.875rem; /* Adjust the font size as needed */
    color: #6c757d; /* Optional: Add a lighter color for the text */
}

/* Ensure consistent alignment and spacing for .form-check elements */
.accordion-item .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.accordion-item .form-check-input {
    margin: 0.5rem;
}

.accordion-item .form-check-label {
    margin-bottom: 0;
}

body {
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: calc(300px * -1);
    z-index: 1000;
    width: 300px;
    padding: 48px 20px;
    background-color: #f8f9fa;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    height: 100vh;
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-heading {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

#main-content {
    transition: margin-right 0.3s ease-in-out;
}

#main-content.shrink {
    margin-right: 300px;
}

/* Adjust position of the toggle button when the sidebar is active and opened */
.sidebar-toggle {
    position: fixed;
    top: 75px;
    right: 20px;
    z-index: 1050;
    transition: all 0.3s ease-in-out;
}

.sidebar-toggle i {
    transition: transform 0.3s ease-in-out;
}

.sidebar-toggle.active i {
    transform: rotate(180deg);
}

#sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        right: -100%;
    }

    #main-content.shrink {
        margin-right: 0;
    }

    .sidebar-toggle {
        top: 75px;
        right: 10px;
    }
}


@media (max-width: 576px) {
    .sidebar {
        width: 100%;
        height: 100%;
        right: -100%;
    }

    #main-content.shrink {
        margin-right: 0;
    }

    .navbar {
        position: relative;
        z-index: 102;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: start;
    }
}

#sidebarToggle {
    transition: all 0.3s ease-in-out;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0c63e4;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}
