#layoutSidebarOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 21000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

#layoutSidebarOverlay.sidebar-open {
    opacity: 1;
    visibility: visible;
}

#layoutSidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 21001;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

#layoutSidebar.sidebar-open {
    transform: translateX(0);
}

#sidebarHeader {
    background: linear-gradient(135deg, #0d5dab, #0a3f73);
    color: #fff;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
}

#sidebarHeader .sidebar-title {
    font-size: 1.05rem;
    font-weight: 600;
    flex: 1 1 auto;
}

#sidebarCloseBtn {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#sidebarCloseBtn:hover {
    background: rgba(255, 255, 255, 0.3);
}

#sidebarBody {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0;
}

.sidebar-accordion-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: #f0f4f8;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a3a5c;
    cursor: pointer;
    border-bottom: 1px solid #dde4ec;
    gap: 0.5rem;
    transition: background 0.15s;
}

.sidebar-accordion-header:hover {
    background: #e2eaf3;
}

.sidebar-accordion-header .accordion-icon {
    margin-left: auto;
    transition: transform 0.2s;
    font-size: 0.75rem;
}

.sidebar-accordion-header.expanded .accordion-icon {
    transform: rotate(180deg);
}

.sidebar-accordion-body {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.25s ease;
}

.sidebar-accordion-body.expanded {
    max-height: 500px;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem 0.6rem 2.2rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.88rem;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: background 0.12s;
}

.sidebar-menu-item:hover {
    background: #eef3fa;
    color: #0d5dab;
    text-decoration: none;
}

.sidebar-menu-item i {
    width: 1.2rem;
    text-align: center;
    color: #5a7fa0;
}

.sidebar-menu-item:hover i {
    color: #0d5dab;
}

.sidebar-menu-item[disabled] {
    opacity: 0.45;
    pointer-events: none;
}
