html, body {
            height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.content-container {
    flex: 1 0 auto;
    display: flex;
}

footer {
    flex-shrink: 0;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    transition: all 0.3s;
    z-index: 1000;
    height: 100%;
    border-right: 1px solid #dee2e6;
}

/* For desktop view */
#sidebar.collapsed {
    margin-left: -250px;
}

.sidebar-background {
    padding: 15px; 
    background-color: #dedede;
}
.sidebar-link {
    display: flex;
    background-color: #fff;
    align-items: center;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 6px;
    color: #495057;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}
.sidebar-link:hover, .sidebar-link.active {
    background-color: #fff;
    border: 1px solid #6792c1;
    border-radius: 8px;
    color: #000;
    margin-bottom: 6px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}
.sidebar-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Dropdown Styles */
.sidebar-dropdown {
    margin-bottom: 6px;
}

.sidebar-dropdown-toggle {
    display: flex;
    background-color: #fff;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 6px;
    color: #495057;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    width: 100%;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.sidebar-dropdown-toggle:hover {
    background-color: #fff;
    border: 1px solid #6792c1;
    color: #000;
}

.sidebar-dropdown-toggle .dropdown-icon {
    transition: transform 0.3s;
    margin-left: auto;
}

.sidebar-dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
}

.sidebar-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-left: 15px;
    margin-bottom: 0;
}

.sidebar-dropdown-menu.show {
    max-height: 500px;
    margin-bottom: 6px;
}

.sidebar-dropdown-item {
    display: flex;
    background-color: #f8f9fa;
    align-items: center;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 4px;
    color: #495057;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
    border-left: 3px solid #6792c1;
}

.sidebar-dropdown-item:hover, .sidebar-dropdown-item.active {
    background-color: #e9ecef;
    color: #000;
    border-left: 3px solid #495057;
}

.sidebar-dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Toggle button style */
#sidebarCollapse {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #495057;
    cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
        position: fixed;
        height: 100%;
        overflow-y: auto;
        box-shadow: 3px 0px 10px rgba(0, 0, 0, 0.1);
    }
    
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
        margin-left: 0;
    }
    
    #sidebarCollapse {
        display: block;
    }
    
    /* Add overlay when sidebar is active */
    .sidebar-overlay {
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 999;
        top: 0;
        left: 0;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}
