nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 2.65rem;
    height: 100%;
    background: transparent;
    overflow: hidden;
    transition: width 0.4s ease-in-out;
    box-sizing: border-box;
}

nav.expanded {
    width: 14rem;
}

nav.expanded .nav-item,
nav.expanded .nav-item-logo {
    opacity: 1;
}

#sidebarToggleIcon {
    transition: transform 0.3s ease;
}

#sidebarToggleIcon.flipped {
    transform: scaleX(-1);
}

nav .links-container {
    width: 100%;
    height: fit-content;
    border-radius: 12px;
    background: linear-gradient(0deg,
            rgba(1, 4, 59, 0.35) 0%,
            rgba(1, 4, 59, 0.25) 100%);
    border-radius: 12px;
    /* backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); */
}

nav h2 {
    margin: 0;
    font-weight: 500;
}

nav ul {
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
}

nav .fas {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    font-weight: 100;
    /* cursor: pointer; */
}

nav .icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 1.15rem;
    font-weight: 100;
    cursor: pointer;
}

nav .dropdown-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 1.15rem;
    font-weight: 100;
    cursor: pointer;
}

@keyframes rotateCounter {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.counter-rotate {
    animation: rotateCounter 0.6s linear;
}

nav .icon-container:hover path {
    fill: #E99757;
}

nav .dropdown-icon-container:hover path {
    fill: #E99757;
}

nav .fa-database {
    font-weight: 900;
}

nav .fa-desktop {
    font-weight: 900;
}

nav .fa-plus {
    font-weight: 900;
}

nav .fa-sign-out-alt {
    font-weight: 900;
}

.sub-btn .fa-history {
    font-weight: 900;
}

.sub-btn .fa-chevron-down {
    font-weight: 900;
}

.rotate-icon {
    transition: transform 0.3s ease-in-out;
}

.rotated {
    transform: rotate(180deg);
}

.fas:hover {
    text-decoration: none;
}

.nav-item-logo {
    top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.nav-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    color: #ffffff;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #E99757;
    transition: width 0.3s ease-in-out;
}

nav a:hover .nav-item {
    color: #E99757;
}

nav a:hover .nav-item::after {
    width: 100%;
}

.logo-container {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.expand-logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo img {
    width: 30px;
    height: 30px;
}

a .logo path {
    transition: fill 0.3s ease;
}

.logo:hover path {
    fill: #E99757;
}

a .icon path {
    transition: fill 0.3s ease;
}

.icon:hover path {
    fill: #E99757;
}

.logo span {
    font-weight: bold;
    font-size: 1.125rem;
    text-transform: uppercase;
    color: var(black);
}

.logout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    width: fit-content;
}


a .logout path {
    transition: fill 0.3s ease;
}

.logout:hover path {
    fill: #E99757;
}

li a {
    font-size: 0.875rem;
    color: #ffffff;
    margin: 0;
}

nav a h2 {
    color: white;
    transition: color 0.3s;
}

nav .span-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    height: fit-content;
    min-width: 10rem;
    position: relative;
}

nav span {
    color: white;
}

a:hover {
    color: #E99757;
    text-decoration: none;
}

a:hover .logo path {
    color: #E99757;
}

a:hover span {
    color: #E99757;
    text-decoration: none;
}

a:hover h2 {
    color: #E99757;
    text-decoration: none;
}

.sub-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    margin-left: 0;
    width: inherit;
    box-sizing: border-box;
}

.sub-menu.expanded {
    opacity: 1;
}

.sub-menu-content {
    opacity: 1;
}

.sub-menu::-webkit-scrollbar {
    margin-right: 5px;
    width: 6px;
    opacity: 0;
}

.sub-menu:hover::-webkit-scrollbar {
    opacity: 1;
}

.sub-menu::-webkit-scrollbar-thumb {
    margin-right: 5px;
    background-color: #727272;
    border-radius: 10px;
    border: 2px solid #727272;
}

.sub-menu::-webkit-scrollbar-thumb {
    margin-right: 5px;
    background-color: #727272;
    border-radius: 10px;
    border: 2px solid #727272;
}

.sub-menu .fas {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    margin-left: 3.5px;
}

.sub-btn {
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 0;
}

a .sub-btn path {
    transition: fill 0.3s ease;
}

.sub-btn:hover path {
    fill: #E99757;
}

.span-dropdown-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    height: fit-content;
}

.sub-btn .dropdown {
    position: relative;
    padding: 0;
    transform: translateY(0px);
    font-size: 1rem;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.sub-btn .dropdown.rotate {
    transform: translateY(-5px) rotate(180deg);
}

.session-link {
    background-color: transparent;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    margin-top: -5px;
    width: 100%;
    justify-content: space-between;
}

.session-link .session-icon-text {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    font-size: 0.65rem;
}

.session-link .timestamp {
    margin-right: 0px;
    white-space: nowrap;
}

.session-link .session-title {
    position: relative;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    min-width: 100px;
    font-size: 0.75rem;
}

.session-link .session-title::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    pointer-events: none;
}

.session-link .fas {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-left: 10px;
}

.session-link:hover {
    color: #E99757 !important;
    transition: color 0.3s;
}

.action-button {
    /* position: absolute; */
    right: 0px;
    background-color: transparent;
    border-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.action-button:focus,
.action-button:active {
    outline: none;
    border: none;
    box-shadow: none;
}

.session-link .action-button i {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-left: 0;
    margin-right: 0;
}

.session-link .action-button i:hover {
    color: #f44336 !important;
    transition: color 0.3s;
}

.no-session {
    color: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    pointer-events: none;
    cursor: default;
    user-select: none;
    z-index: 9998;
}

.no-session .session-icon-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.65rem;
    position: relative;
    pointer-events: none;
    cursor: default;
    user-select: none;
}

.no-session .fas {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-left: 27px;
}

li {
    width: 100%;
}

li.has-divider {
    position: relative;
}

li.has-divider::after {
    content: '';
    position: absolute;
    left: 5px;
    right: 5px;
    height: 0.5px;
    background-color: #858585;
}

.icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    width: fit-content;
}