
aside {
    background: var(--bg-aside);
    box-shadow: 0 14px 40px var(--shadow);
    width: 265px;
    height: 100dvh;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

aside h1 a {
    height: 80px;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    color: var(--color-text);
}

aside h1 a:hover {
    color: var(--color-text);
}

aside .btn-menu {
    position: absolute;
    top: 90px;
    right: -16px;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    background: #1d293d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--button_border);
    color: var(--color-text);
    cursor: pointer;
}
aside .btn-menu:hover {
    background: #2f3b4f;
}

aside .btn-menu i {
    margin: 0;
    font-size: 13px;
    transition: transform 0.3s ease;
}

.aside-toggle {
    display: none;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.aside-toggle:checked + aside {
    width: 80px;
}

.aside-toggle:checked + aside .btn-menu i {
    transform: rotate(180deg);
}

.aside-toggle:checked + aside h1 {
    font-size: 0;
}

.aside-toggle:checked + aside nav li i {
    margin-right: 0;
}

.aside-toggle:checked + aside nav li a .tooltip {
    display: block;
}

.aside-toggle:checked + aside nav li a {
    font-size: 0;
}

aside nav li a .tooltip {
    display: none;
}

aside nav li a .tooltip.right {
    position: fixed;
    left: 0;
    top: 0;
    right: auto;
    bottom: auto;
}

aside nav li a:hover > .tooltip:not(.aside-tooltip--positioned),
aside nav li a:focus-within > .tooltip:not(.aside-tooltip--positioned) {
    opacity: 0;
    visibility: hidden;
}

aside button.btn-upload {
    margin: 20px 15px;
}

aside nav {
    padding: 25px 15px;
}

aside .nav-main-wrapper {
    flex: 1;
    scrollbar-width: none;
    overflow-y: auto;
}

aside .nav-main-wrapper::-webkit-scrollbar {
    display: none;
}

aside .nav-admin {
    border-top: 1px solid var(--border-color);
}

aside li.nav-section-separator {
    pointer-events: none;
    margin-bottom: 10px;
}

aside .nav-section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue1);
    padding: 0 10px;
    transition: all 0.3s ease;
}

.aside-toggle:checked + aside .nav-section-label {
    font-size: 0;
}

.aside-toggle:checked + aside li.nav-section-separator {
    margin: 0;
}

aside .nav-footer {
    border-top: 1px solid var(--border-color);
}

aside nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

aside nav li a {
    padding: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 5px;
    color: var(--color-text-secondary);
    position: relative;
    white-space: nowrap;
    font-size: 15px;
}

aside nav li a:hover {
    background: var(--button_hover);
    color: var(--color-text);
}

aside nav li a.active {
    background: var(--active_bg);
    color: var(--active_color);
}

aside nav li a.active::after {
    content: '';
    position: absolute;
    right: 0;
    width: 5px;
    top: 15%;
    height: 70%;
    border-radius: 5px 0 0 5px;
    background: var(--active_color);
}

aside nav li i {
    margin-right: 12px;
}
