.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 60px;
    height: 100%;
    width: 312px;
    z-index: 10;
    transition: all 0.3s ease-in;
    background: #fff;
}
.sidebar.close {
    width: 78px;
}
.sidebar .logo-details {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
}
.sidebar .logo-details i {
    font-size: 30px;
    color: #14592d;
    height: 50px;
    min-width: 78px;
    text-align: center;
    line-height: 50px;
}
.sidebar .logo-details .logo_name {
    color: black;
    transition: 0.3s ease;
    transition-delay: 0.1s;
    max-width: 60%;
    padding-top: 10px;
}
.sidebar.close .logo-details .logo_name {
    transition-delay: 0s;
    opacity: 0;
    pointer-events: none;
}
.sidebar .nav-links {
    height: 96%;
    padding: 0;
    margin-top: 1.5rem;
    padding-top: 20px;
    padding-bottom: 2rem;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sidebar.close .nav-links {
    overflow: visible;
    /* firefox */
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #888 #f1f1f1; /* Thumb and track colors */
}
.sidebar .nav-links::-webkit-scrollbar {
    /* display: none; */
    width: 10px;
}
.sidebar .nav-links::-webkit-scrollbar {
    background: #f1f1f1;
}
.sidebar .nav-links::-webkit-scrollbar-thumb {
    background-color: #888; /* Scrollbar color */
    border-radius: 10px; /* Roundness of the scrollbar */
    border: 2px solid #f1f1f1; /* Space between thumb and track */
}
.sidebar .nav-links::-webkit-scrollbar-thumb:hover {
    background: #555; /* Hover state */
}

.sidebar .nav-links li {
    position: relative;
    list-style: none;
    transition: all 0.4s ease;
    cursor: pointer;
}
.sidebar .nav-links .link-category.active:before,
.sidebar .nav-links .link-category:before {
    position: absolute;
    left: 0;
    top: 0;
    content: "";
    width: 4px;
    height: 100%;
    background: #14592d;
    opacity: 0;
    transition: all 0.25s ease-in-out;
    border-top-right-radius: 5px;
    border-top-right-radius: 5px;
}
.sidebar .nav-links .link-category.active:before,
.sidebar .nav-links .link-category:hover:before {
    opacity: 1;
}
.sidebar .nav-links li .icon-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar.close .nav-links li .icon-link {
    display: block;
}
.sidebar .nav-links li i {
    height: 50px;
    min-width: 78px;
    text-align: center;
    line-height: 50px;
    color: #14592d;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar .nav-links li.active i,
.sidebar .nav-links li:hover i {
    color: #14592d;
}
.sidebar .nav-links li.showMenu i.arrow {
    transform: rotate(-180deg);
}
.sidebar.close .nav-links i.arrow {
    display: none;
}
.sidebar .nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.sidebar .nav-links li a .link_name {
    font-size: 16px;
    font-weight: 400;
    color: #14592d;
    transition: all 0.4s ease;
    font-weight: bold;
}
.sidebar .nav-links li.active a .link_name,
.sidebar .nav-links li:hover a .link_name {
    color: #14592d;
}
.sidebar.close .nav-links li a .link_name {
    opacity: 0;
    pointer-events: none;
}
.sidebar .nav-links li .sub-menu {
    padding: 6px 6px 14px 80px;
    margin-top: -10px;
    background: #fff;
    display: none;
}
.sidebar .nav-links li.showMenu .sub-menu {
    display: block;
}
.sidebar .nav-links li .sub-menu a {
    color: #14592d;
    font-size: 15px;
    padding: 5px 0;
    white-space: nowrap;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.sidebar .nav-links li .sub-menu a:hover {
    opacity: 1;
}
.sidebar .nav-links li .sub-menu .active {
    opacity: 1;
}
.sidebar.close .nav-links li .sub-menu {
    position: absolute;
    left: 100%;
    top: -10px;
    margin-top: 0;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    opacity: 0;
    display: block;
    pointer-events: none;
    transition: 0s;
}
.sidebar.close .nav-links li:hover .sub-menu {
    top: 0;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
}
.sidebar .nav-links li .sub-menu .link_name {
    display: none;
}
.sidebar.close .nav-links li .sub-menu .link_name {
    font-size: 18px;
    opacity: 1;
    display: block;
}
.sidebar .nav-links li .sub-menu.blank {
    opacity: 1;
    pointer-events: auto;
    padding: 3px 20px 6px 16px;
    opacity: 0;
    pointer-events: none;
}
.sidebar .nav-links li:hover .sub-menu.blank {
    top: 50%;
    transform: translateY(-50%);
}
.sidebar .profile-details {
    position: fixed;
    bottom: 0;
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #14592d;
    padding: 12px 0;
    transition: all 0.5s ease;
}
.sidebar.close .profile-details {
    background: none;
}
.sidebar.close .profile-details {
    width: 78px;
}
.sidebar .profile-details .profile-content {
    display: flex;
    align-items: center;
}
.sidebar .profile-details img {
    height: 52px;
    width: 52px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 14px 0 12px;
    background: #1d1b31;
    transition: all 0.5s ease;
}
.sidebar.close .profile-details img {
    padding: 10px;
}
.sidebar .profile-details .profile_name,
.sidebar .profile-details .job {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}
.sidebar .profile-details .job {
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    opacity: 0.5;
    white-space: nowrap;
}
.sidebar .profile-details i.bx {
    min-width: 50px;
    color: white;
}

.sidebar.close .profile-details i,
.sidebar.close .profile-details .profile_name,
.sidebar.close .profile-details .job {
    display: none;
}
.sidebar .profile-details .job {
    font-size: 12px;
}
.home-section {
    padding-top: 1rem;
    padding-bottom: 3rem;
    position: relative;
    background: #e4e9f7;
    min-height: 100vh;
    left: 312px;
    width: calc(100% - 312px);
    transition: all 0.5s ease;
}
.sidebar.close ~ .home-section {
    left: 78px;
    width: calc(100% - 78px);
}
.home-section .home-content {
    height: 60px;
    display: flex;
    align-items: center;
}
.home-section .home-content .bx-menu,
.home-section .home-content .text {
    color: #14592d;
    font-size: 35px;
}
.home-section .home-content .bx-menu {
    margin: 0 15px;
    cursor: pointer;
}
.home-section .home-content .text {
    font-size: 26px;
    font-weight: 600;
}

#log-out:hover {
    color: white;
}

@media (max-width: 470px) {
    .sidebar.close,
    .sidebar.close .profile-details {
        width: 0px;
    }

    .sidebar.close ul {
        display: none;
    }

    .sidebar,
    .profile-details {
        width: 100%;
    }

    .home-section {
        width: 100%;
        left: 0;
    }

    .sidebar.close ~ .home-section {
        width: 100%;
        left: 0;
    }

    .sidebar .profile-details {
        transition: all 0.5s ease;
        width: 100%;
    }

    #menuu {
        display: none;
    }

    #header-menu-box {
        display: block;
        z-index: 10;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 20px;
    }
}

