.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px; /* Updated to match your sidebar width */
    background-color: #343a40;
    color: #fff;
    overflow-y: auto;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2 !important;
    border-right: solid 1px grey;
    height: 100vh !important;
    background-color: rgba(44, 62, 80, 1) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    padding-top: 60px;
    font-size: 14px;
    font-size: smaller;
}
.sidebar-closed {
    width: 0 !important;
}

#sidebar.active {
    margin-left: -200px;
}
.sidebar-header {
    padding: 15px 15px;
    text-align: left;
    background-color: #212529;
    border-bottom: 1px solid #464d55;
    padding-left: 25px;
}
.sidebar-header .user-icon {
    font-size: 2.0rem;
    margin-right: 10px;
    color: #adb5bd;
}
.sidebar-header .user-info {
    margin-bottom: 0px;
}
.sidebar-header span.username {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 3px;
}
.sidebar-header small.role {
    font-size: 0.8rem;
    color: #adb5bd;
}
.dashboard {
    background-color: #4e73df; 
    color: #fff;
    padding: 3px;
    margin-top: 0px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.nav {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}
.nav-link {
    display: block;
    padding: 3px 20px; /* Adjusted padding */
    font-size: 0.8rem;
    color: #adb5bd;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    border: 2px solid transparent; /* Added transparent border */
}

.nav-link:hover {
    background-color: #4e5d6c;
    color: #fff;
}
.nav-item.active .nav-link {
    background-color: #4e5d6c;
    color: #fff;
}
.submenu {
    display: none;
    background-color: #2c3135;
    padding-left: 35px;
    position: relative;
    margin-left: 2px; /* Indent for submenu */
    border-left: 2px solid #007bff; /* Border color for submenu */
}
.submenu li {
    position: relative;
    padding: 2px 0; /* Adjusted padding */
    margin: 0; /* Removed margin */
}
.submenu .nav-link {
    padding: 2px 10px; /* Adjusted padding top and bottom */
    margin-left: 0px; /* Reduced spacing between bullet and text */
}
.nav-item.open > .submenu {
    display: block;
}
.nav-item.has-submenu .nav-link .submenu-arrow {
    position: absolute;
    right: 10px !important; /* Ensures arrow is at the far right */
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}
.nav-item.has-submenu.open .nav-link .submenu-arrow {
    transform: rotate(90deg);
}
.badge {
    border-radius: 50%;
    padding: 0.25em; /* Adjusted padding for circular shape */
    width: 1.5em; /* Fixed width for perfect circle */
    height: 1.5em; /* Fixed height for perfect circle */
    font-size: 0.70em; /* Adjusted font size */
    font-weight: 700;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #007bff; /* Primary color */
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.content {
    flex: 1;
    padding: 20px;
    transition: margin-left 0.3s;
    margin-left: 250px;
}




.sidebar {
    width: 250px;
    height: 100%;
    background: #007bff;
    position: fixed;
    left: 0;
    top: 0;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    z-index: 1050;
}

.sidebar.hide {
    transform: translateX(-100%);
}

.admin-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
}

.admin-content.content-expanded {
    margin-left: 0;
    width: 100%;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}





#sidebarToggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
    background-color: #343a40;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#sidebarToggle:hover {
    background-color: #23282c;
}
.form-control {
    /*font-size: 12px; 
    border-radius: 1px;*/
}