.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18.75em;
    background: var(--hs-red);
    transition: all 0.5s ease;
    z-index: 10000;
    font-family: "Inter Tight", sans-serif;
    display: flex;
    flex-direction: column;
}

.sidebar.close {
    width: 60px;
}

.sidebar .logo-details {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.close .logo-details {
    justify-content: center;
}

.sidebar:not(.close) .logo-details {
    justify-content: flex-start;
    padding-left: 1rem;
}

.sidebar .logo-details .logo-mark {
    height: 30px;
    width: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.sub-menu > li > a {
    width: 100%;
}

#teal-mountain-link .bx {
    display: flex;
    align-items: center;
    justify-content: center;
}

#teal-mountain-link .bx img {
    height: 28px;
}

.sidebar .logo-details i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--hs-white);
    height: 50px;
    min-width: 60px;
}

.sidebar .logo-details i > a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .logo-details .logo_name {
    font-size: 22px;
    color: var(--hs-white);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
    transition-delay: 0.1s;
}

.sidebar.close .logo-details .logo_name {
    transition-delay: 0s;
    opacity: 0;
    width: 0;
    pointer-events: none;
}

.sidebar .nav-links {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 30px 0 0 0;
    overflow: auto;
}

.sidebar .nav-links > li:last-child {
    margin-top: auto;
}

.sidebar.close .nav-links {
    overflow: visible;
}

.sidebar .nav-links::-webkit-scrollbar {
    display: none;
}

.sidebar .nav-links li {
    position: relative;
    list-style: none;
    transition: all 0.4s ease;
    padding: 0 0.2rem 0 0.2rem;
    border-radius: 4px;
}

.sidebar .nav-links li:hover,
.sidebar .nav-links li:active {
    background-color: var(--hs-brightred);
}

#teal-mountain-link {
    background-color: #004343;
}

#teal-mountain-link span {
    margin-left: 0.5rem;
}

#teal-mountain-link .styled-label {
    display: inline-block;
    transform: translateY(-1px);
}

.sidebar .nav-links #teal-mountain-link:hover {
    background-color: #008080;
}

.sidebar .nav-links .icon-link:hover,
.sidebar .nav-links .icon-link:active {
    background-color: var(--hs-brightred);
}

.sidebar .nav-links li .icon-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.sidebar.close .nav-links li .icon-link {
    display: block;
}

.sidebar .nav-links li i {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    min-width: 60px;
    color: var(--hs-white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrow {
    font-size: 16px !important;
    min-width: 30px !important;
}

.nav-links > li {
    padding: 0 !important;
}

.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: 18px;
    font-weight: 400;
    color: var(--hs-white);
    transition: all 0.4s ease;
    cursor: pointer;
    white-space: nowrap;
}

.sidebar.close .nav-links li a .link_name {
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.sidebar .nav-links li .sub-menu {
    padding: 6px 6px 14px 80px;
    background: var(--hs-red);
    display: none;
}

.sidebar .nav-links li .sub-menu a {
    color: var(--hs-white);
    font-size: 15px;
    padding: 0.6rem;
    white-space: nowrap;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.sidebar .nav-links li .sub-menu a:hover {
    opacity: 1;
}

.sidebar.close .nav-links li .sub-menu {
    position: absolute;
    left: 100%;
    top: -10px;
    margin-top: 0;
    padding: 0.5rem;
    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 {
    padding: 3px 20px 6px 16px;
    opacity: 0;
    pointer-events: none;
}

.one {
    width: 80%;
    margin-left: 10%;
    background-color: black;
    height: 400px;
}

.sidebar .profile-details {
    bottom: 0;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 12px 0;
    transition: all 0.5s ease;
}

.sidebar.close .profile-details {
    background: none;
    width: 60px;
}

.sidebar .profile-details .profile-content {
    display: flex;
    align-items: center;
}

.sidebar .profile-details .name-job {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.sidebar .profile-details img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 7px 0 6px;
    transition: all 0.5s ease;
    padding: 0.1rem;
}

.sidebar.close .profile-details img {
    padding: 10px;
}

.sidebar.close .profile-details .profile-content {
    display: none;
}

.sidebar .profile-details .profile_name,
.sidebar .profile-details .job {
    color: var(--hs-white);
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.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;
}

.bx-menu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}


.expand-menu {
    width: 100%;
    text-align: left;
    margin-top: 1rem;
    cursor: pointer;
}

.sidebar:not(.close) .expand-menu {
    margin-left: 17px;
}

.sidebar:not(.close) .bx-menu {
    justify-content: flex-start;
}

@media (max-width: 420px) {
    .sidebar.close .nav-links li:not(.showMenu) .sub-menu {
        display: none;
    }
}

.sub-menu {
    padding-bottom: 0.5rem !important;
}

.sub-menu > li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-icon {
    color: red;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 3rem;
    font-size: 2rem;
    height: 2rem;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 1000px) {
    .sidebar {
        width: 100%;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    .sidebar-backdrop.visible {
        display: block;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0s linear 0s;
    }

    .sidebar .nav-links li {
        margin-top: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .sidebar.close {
        width: 128px;
    }

    /* The rail relies on CSS :hover to reveal flyout submenus, which
       touch screens can't trigger reliably; on mobile the sidebar is
       always used in its expanded (tap-to-open) state instead, so the
       rail must scroll rather than silently strand items below the fold. */
    .sidebar.close .nav-links {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* The desktop rail keeps flyout sub-menus in the layout (display:block,
       position:absolute) so :hover can reveal them instantly. Touch devices
       never trigger that hover, but the off-screen flyouts still inflate
       the rail's scrollable height, pushing later items (like log out)
       past the bottom of the screen with no way to scroll to them. */
    .sidebar.close .nav-links li .sub-menu {
        display: none;
    }

    .sidebar .logo-details {
        height: 100px;
    }

    .sidebar .logo-details i {
        height: 100px;
        min-width: 128px;
    }

    .sidebar .logo-details .logo-mark {
        height: 56px;
        width: 56px;
    }

    .expand-menu {
        margin-left: 0;
        margin-bottom: 28px;
    }

    .menu-icon {
        height: 88px;
        width: 88px;
        padding: 5px;
        font-size: 3.5rem;
    }

    .sidebar .nav-links li i {
        height: 88px;
        font-size: 40px;
        min-width: 128px;
    }

    .sidebar .logo-details .logo_name {
        font-size: 2.3rem;
    }

    .sidebar .nav-links li a .link_name {
        font-size: 2.1rem;
        margin-left: 1.75rem;
    }

    .sidebar .nav-links li .sub-menu {
        padding-left: 2rem;
    }

    .sidebar .nav-links li .sub-menu a {
        font-size: 2.1rem;
        white-space: normal;
    }

    .sidebar .profile-details {
        width: auto;
        height: 7.5rem;
    }

    .sidebar .name-job .profile_name {
        font-size: 1.9rem;
    }

    .sidebar .name-job .job {
        font-size: 1.6rem;
    }

    .sidebar .profile-details > * {
        height: 100%;
        width: 25%;
    }

    .sidebar .name-job {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .sidebar .nav-links {
        padding: 16px 0 24px 0;
    }

    .sidebar .bx-log-out {
        width: 20%;
    }

    .sidebar .bx-log-out {
        display: block !important;
        height: 100% !important;
        background-size: 50%;
    }

    .sidebar .nav-links li:hover {
        background-color: var(--hs-darkred);
    }

    .sidebar .nav-links .icon-link:hover {
        background-color: var(--hs-darkred);
    }
}
