/* ============================================
           SIDEBAR STYLES - DENGAN SUBMENU FIX
           ============================================ */
        .sidebar {
            width: 280px;
            background: linear-gradient(145deg, #0f3b2c 0%, #0a2b1f 100%);
            color: #e2f0e9;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
            position: sticky;
            top: 0;
            height: 100vh;
            overflow-y: auto;
            z-index: 100;
        }

        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                left: -280px;
                transition: left 0.3s ease;
                z-index: 1000;
            }
            .sidebar.mobile-open { left: 0; }
            .overlay {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.5);
                z-index: 999;
                display: none;
            }
            .overlay.active { display: block; }
        }

        @media (min-width: 769px) {
            .sidebar.collapsed { width: 80px; }
            .sidebar.collapsed .sidebar-header h3,
            .sidebar.collapsed .sidebar-header p,
            .sidebar.collapsed .nav-link span,
            .sidebar.collapsed .sidebar-header div div,
            .sidebar.collapsed .fa-chevron-down,
            .sidebar.collapsed .submenu,
            .sidebar.collapsed .sidebar-footer { display: none; }
            .sidebar.collapsed .sidebar-header img { width: 35px; height: 35px; }
            .sidebar.collapsed .nav-link { justify-content: center; padding: 12px; }
            .sidebar.collapsed .nav-link i { margin: 0; font-size: 1.2rem; }
        }

        .sidebar-header {
            padding: 28px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.15);
            margin-bottom: 6px;
        }

        .sidebar-header h3 { font-size: 1.5rem; font-weight: 600; color: white; }
        .sidebar-header p { font-size: 0.75rem; opacity: 0.8; margin-top: 6px; }
        .nav-menu { list-style: none; padding: 0 8px; flex: 1; }
        .nav-item { margin-bottom: 1px; }
        .nav-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            color: #cfeadf;
            text-decoration: none;
            border-radius: 14px;
            font-weight: 200;
            transition: all 0.2s;
            font-size: 0.75rem;
        }
        .nav-link i { width: 18px; font-size: 0.75rem; text-align: center; }
        .nav-link:hover { background: rgba(255, 255, 255, 0.12); color: white; }

        /* ============================================
           FIX SUBMENU - TRANSPARAN TANPA POTONG
           ============================================ */
        .nav-item.has-submenu {
            position: relative;
        }

        .nav-item.has-submenu .submenu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
            opacity: 0;
            visibility: hidden;
            list-style: none;
            padding: 0;
            margin: 0;
            background: transparent;
            border-radius: 0;
            box-shadow: none;
        }

        .nav-item.has-submenu.open .submenu {
            max-height: 800px; /* Cukup untuk banyak item */
            opacity: 1;
            visibility: visible;
        }

        .nav-item.has-submenu .submenu li {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
        }

        .nav-item.has-submenu .submenu li:last-child {
            border-bottom: none;
        }

        .nav-item.has-submenu .submenu li a {
            display: flex;
            align-items: center;
            padding: 8px 16px 8px 45px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.7rem;
            font-weight: 400;
            text-decoration: none;
            transition: all 0.3s ease;
            background: transparent;
            border-radius: 0;
            margin: 0;
            position: relative;
        }

        /* Titik indikator di samping kiri */
        .nav-item.has-submenu .submenu li a::before {
            content: '';
            position: absolute;
            left: 25px;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: rgba(255, 215, 0, 0.3);
            transition: all 0.3s ease;
        }

        .nav-item.has-submenu .submenu li a:hover::before {
            background: #ffd700;
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
        }

        .nav-item.has-submenu .submenu li a:hover {
            background: rgba(255, 255, 255, 0.06);
            color: #ffffff;
            padding-left: 50px;
        }

        .nav-item.has-submenu .submenu li a i {
            width: 20px;
            margin-right: 10px;
            color: rgba(255, 215, 0, 0.5);
            font-size: 12px;
            transition: all 0.3s ease;
            text-align: center;
        }

        .nav-item.has-submenu .submenu li a:hover i {
            color: #ffd700;
            transform: scale(1.1);
        }

        /* Rotasi chevron */
        .nav-item.has-submenu.open > a .fa-chevron-down {
            transform: rotate(180deg);
            transition: transform 0.3s ease;
        }

        .nav-item.has-submenu > a .fa-chevron-down {
            transition: transform 0.3s ease;
            margin-left: auto;
            font-size: 12px;
        }

        .submenu li a {
            display: flex;
            padding: 8px 12px;
            color: #cce3da;
            text-decoration: none;
            font-size: 0.70rem;
            border-radius: 10px;
            gap: 10px;
            align-items: center;
        }
        .submenu li a:hover { background: rgba(255,255,255,0.1); color: white; }
        .sidebar-footer {
            padding: 20px;
            font-size: 0.7rem;
            opacity: 0.6;
            text-align: center;
            border-top: 1px solid rgba(255,255,255,0.1);
            margin-top: auto;
        }

        /* Scrollbar sidebar */
        .sidebar::-webkit-scrollbar {
            width: 4px;
        }
        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }
        .sidebar::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
        .sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        /* MAIN CONTENT */
        .main-content { flex: 1; display: flex; flex-direction: column; }
        .navbar-top {
            background: white;
            padding: 14px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
            border-bottom: 1px solid #e2e8f0;
            position: sticky;
            top: 0;
            z-index: 50;
        }
        .menu-toggle {
            background: none;
            border: none;
            font-size: 1.6rem;
            cursor: pointer;
            color: #1e2f3e;
            display: none;
            margin-right: 15px;
        }
        .collapse-toggle {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: #1e2f3e;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        @media (max-width: 768px) {
            .menu-toggle { display: block; }
            .collapse-toggle { display: none; }
        }