:root {
    --apb-primary: #1d4ed8;
    --apb-secondary: #0f172a;
    --apb-accent: #f97316;
    --apb-bg: #eef2ff;
    --text-dark: #1f2933;
    --text-muted: #5f6b7c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--apb-bg);
    color: var(--text-dark);
}

.apb-nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
    backdrop-filter: blur(8px);
}

.apb-nav .container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--apb-primary), #60a5fa);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-apb {
    background: linear-gradient(120deg, var(--apb-secondary), var(--apb-primary));
    color: white;
    padding: 100px 0 70px;
}

.hero-apb .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.hero-apb h1 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.apb-content {
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 24px;
}

.section-card {
    background: white;
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.15);
    margin-bottom: 24px;
}

.section-card h2 {
    margin-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--apb-bg);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-card .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.tab {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
}

.tab.active {
    background: var(--apb-accent);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(249,115,22,0.3);
}

.table-responsive {
    overflow-x: auto;
}

.apb-table {
    width: 100%;
    border-collapse: collapse;
}

.apb-table th,
.apb-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-align: left;
}

.apb-table th {
    background: var(--apb-bg);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-belanja { background: #fee2e2; color: #b91c1c; }
.badge-pendapatan { background: #dcfce7; color: #166534; }
.badge-pembiayaan { background: #dbeafe; color: #1d4ed8; }

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 20px 0;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section-card {
        padding: 24px;
    }
}