/* FOR GUESTS */
.sidebar-guest {
    position: fixed;
    top: 0;
    right: 0;
    padding-top: 60px;
    height: 100%;
    width: 312px;
    z-index: 10;
    transition: all 0.3s ease-in;
    background: #fff;
    display: none;
}
.sidebar-guest.close {
    width: 78px;
}
.sidebar-guest .nav-links {
    height: 96%;
    padding: 0;
    margin-top: 2.5rem;
    padding-top: 20px;
    padding-bottom: 2rem;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sidebar-guest.close .nav-links {
    overflow: visible;
    /* firefox */
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #888 #f1f1f1; /* Thumb and track colors */
}
.sidebar-guest .nav-links::-webkit-scrollbar {
    width: 10px;
    background: #f1f1f1;
}
.sidebar-guest .nav-links::-webkit-scrollbar-thumb {
    background-color: #888; /* Scrollbar color */
    border-radius: 10px; /* Roundness of the scrollbar */
    border: 2px solid #f1f1f1; /* Space between thumb and track */
}
.sidebar-guests .nav-links::-webkit-scrollbar-thumb:hover {
    background: #555; /* Hover state */
}
.sidebar-guest .nav-links li {
    position: relative;
    list-style: none;
    transition: all 0.4s ease;
    cursor: pointer;
}
.sidebar-guest .nav-links .link-category.active:before,
.sidebar-guest .nav-links .link-category:before {
    position: absolute;
    left: 0;
    top: 0;
    content: "";
    width: 4px;
    height: 100%;
    background: #14592d;
    opacity: 0;
    transition: all 0.25s ease-in-out;
    border-top-right-radius: 5px;
    border-top-right-radius: 5px;
}
.sidebar-guest .nav-links .link-category.active:before,
.sidebar-guest .nav-links .link-category:hover:before {
    opacity: 1;
}
.sidebar-guest .nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding-left: 15px;
}
.sidebar-guest .nav-links li a .link_name {
    font-size: 16px;
    font-weight: 400;
    color: #14592d;
    transition: all 0.4s ease;
    font-weight: bold;
}
.sidebar-guest .nav-links li.active a .link_name,
.sidebar-guest .nav-links li:hover a .link_name {
    color: #14592d;
}
.sidebar-guest.close .nav-links li a .link_name {
    opacity: 0;
    pointer-events: none;
}
.sidebar-guest .nav-links li .sub-menu {
    padding: 6px 6px 14px 80px;
    margin-top: -10px;
    background: #fff;
    display: none;
}
.sidebar-guest .nav-links li.showMenu .sub-menu {
    display: block;
}
.sidebar-guest .nav-links li .sub-menu a {
    color: #14592d;
    font-size: 15px;
    padding: 5px 0;
    white-space: nowrap;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.sidebar-guest .nav-links li .sub-menu a:hover {
    opacity: 1;
}
.sidebar-guest .nav-links li .sub-menu .active {
    opacity: 1;
}
.sidebar-guest.close .nav-links li .sub-menu {
    position: absolute;
    left: 100%;
    top: -10px;
    margin-top: 0;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    opacity: 0;
    display: block;
    pointer-events: none;
    transition: 0s;
}
.sidebar-guest.close .nav-links li:hover .sub-menu {
    top: 0;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
}
.sidebar-guest .nav-links li .sub-menu .link_name {
    display: none;
}
.sidebar-guest.close .nav-links li .sub-menu .link_name {
    font-size: 18px;
    opacity: 1;
    display: block;
}
.sidebar-guest .nav-links li .sub-menu.blank {
    opacity: 1;
    pointer-events: auto;
    padding: 3px 20px 6px 16px;
    opacity: 0;
    pointer-events: none;
}
.sidebar-guest .nav-links li:hover .sub-menu.blank {
    top: 50%;
    transform: translateY(-50%);
}

.links-guest {
    display: flex;
    gap: 1rem;
}

@media (max-width: 470px) {
    .sidebar-guest {
        display: block;
    }

    .sidebar-guest.close,
    .sidebar-guest.close .profile-details {
        width: 0px;
    }

    .sidebar-guest.close ul {
        display: none;
    }

    .sidebar-guest,
    .profile-details {
        width: 100%;
    }

    .links-guest {
        display: none;
    }
}
