.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 78px;
    background: #11101D;
    padding: 6px 14px;
    z-index: 99;
    transition: all 0.5s ease;
}

.sidebar.open {
    width: 280px;
}

.sidebar .logo-details {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.sidebar .logo-details .icon {
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar .logo-details .logo_name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.5s ease;
    white-space: nowrap;
}

.sidebar:not(.open) .logo-details .logo_name::after {
    content: "AD.";
}

.sidebar.open .logo-details .logo_name::after {
    content: "Aerosend";
}

.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name {
    opacity: 1;
    display: block;
}

.sidebar.open .logo-details {
    padding: 0 1.5rem;
}

.sidebar .logo-details #btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 22px;
    transition: all 0.4s ease;
    cursor: pointer;
    margin-right: 3px;
}

.sidebar.open .logo-details #btn {
    text-align: right;
}

.sidebar i {
    color: #fff;
    height: 60px;
    min-width: 50px;
    font-size: 28px;
    text-align: center;
    line-height: 60px;
}

.sidebar .nav-list {
    margin-top: 20px;
    height: 100%;
}

.sidebar li {
    position: relative;
    margin: 8px 0;
    list-style: none;
}

.sidebar li .tooltip {
    position: absolute;
    top: 0;
    left: 65px;
    transform: translate(0, -50%);
    border-radius: 20px;
    height: 36px;
    width: auto;
    padding: 0 16px;
    line-height: 36px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: #fff;
    font-weight: 500;
    font-size: 0.7rem;
    z-index: 200;
}

.sidebar li .tooltip:before {
    display: none;
}

.sidebar li:hover .tooltip {
    opacity: 1;
    top: 50%;
    left: 65px;
}

.sidebar.open li .tooltip {
    display: none;
}

.sidebar li .sidebar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s ease;
    background: #11101D;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    text-decoration: none;
    padding: 0.8rem;
    cursor: pointer;
}

.sidebar.open li .sidebar-item {
    justify-content: flex-start;
    padding-left: 1.5rem;
}

.item-icon {
    color: #fff;
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.sidebar li .sidebar-item .item-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    display: none;
    cursor: pointer;
    transition: 0.4s;
    margin-left: 0.5rem;
}

.sidebar.open li .sidebar-item .item-name {
    opacity: 1;
    display: block;
}

.sidebar li .sidebar-item:hover .item-name,
.sidebar li .sidebar-item:hover i {
    transition: all 0.5s ease;
    color: #11101D;
}

.sidebar li i {
    color: #fff;
    font-size: 22px;
    border-radius: 12px;
}

.sidebar li.profile {
    position: fixed;
    height: auto;
    width: 78px;
    left: 0;
    bottom: 0;
    padding: 12px;
    background: #11101D;
    transition: all 0.5s ease;
    overflow: hidden;
}

.sidebar.open li.profile {
    width: 280px;
}

.profile-details {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-initials {
    width: 36px;
    height: 36px;
    background: #1d1b31;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.profile-info {
    display: none;
}

.sidebar.open .profile-info {
    display: block;
}

.profile-info .name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.profile-info .email {
    color: #808191;
    font-size: 12px;
    white-space: nowrap;
}

.sidebar .profile #log_out {
    display: none;
}

.home-section {
    display: flex;
    position: relative;
    background: #E4E9F7;
    min-height: 100vh;
    top: 0;
    left: 78px;
    width: calc(100% - 78px);
    transition: all 0.5s ease;
    z-index: 2;
}

.sidebar.open~.home-section {
    left: 250px;
    width: calc(100% - 250px);
}

.sidebar li .sidebar-item:hover {
    background: #1d1b31;
    border-radius: 6px;
}

.sidebar li .sidebar-item.active {
    background: #1d1b31;
    border-radius: 6px;
}

.sidebar li .sidebar-item:hover .item-icon,
.sidebar li .sidebar-item.active .item-icon {
    color: #fff;
}

.sidebar li .sidebar-item:hover .item-name,
.sidebar li .sidebar-item.active .item-name {
    color: #fff;
}

@media (max-width: 420px) {
    .sidebar li .tooltip {
        display: none;
    }
}

.lucide-log-out {
    color: #fff;
    width: 20px;
    height: 20px;
    margin-left: auto;
}

.sidebar li.separator {
    height: 1px;
    background-color: #707070;
    margin: 15px 10px;
    opacity: 0.3;
}

.sidebar.open li.separator {
    margin: 15px 10px;
}

.sidebar:not(.open) .sidebar-item .item-icon {
    display: block;
    visibility: visible;
}

.sidebar .nav-list {
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px);
}

.sidebar li.separator {
    margin: 15px 10px;
}

.sidebar li.separator:last-of-type {
    margin-top: auto;
    margin-bottom: 10px;
}

.sidebar-item#profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    width: 100%;
}

.logout-icon {
    width: 22px;
    height: 22px;
    color: #fff;
    cursor: pointer;
}