.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}
#sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    transition: all 0.35s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #343a40;  /* Ensure background color is set */

}


#sidebar.active {
    margin-left: -250px;
}


.sidebar-link {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
    transition: all 0.3s;
  
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#content {
    width: calc(100% - 250px);
    min-height: 100vh;
    margin-left: 250px;
    transition: all 0.35s ease-in-out;
}

#content.expanded {
    width: 100%;
    margin-left: 0;
}

#content.expanded {
    width: 100%;
    margin-left: 0;
}


.components li {
    margin-bottom: 5px;
}

#sidebar.collapsed {
    margin-left: -250px;
}

.collapse {
    transition: all 0.3s ease;
}

.fa-chevron-right,
.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* Adjust main content when sidebar is present */
#page-content-wrapper {
    width: 100%;
    margin-left: 0;
    transition: all 0.3s;
}

#page-content-wrapper.sidebar-active {
    margin-left: 0;
}


@@media (max-width: 768px) {
    #sidebar {
        display: block; /* Ensure it's visible */
        position: fixed; /* Keep it fixed on small screens */
        top: 0;
        left: -250px; /* Off-screen by default */
        transition: left 0.3s ease-in-out;
    }

    #sidebar.collapsed {
        left: 0;
    }

    #content {
        width: 100%;
        margin-left: 0;
    }

    #content.expanded {
        margin-left: 250px;
    }
}
