.sidebar{
    width: 220px;
    height: 100vh;
    background-color: #000;
    display: flex;
    flex-wrap: wrap;
    position: fixed;
    left: 0px;
    transition: transform 0.25s ease;
    z-index: 9;
}
.sidebar-dock-toggle{
    display: none;
}
.sidebar ul{
    list-style: none;
    padding: 0px;
    margin: 0px 0px;
    width: 100%;
    padding: 14px 8px;
}
.sidebar ul li a:hover{
    background-color: rgb(255 255 255 / 18%);
}
.sidebar ul li.active{
    background-color: rgb(255 255 255 / 18%);
}
.log-out{
    width: 90%;
    margin: 0 auto;
}
.role{
    text-align: center;
    padding-bottom: 20px;
    color: #8f8b8b;
}
.sidebar ul li a{
    color: #fff !important;
    text-decoration: none;
    padding: 14px 14px;
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
.sidebar ul.below-sidebar{
    position: absolute;
    bottom: 0px;
}
.sidebar .below-sidebar li a{
    width: 100%;
    text-align: center;
    display: block;
    padding: 14px;
    display: block;
    text-align: center;
    color: #31a93e !important;
    margin: 0px;
}
.below-sidebar li:first-child{
    color: #31a93e !important;
    text-align: center;
    padding-bottom: 10px;
    font-size: 15px;
    cursor: initial;
}
.below-sidebar li:first-child:hover{
   background-color: transparent;
   cursor: pointer;
   opacity: 0.8;
}
.log-out a{
    border: 1px solid #595959;
    margin: 0 auto;
    border-radius: 4px;
    padding: 10px !important;
    text-align: center !important;
    display: block !important;
    cursor: pointer;
    color: #fff !important;
}
.log-out:hover{
   background-color: rgb(255 255 255 / 18%);
}
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.submenu.show {
    max-height: 500px; 
    padding-top: 0px !important;
}
.submenu li a{
    padding: 10px 14px !important;
}

@media only screen and (max-width: 1150px) {
    .sidebar{
        transform: translateX(-100%); /* Hidden by default */
        transition: transform 0.3s ease;
        z-index: 9;
        height: calc(94vh - 15px);
        width: 100%;
    }
    .sidebar.active {
        transform: translateX(0);
    }
}

@media only screen and (min-width: 1151px) {
    body.sidebar-collapsed .sidebar{
        transform: translateX(-100%);
    }

    .sidebar-dock-toggle{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 75%;
        left: 206px;
        width: 30px;
        height: 30px;
        border: 1px solid #d0d5dd;
        border-radius: 999px;
        background: #fff;
        color: #111827;
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
        cursor: pointer;
        z-index: 12;
        transition: left 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .sidebar-dock-toggle:hover{
        background: #111827;
        color: #fff;
        border-color: #111827;
    }
    body.sidebar-collapsed .sidebar-dock-toggle{
        left: 12px;
    }
}
