:root {
            --primary: #3b82f6;
            --primary-dark: #2563eb;
            --accent: #06b6d4;
            --bg-dark: #0a0e1a;
            --bg-card: #111827;
            --bg-card-hover: #1a2332;
            --border-color: rgba(255,255,255,0.06);
            --text-primary: #f1f5f9;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Background Effects */
        .bg-glow {
            position: fixed;
            top: -200px;
            left: -200px;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }
        .bg-glow-2 {
            position: fixed;
            bottom: -300px;
            right: -200px;
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        /* Navbar */
        .navbar-jdih {
            background: rgba(10, 14, 26, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            padding: 0.75rem 0;
            transition: all 0.3s ease;
            z-index: 1050;
        }
        .navbar-jdih.scrolled {
            background: rgba(10, 14, 26, 0.95);
            box-shadow: 0 4px 30px rgba(0,0,0,0.3);
        }
        .navbar-brand-jdih {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }
        .brand-icon {
            width: 42px;
            height: 42px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 14px;
            color: #fff;
            letter-spacing: -0.5px;
        }
        .brand-text {
            display: flex;
            flex-direction: column;
        }
        .brand-text .name {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--text-primary);
            letter-spacing: -0.3px;
            line-height: 1.2;
        }
        .brand-text .sub {
            font-size: 0.7rem;
            color: var(--text-muted);
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }
        .nav-link-jdih {
            color: var(--text-secondary) !important;
            font-weight: 500;
            font-size: 0.875rem;
            padding: 0.5rem 1rem !important;
            border-radius: 8px;
            transition: all 0.2s ease;
            position: relative;
        }
        .nav-link-jdih:hover,
        .nav-link-jdih.active {
            color: var(--text-primary) !important;
            background: rgba(59,130,246,0.1);
        }
        .nav-link-jdih.active::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 2px;
            background: var(--primary);
            border-radius: 2px;
        }
        .btn-login {
            background: rgba(59,130,246,0.12);
            border: 1px solid rgba(59,130,246,0.25);
            color: var(--primary);
            font-weight: 600;
            font-size: 0.8rem;
            padding: 0.45rem 1.25rem;
            border-radius: 8px;
            transition: all 0.2s ease;
            letter-spacing: 0.3px;
        }
        .btn-login:hover {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(59,130,246,0.3);
        }

        /* Hero Section */
        .hero-section {
            padding: 3rem 0 1.5rem;
            position: relative;
        }
        .hero-section h1 {
            font-size: 2.25rem;
            font-weight: 800;
            letter-spacing: -1px;
            line-height: 1.15;
            margin-bottom: 0.5rem;
        }
        .hero-section h1 span {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .hero-section p {
            color: var(--text-secondary);
            font-size: 1rem;
            max-width: 540px;
        }

        /* Stats */
        .stat-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 1.25rem 1.5rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .stat-card:hover::before { opacity: 1; }
        .stat-card:hover {
            border-color: rgba(59,130,246,0.2);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }
        .stat-icon {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            margin-bottom: 0.75rem;
        }
        .stat-icon.blue { background: rgba(59,130,246,0.12); color: #3b82f6; }
        .stat-icon.cyan { background: rgba(6,182,212,0.12); color: #06b6d4; }
        .stat-icon.green { background: rgba(34,197,94,0.12); color: #22c55e; }
        .stat-icon.amber { background: rgba(245,158,11,0.12); color: #f59e0b; }
        .stat-number {
            font-size: 1.75rem;
            font-weight: 800;
            letter-spacing: -1px;
            line-height: 1;
            margin-bottom: 0.25rem;
        }
        .stat-label {
            font-size: 0.78rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* Search */
        .search-section {
            padding: 1.5rem 0;
        }
        .search-box {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 1.25rem;
        }
        .search-input {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            color: var(--text-primary);
            padding: 0.7rem 1rem 0.7rem 2.75rem;
            font-size: 0.9rem;
            transition: all 0.2s ease;
        }
        .search-input:focus {
            background: rgba(255,255,255,0.06);
            border-color: rgba(59,130,246,0.4);
            box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
            outline: none;
            color: var(--text-primary);
        }
        .search-input::placeholder { color: var(--text-muted); }
        .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 1rem;
        }
        .filter-select {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            color: var(--text-primary);
            padding: 0.7rem 1rem;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .filter-select:focus {
            border-color: rgba(59,130,246,0.4);
            box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
            outline: none;
            color: var(--text-primary);
        }
        .filter-select option { background: #1e293b; }
        .btn-search {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border: none;
            color: #fff;
            font-weight: 600;
            font-size: 0.85rem;
            padding: 0.7rem 1.75rem;
            border-radius: 10px;
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        .btn-search:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(59,130,246,0.35);
            color: #fff;
        }

        /* Section Header */
        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.25rem;
        }
        .section-title {
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .section-title .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary);
            animation: pulse-dot 2s ease-in-out infinite;
        }
        @keyframes pulse-dot {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }
        .view-all {
            font-size: 0.82rem;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: all 0.2s ease;
        }
        .view-all:hover { color: var(--accent); gap: 8px; }

        /* Document Cards */
        .doc-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 1.25rem;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        .doc-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(180deg, var(--primary), var(--accent));
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .doc-card:hover {
            border-color: rgba(59,130,246,0.2);
            background: var(--bg-card-hover);
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.25);
        }
        .doc-card:hover::after { opacity: 1; }
        .doc-badge {
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            padding: 0.3rem 0.65rem;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .badge-sk { background: rgba(59,130,246,0.12); color: #60a5fa; }
        .badge-peraturan { background: rgba(168,85,247,0.12); color: #c084fc; }
        .badge-keputusan { background: rgba(34,197,94,0.12); color: #4ade80; }
        .badge-undang { background: rgba(245,158,11,0.12); color: #fbbf24; }
        .badge-perda { background: rgba(239,68,68,0.12); color: #f87171; }
        .badge-instruksi { background: rgba(6,182,212,0.12); color: #22d3ee; }
        .doc-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0.65rem 0 0.35rem;
            line-height: 1.4;
            letter-spacing: -0.2px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .doc-desc {
            font-size: 0.8rem;
            color: var(--text-muted);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 0.75rem;
        }
        .doc-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 0.75rem;
            border-top: 1px solid var(--border-color);
        }
        .doc-date {
            font-size: 0.75rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .doc-action {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 0.8rem;
            transition: all 0.2s ease;
            text-decoration: none;
        }
        .doc-action:hover {
            background: rgba(59,130,246,0.12);
            color: var(--primary);
            border-color: rgba(59,130,246,0.25);
        }

        /* Pagination */
        .pagination-jdih .page-link {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            font-size: 0.82rem;
            font-weight: 600;
            padding: 0.45rem 0.85rem;
            margin: 0 2px;
            border-radius: 8px !important;
            transition: all 0.2s ease;
        }
        .pagination-jdih .page-link:hover {
            background: rgba(59,130,246,0.12);
            color: var(--primary);
            border-color: rgba(59,130,246,0.25);
        }
        .pagination-jdih .page-item.active .page-link {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }

        /* Sidebar */
        .sidebar-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 1.25rem;
            margin-bottom: 1rem;
        }
        .sidebar-card h6 {
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: -0.2px;
            margin-bottom: 0.85rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .category-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.55rem 0;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .category-item:last-child { border-bottom: none; }
        .category-item:hover .cat-name { color: var(--primary); }
        .cat-name {
            font-size: 0.82rem;
            color: var(--text-secondary);
            font-weight: 500;
            transition: color 0.2s ease;
        }
        .cat-count {
            font-size: 0.72rem;
            background: rgba(255,255,255,0.05);
            padding: 0.15rem 0.5rem;
            border-radius: 20px;
            color: var(--text-muted);
            font-weight: 600;
        }
        .quick-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0.55rem 0;
            border-bottom: 1px solid var(--border-color);
            text-decoration: none;
            transition: all 0.2s ease;
        }
        .quick-link:last-child { border-bottom: none; }
        .quick-link:hover .ql-text { color: var(--primary); }
        .ql-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: rgba(59,130,246,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 0.85rem;
            flex-shrink: 0;
        }
        .ql-text {
            font-size: 0.82rem;
            color: var(--text-secondary);
            font-weight: 500;
            transition: color 0.2s ease;
        }

        /* Footer */
        .footer-jdih {
            background: var(--bg-card);
            border-top: 1px solid var(--border-color);
            padding: 2rem 0;
            margin-top: 3rem;
        }
        .footer-jdih p {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 0;
        }

        /* Toast */
        .toast-jdih {
            position: fixed;
            top: 80px;
            right: 20px;
            background: var(--bg-card);
            border: 1px solid rgba(59,130,246,0.25);
            border-radius: 12px;
            padding: 1rem 1.25rem;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 9999;
            transform: translateX(120%);
            transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        }
        .toast-jdih.show { transform: translateX(0); }
        .toast-jdih .toast-icon {
            width: 32px; height: 32px; border-radius: 8px;
            background: rgba(59,130,246,0.12);
            display: flex; align-items: center; justify-content: center;
            color: var(--primary); font-size: 1rem;
        }
        .toast-jdih .toast-msg {
            font-size: 0.82rem; color: var(--text-secondary); font-weight: 500;
        }

        /* Animations */
        .fade-up {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .fade-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-section h1 { font-size: 1.65rem; }
            .stat-card { padding: 1rem; }
            .stat-number { font-size: 1.35rem; }
            .doc-card { padding: 1rem; }
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg-dark); }
        ::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.1);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }