/* === SIDEBAR CONTAINER === */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: #ffffff;
    border-right: 1px solid #f1f1f1;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

/* === HEADER === */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-header h3 {
    font-weight: 700;
    font-size: 1.2rem;
    color: #ff6b35; /* warna oranye khas Uang.ku */
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-icon {
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}

/* === NAVIGATION === */
.sidebar-nav {
    padding: 1rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.8rem;
}

.sidebar-nav li.section-title {
    font-size: 0.75rem;
    color: #999;
    font-weight: 700;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav a {
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 107, 53, 0.08);
    color: #ff6b35;
}

.sidebar-nav li.active a {
    background: #ff6b35;
    color: #fff;
    font-weight: 600;
}

.sidebar-nav li.active a i {
    color: #fff !important;
}

/* === OVERLAY (untuk mobile) === */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    transition: opacity 0.3s ease;
}

#sidebar-overlay.active {
    display: block;
}

/* === TOGGLE BUTTON === */
.sidebar-toggle-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1060;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 1199px) {
    .sidebar {
        transform: translateX(-260px);
    }

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

    #sidebar-overlay.active {
        display: block;
    }

    .sidebar-toggle-btn {
        display: block;
    }
}

/* === SCROLLBAR === */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

/* === MAIN CONTENT SHIFT (desktop) === */
@media (min-width: 1200px) {
    .main-content {
        margin-left: 250px !important;
        transition: margin 0.3s ease;
    }
}


