.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: #0cb361; border-radius: 10px; }

.sidebar-brand {
    position: relative;
    padding: 10px 2px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.sidebar-brand img {
    height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.mobile-sidebar-close {
    display: none;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mobile-sidebar-close:hover { color: #0cb361; }

.sidebar-menu { padding: 20px 15px; }

.sidebar-menu .menu-label {
    padding: 10px 10px 5px;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-menu .nav-item-wrapper { margin-bottom: 4px; }

.sidebar-menu .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.sidebar-menu .nav-item:hover {
    background: rgba(12, 179, 97, 0.15);
    color: white;
}

.sidebar-menu .nav-item.active {
    background: linear-gradient(135deg, #007b8a, #0cb361);
    color: white;
    box-shadow: 0 4px 15px rgba(12, 179, 97, 0.3);
}

.sidebar-menu .nav-item i {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

.sidebar-menu .nav-item .badge-notif {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 20px;
    background: #dc3545;
    color: white;
    font-size: 10px;
}

.sidebar-menu .nav-item .badge-notif.success { background: #0cb361; }

.sidebar-menu .submenu {
    max-height: 0;
    overflow: hidden;
    padding-left: 18px;
    margin-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding-top 0.25s ease;
}

.sidebar-menu .nav-item-wrapper.open > .submenu {
    max-height: 300px;
    padding-top: 6px;
    opacity: 1;
}

.sidebar-menu .submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: #d8e1eb;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-menu .submenu-item:hover {
    background: rgba(12, 179, 97, 0.12);
    color: white;
    text-decoration: none;
}

.sidebar-menu .submenu-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

.sidebar-menu .submenu-item .menu-logo {
    width: 16px;
    height: 16px;
    padding: 2px;
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
    box-sizing: content-box;
}

.sidebar-menu .nav-item .menu-logo {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 5px;
    background: #fff;
    object-fit: contain;
    box-sizing: content-box;
}

.sidebar-menu .submenu-view-more {
    display: inline-flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(12, 179, 97, 0.3);
    border-radius: 10px;
    background: rgba(13, 110, 253, 0.08);
    color: #cfe7ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-menu .submenu-view-more:hover {
    background: rgba(12, 179, 97, 0.18);
    color: white;
    text-decoration: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active { display: block; }

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .top-header .header-left .toggle-sidebar { display: block; }
}

@media (max-width: 576px) {
    .sidebar-brand { position: relative; justify-content: center; }
    .sidebar-brand img { margin: 0 auto; }
    .mobile-sidebar-close {
        position: absolute;
        top: 50%;
        right: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-50%);
    }

}
