/* Sidebar dasar */
.sidebar {
    position: fixed;
    border-radius: 0 10px 10px 0;
    height: 100vh;
    width: 180px;
    background: #00065c;
    transition: width 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
}

/* Collapse desktop */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .logo-title span,
.sidebar.collapsed .menu-text {
    display: none;
}

.sidebar.collapsed #toggleSidebarBtn {
    margin-left: auto;
    margin-right: auto;
}

.sidebar.collapsed+.konten-utama {
    margin-left: 80px;
}

/* Hover */
.hover-link {
    border-radius: 10px;
    padding: 6px 10px;
    transition: background 0.3s, padding-left 0.3s;
}

.hover-link:hover {
    background-color: #F39C12;
    padding-left: 14px;
    color: #fff !important;
}

.hover-submenu:hover {
    color: #F1C40F !important;
}

.dropdown-icon.rotate {
    transform: rotate(90deg);
    transition: transform 0.3s;
}

.sidebar .nav-link {
    font-size: 0.85rem;
}

.sidebar .collapse .nav-link {
    font-size: 0.75rem;
    padding-left: 1.5rem;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .sidebar {
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        max-width: 250px;
        background-color: #00065c;
        transform: translateX(-100%);
        z-index: 1050;
        border-radius: 0;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    /* Overlay */
    body.sidebar-overlay-active::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    /* Konten margin */
    .konten-utama {
        margin-left: 0 !important;
    }
}