#sidebar {
    width: 250px;
    height: 100vh;
    max-height: 100vh;
    background-color: #f8f9fa;
    position: fixed;
    top: 0;
    left: -250px;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
    padding-bottom: 30px;

}

#sidebar.active {
    left: 0;
}

#sidebar .sidebar-header {
    padding: 20px;
    background-color: #6c757d;
    color: white;
    height:60px;
    
}

#sidebar ul.components {
    padding: 0px 0;
    list-style: none;
     
    
}

#sidebar ul li {
    padding: 0px;
     
    font-size: 1.1em;
    border-bottom:0.5px solid #adb5bd 
}

#sidebar ul li a {
    color: #343a40;
    text-decoration: none;
    display: block;
    transition: 0.3s;
    height:45px; 
    padding-left:10px;
    padding-top:8px;
}

#sidebar ul li a:hover {
    background-color: #adb5bd;
    padding-left: 5px;/**  **/
    height:45px;
}

/* Main content */
#content {
    
margin-left: 0;
}
 
#content.active {
    

    transition: all 0.3s;
    padding: 20px;
    margin-left: 250px;
    margin-bottom:20px;
}
 
/* Navbar */
#topNav {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    z-index: 999;
    position: fixed;
    width: 100%;
    top: 0;
    padding: 10px;
    /** height:70px; **/
}

/* Sidebar toggle button for mobile */
#sidebarCollapse {
   /** background: #6c757d;
    border: none; **/
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    position: fixed;
    top: 8px;
    left: 10px;
    z-index: 1050;
}

@media (max-width: 768px) {
    #sidebar {
        left: -250px;
    }
    #sidebar.active {
        left: 0;
    }
    #content {
        margin-left: 0;
    }
}

.nav-link {
   /* color: #343a40 !important;   Ensure text color is set and overrides any global styles */
    display: inline-block !important;  /* Ensure links are displayed */
    visibility: visible !important;  /* Ensure visibility is set to visible */
    text-align: left !important;  /* Reset alignment if necessary */
}


form button {
    display: inline-block !important;  /* Ensure button is visible */
    visibility: visible !important;    /* Ensure visibility is set to visible */
    color: #ffffff !important;         /* Ensure button text is readable */
   /* background-color: #6c757d !important;  Match the button color with the rest of the sidebar */
    border: none;                      /* Remove any default borders */
}

form button:hover {
    background-color: #5a6268 !important;  /* Darken button on hover */
}


/* Customize scrollbar for the sidebar */
#sidebar::-webkit-scrollbar {
    width: 8px;
}

#sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#sidebar::-webkit-scrollbar-thumb {
    background: #888;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}
