.acc-mobile-menu-btn {
    display: none;
}

.acc-sidebar-backdrop {
    display: none;
}

.acc-sidebar {
    width: 264px;
    min-width: 264px;
    min-height: 100vh;
    padding: 14px 12px;
    color: #e2e8f0;
    background:
        radial-gradient(circle at 10% 0, rgba(96, 165, 250, .18), transparent 18rem),
        linear-gradient(180deg, #172554 0%, #1e293b 100%);
    flex-shrink: 0;
    transition: width .2s ease, min-width .2s ease, transform .22s ease;
}

.acc-sidebar.collapsed {
    width: 86px;
    min-width: 86px;
}

.acc-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.acc-sidebar-header .title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.acc-sidebar-header .title > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-radius: 13px;
    flex-shrink: 0;
}

.acc-sidebar-header .main {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    cursor: pointer;
}

.collapse-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.acc-sidebar-body {
    height: calc(100vh - 82px);
    overflow-y: auto;
    padding: 0 2px 18px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
    padding: 9px 10px;
    color: #cbd5e1;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.menu-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.menu-item.active {
    color: #fff;
    background: rgba(59, 130, 246, .18);
    border-color: rgba(59, 130, 246, .35);
}

.menu-item i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.menu-item span {
    flex: 1;
    min-width: 0;
    font-size: 14px;
}

.menu-group {
    margin-top: 12px;
}

.menu-group-title {
    width: 100%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .03);
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.menu-group-title:hover {
    background: rgba(255, 255, 255, .06);
}

.menu-group-title i {
    transition: transform .2s ease;
}

.menu-group-items {
    display: none;
    padding: 8px 0 0 6px;
}

.menu-group.open .menu-group-items {
    display: block;
}

.menu-group.open .menu-group-title i {
    transform: rotate(180deg);
}

.menu-sub-group {
    margin-top: 10px;
    padding: 8px 0 8px 8px;
    border-inline-start: 1px solid rgba(255, 255, 255, .08);
}

.menu-sub-title {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    color: rgba(203, 213, 225, .75);
    font-size: 11px;
    font-weight: 800;
}

.menu-sub-group .menu-item {
    padding-inline-start: 12px;
}

.acc-sidebar.collapsed .acc-sidebar-header .main,
.acc-sidebar.collapsed .menu-item span,
.acc-sidebar.collapsed .menu-group-title span,
.acc-sidebar.collapsed .menu-sub-title span {
    display: none;
}

.acc-sidebar.collapsed .menu-item,
.acc-sidebar.collapsed .menu-group-title,
.acc-sidebar.collapsed .acc-sidebar-header {
    justify-content: center;
}

.acc-sidebar.collapsed .menu-group-items {
    padding-inline-start: 0;
}

@media (max-width: 1024px) {
    .acc-mobile-menu-btn {
        position: sticky;
        top: 8px;
        z-index: 1040;
        display: inline-flex;
        align-items: center;
        gap: 9px;
        width: calc(100% - 20px);
        margin: 10px;
        padding: 12px 14px;
        color: #fff;
        background: linear-gradient(135deg, #1e3a8a, #2563eb);
        border: 0;
        border-radius: 16px;
        box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
        font-weight: 800;
    }

    .acc-sidebar {
        position: fixed !important;
        inset-block-start: 0;
        inset-inline-start: 0;
        z-index: 1050;
        width: min(88vw, 330px) !important;
        min-width: min(88vw, 330px) !important;
        height: 100vh;
        transform: translateX(-110%);
        box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    }

    [dir="rtl"] .acc-sidebar {
        transform: translateX(110%);
    }

    .acc-sidebar.is-mobile-open {
        transform: translateX(0);
    }

    .acc-sidebar-backdrop.is-visible {
        position: fixed;
        inset: 0;
        z-index: 1045;
        display: block;
        background: rgba(15, 23, 42, .46);
        backdrop-filter: blur(2px);
    }

    .acc-sidebar.collapsed {
        width: min(88vw, 330px) !important;
        min-width: min(88vw, 330px) !important;
    }

    .acc-sidebar.collapsed .acc-sidebar-header .main,
    .acc-sidebar.collapsed .menu-item span,
    .acc-sidebar.collapsed .menu-group-title span,
    .acc-sidebar.collapsed .menu-sub-title span {
        display: inline;
    }
}

@media (max-width: 520px) {
    .acc-mobile-menu-btn {
        width: calc(100% - 16px);
        margin: 8px;
    }
}
