:root {
    --color-primary: #B81A1A;
    --color-primary-dark: #8E1212;
    --color-primary-light: #D63232;
    --color-text: #000000;
    --color-text-muted: #6B6B6B;
    --color-bg: #FFFFFF;
    --color-bg-soft: #F7F7F7;
    --color-border: #E5E5E5;
    --color-border-strong: #D1D1D1;
    --status-lapor: #B81A1A;
    --status-dikerjakan: #FF9800;
    --status-selesai: #4CAF50;
    --status-pending: #6B6B6B;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.10);
    --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-bg-soft);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}
.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.btn-secondary {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}
.btn-secondary:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}
.btn-outline-secondary {
    color: var(--color-text);
    border-color: var(--color-border-strong);
}
.btn-outline-secondary:hover {
    background: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
}
.btn { transition: all .2s ease; font-weight: 500; }
.btn-lg { padding: .75rem 1.5rem; }

/* Override Bootstrap focus untuk semua form control */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .2rem rgba(184,26,26,.12);
}

/* Dropdown active state */
.dropdown-item:active,
.dropdown-item.active {
    background-color: var(--color-primary);
}

/* ===== NAVBAR ===== */
.navbar-app {
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: .85rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.navbar-app .navbar-brand {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.navbar-app .navbar-brand-logo {
    width: 36px; height: 36px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.navbar-app .nav-link {
    color: var(--color-text);
    font-weight: 500;
    padding: .5rem 1rem;
}
.navbar-app .nav-link:hover, .navbar-app .nav-link.active {
    color: var(--color-primary);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 3.5rem 0 6rem;
    position: relative;
}
.hero h1 {
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: .5rem;
}
.hero p { opacity: .9; margin-bottom: 0; }

.filter-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    margin-top: -4rem;
    position: relative;
    z-index: 5;
}
.filter-card h5 {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}
.filter-card .form-control,
.filter-card .form-select {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: .6rem .9rem;
}
.filter-card .form-control:focus,
.filter-card .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .2rem rgba(184,26,26,.12);
}

/* ===== PENGADUAN CARD ===== */
.pengaduan-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.pengaduan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.pengaduan-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f0f0f0 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 24 24" fill="none" stroke="%23bbb" stroke-width="1.5"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-5-5L5 21"/></svg>') center/80px no-repeat;
    position: relative;
    overflow: hidden;
}
.pengaduan-card__image img {
    width: 100%; height: 100%; object-fit: cover;
}
.pengaduan-card__body {
    padding: 1rem 1.1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pengaduan-card__kode {
    color: var(--color-text-muted);
    font-size: .8rem;
    margin-bottom: .25rem;
}
.pengaduan-card__title {
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 .4rem;
    font-size: 1.02rem;
    line-height: 1.35;
}
.pengaduan-card__meta {
    color: var(--color-text-muted);
    font-size: .8rem;
    margin-bottom: .5rem;
}
.pengaduan-card__desc {
    color: var(--color-text);
    font-size: .9rem;
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pengaduan-card__lokasi {
    color: var(--color-text-muted);
    font-size: .82rem;
    display: flex; align-items: flex-start; gap: .35rem;
    margin-top: auto;
}
.pengaduan-card__lokasi svg { flex-shrink: 0; margin-top: 2px; }

/* ===== STATUS BADGE ===== */
.status-badge {
    display: inline-block;
    padding: .3rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #fff;
}
.status-badge--lapor { background: var(--status-lapor); }
.status-badge--dikerjakan { background: var(--status-dikerjakan); }
.status-badge--selesai { background: var(--status-selesai); }
.status-badge--pending { background: var(--status-pending); }
.status-badge--floating {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 2;
}

/* ===== SECTIONS ===== */
section { padding: 2.5rem 0; }
.section-title {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

/* ===== AUTH CARD ===== */
.auth-wrap {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #fff 0%, var(--color-bg-soft) 100%);
}
.auth-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.auth-card h2 {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: .5rem;
}
.auth-card .lead-text { color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* ===== SSO LOADER ===== */
#sso-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}
.sso-spinner {
    width: 48px; height: 48px;
    border: 4px solid rgba(196,23,23,.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== DASHBOARD ===== */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-text);
}
.stat-card--primary { border-left-color: var(--color-primary); }
.stat-card--warning { border-left-color: var(--status-dikerjakan); }
.stat-card--success { border-left-color: var(--status-selesai); }
.stat-card__label { color: var(--color-text-muted); font-size: .85rem; margin: 0; }
.stat-card__value { font-weight: 700; font-size: 1.85rem; margin: .15rem 0 0; color: var(--color-text); }

.table-app {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table-app table { margin: 0; }
.table-app thead th {
    background: var(--color-bg-soft);
    color: var(--color-text);
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.table-app td, .table-app th { padding: .9rem 1rem; vertical-align: middle; }

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer a { color: #ccc; }
.footer a:hover { color: #fff; }
.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: .85rem;
    color: #999;
}

/* ===== UTILS ===== */
.spinner-app {
    width: 32px; height: 32px;
    border: 3px solid rgba(196,23,23,.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}
.text-primary-app { color: var(--color-primary) !important; }
.bg-primary-app { background: var(--color-primary) !important; }
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}
.empty-state svg { opacity: .4; }

/* ===== APP SHELL & SIDEBAR ===== */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
    --sidebar-transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-height: 64px;
}

/* Container: flex untuk mengakomodasi collapse */
.admin-shell {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - var(--navbar-height));
    position: relative;
}

/* SIDEBAR base */
.admin-sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: var(--navbar-height);
    align-self: flex-start;
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    transition: width var(--sidebar-transition), transform var(--sidebar-transition);
    z-index: 1010;
    scrollbar-width: thin;
}
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 3px; }

.admin-sidebar .sidebar-header {
    display: none; /* hanya tampil di mobile */
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}
.admin-sidebar .sidebar-header h6 { margin: 0; font-weight: 700; }
.admin-sidebar .btn-sidebar-close {
    border: none; background: transparent; padding: .25rem .5rem; font-size: 1.5rem;
    line-height: 1; color: var(--color-text-muted); cursor: pointer; border-radius: 6px;
}
.admin-sidebar .btn-sidebar-close:hover { background: var(--color-bg-soft); color: var(--color-text); }

.admin-sidebar .user-card {
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: .75rem;
}
.admin-sidebar .user-card .avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.admin-sidebar .user-card .info {
    flex: 1; min-width: 0;
    overflow: hidden;
}

.admin-sidebar .nav { gap: .15rem; }
.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--color-text);
    padding: .65rem 1.25rem;
    border-radius: 0;
    font-weight: 500;
    transition: background .15s, color .15s;
    white-space: nowrap;
    position: relative;
}
.admin-sidebar .nav-link span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-sidebar .nav-link:hover {
    background: var(--color-bg-soft);
    color: var(--color-text);
    text-decoration: none;
}
.admin-sidebar .nav-link.active {
    background: rgba(184,26,26,.08);
    color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
    padding-left: calc(1.25rem - 3px);
    font-weight: 600;
}
.admin-sidebar .nav-link svg { flex-shrink: 0; }
.admin-sidebar .sidebar-footer {
    margin-top: auto;
    padding: 1rem 1.25rem 0;
    border-top: 1px solid var(--color-border);
}
.admin-sidebar .btn-sidebar-collapse {
    display: none; /* hanya tampil di desktop */
    border: 1px solid var(--color-border);
    background: #fff;
    padding: .4rem .75rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: .85rem;
    width: 100%;
    transition: background .15s;
}
.admin-sidebar .btn-sidebar-collapse:hover { background: var(--color-bg-soft); color: var(--color-text); }

.admin-content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
    background: var(--color-bg-soft);
}

/* TOP BAR di dalam content (hamburger + breadcrumb) */
.admin-topbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.btn-sidebar-toggle {
    border: 1px solid var(--color-border);
    background: #fff;
    padding: .5rem .65rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.btn-sidebar-toggle:hover { background: var(--color-bg-soft); }
.btn-sidebar-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* OVERLAY backdrop (mobile only saat sidebar open) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms;
}
.sidebar-overlay--show { opacity: 1; visibility: visible; }

/* ===== DESKTOP COLLAPSED STATE ===== */
@media (min-width: 992px) {
    .admin-sidebar .btn-sidebar-collapse { display: inline-flex; align-items: center; gap: .5rem; justify-content: center; }
    .admin-sidebar--collapsed { width: var(--sidebar-collapsed-width); }
    /*
     * Saat collapsed: hide text label dgn display:none (bukan visibility/opacity)
     * supaya tidak occupy ruang yang bikin text wrap/glitch saat transisi width.
     */
    .admin-sidebar--collapsed .user-card .info,
    .admin-sidebar--collapsed .nav-link span,
    .admin-sidebar--collapsed .btn-sidebar-collapse span { display: none !important; }
    .admin-sidebar--collapsed .nav-link {
        justify-content: center;
        padding: .7rem 0;
    }
    .admin-sidebar--collapsed .nav-link.active {
        border-left: none;
        padding-left: 0;
        border-right: 3px solid var(--color-primary);
    }
    .admin-sidebar--collapsed .user-card { padding: 0 .5rem 1rem; justify-content: center; }
    .admin-sidebar--collapsed .sidebar-footer { padding: 1rem .5rem 0; }
    .admin-sidebar--collapsed .btn-sidebar-collapse { padding: .4rem .25rem; }
    .admin-sidebar--collapsed .btn-sidebar-collapse svg { transform: rotate(180deg); }

    /* TOOLTIP saat collapsed */
    .admin-sidebar--collapsed .nav-link::after {
        content: attr(data-tooltip);
        position: absolute;
        left: calc(100% + 8px);
        top: 50%;
        transform: translateY(-50%) translateX(-6px);
        background: #1a1a1a;
        color: #fff;
        padding: .35rem .7rem;
        border-radius: 6px;
        font-size: .8rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 150ms, transform 150ms;
        z-index: 1060;
        box-shadow: var(--shadow-md);
    }
    .admin-sidebar--collapsed .nav-link:hover::after {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    /* Sembunyikan toggle (hamburger) di desktop kalau sidebar bukan collapsed */
    .btn-sidebar-toggle { display: none; }
}

/* ===== MOBILE / TABLET: off-canvas ===== */
@media (max-width: 991.98px) {
    .admin-shell { display: block; }
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0,0,0,.15);
        padding-top: 1rem;
    }
    .admin-sidebar .sidebar-header { display: flex; }
    .admin-sidebar--open { transform: translateX(0); }
    .admin-sidebar .btn-sidebar-collapse { display: none; }
    .admin-content { padding: 1rem; }
}

/* Prevent body scroll saat sidebar mobile open */
body.sidebar-open { overflow: hidden; }

/* ===== DASHBOARD LAYOUT (tanpa navbar atas) ===== */
@media (min-width: 992px) {
    body.dashboard-layout .admin-sidebar {
        top: 0;
        height: 100vh;
    }
}
body.dashboard-layout .admin-shell {
    min-height: 100vh;
}
body.dashboard-layout main { display: block; }

/* Topbar di dalam content (brand + hamburger) */
.admin-topbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}
.admin-topbar .topbar-brand {
    display: none;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: var(--color-primary);
}
.admin-topbar .topbar-brand .logo {
    width: 30px; height: 30px; border-radius: 7px;
    background: var(--color-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700;
}
@media (max-width: 991.98px) {
    .admin-topbar .topbar-brand { display: inline-flex; }
}

/* ===== ACCOUNT SECTION di sidebar footer ===== */
.admin-sidebar .account-actions { padding: .5rem .75rem 0; }
.admin-sidebar .account-actions .nav-link { border-radius: 8px; }

/* ===== SKELETON ===== */
.skeleton {
    display: block;
    background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton 1.4s infinite;
    border-radius: 6px;
}
.skeleton-row { height: 14px; margin: 8px 0; }
@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== TABLE-CARD HYBRID (mobile cards) ===== */
@media (max-width: 767.98px) {
    .table-app--hybrid table thead { display: none; }
    .table-app--hybrid table, .table-app--hybrid tbody, .table-app--hybrid tr, .table-app--hybrid td { display: block; width: 100%; }
    .table-app--hybrid tr {
        background: #fff;
        border-radius: 8px;
        margin-bottom: .75rem;
        padding: .75rem;
        box-shadow: var(--shadow-sm);
    }
    .table-app--hybrid td {
        border: none !important;
        padding: .35rem 0 !important;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }
    .table-app--hybrid td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text-muted);
        font-size: .8rem;
    }
}

/* ===== MODAL ===== */
.modal-content {
    border-radius: 14px;
    border: none;
    box-shadow: var(--shadow-lg);
    /* Penting: max-height + overflow:hidden agar modal-body yang scroll, bukan modal-content */
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

/*
 * FIX BUG: ketika <form> membungkus modal-header/body/footer di dalam .modal-content,
 * form jadi block element & memecah flex layout Bootstrap.
 * Akibatnya modal-body tidak scroll dan footer kepush keluar viewport.
 * Solusi: jadikan form sebagai flex column container yang penuh tinggi.
 */
.modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

/* Bootstrap modal-dialog-scrollable sudah set max-height & overflow,
   tapi kita pastikan body modal scroll smooth di semua viewport. */
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0; /* fix flexbox bug — allow shrink below content size */
}

/* Header & footer JANGAN ikut scroll — fixed di atas/bawah modal */
.modal-header {
    border-bottom: 1px solid var(--color-border);
    padding: 1.1rem 1.5rem;
    flex-shrink: 0;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    background: #fff;
}
.modal-footer {
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    flex-shrink: 0;
    background: #fff;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}
.modal-title { font-weight: 700; }

/* Custom scrollbar di modal-body biar lebih bersih */
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.25); }

/* Modal dialog: ensure proper sizing across viewports */
.modal-dialog {
    margin: 1rem auto;
    max-width: 95%;
}
@media (min-width: 576px) {
    .modal-dialog { max-width: 500px; margin: 1.75rem auto; }
    .modal-lg, .modal-xl { max-width: 720px; }
}
@media (min-width: 992px) {
    .modal-lg { max-width: 800px; }
    .modal-xl { max-width: 1140px; }
}

/* MOBILE (<576px): fullscreen, no border-radius, no margin */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
    }
    .modal-dialog.modal-dialog-centered {
        min-height: 100%;
        align-items: stretch;
    }
    .modal-content {
        height: 100%;
        max-height: 100%;
        min-height: 100%;
        border-radius: 0;
    }
    .modal-content > form {
        height: 100%;
        max-height: 100%;
    }
    .modal-header, .modal-footer {
        border-radius: 0 !important;
    }
    .modal-body { padding: 1.25rem; }
    .modal-header { padding: 1rem 1.25rem; }
    .modal-footer { padding: .75rem 1.25rem; }
    .modal-footer .btn { flex: 1; }
}

/* Backdrop biar lebih halus */
.modal-backdrop.show { opacity: .55; }

/* ===== PAGINATION ===== */
.pagination .page-link {
    color: var(--color-text);
    border-color: var(--color-border);
}
.pagination .page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.pagination .page-link:hover {
    color: var(--color-primary);
    background: var(--color-bg-soft);
}

/* ===== BADGE ROLE ===== */
.role-badge {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.role-badge--admin { background: rgba(184,26,26,.12); color: var(--color-primary); }
.role-badge--operator_opd { background: rgba(255,152,0,.15); color: #c47c00; }
.role-badge--masyarakat { background: rgba(33,33,33,.08); color: #555; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
    section { padding: 1.5rem 0; }
    .filter-card { margin-top: -3rem; padding: 1.25rem; }
    .hero { padding: 2.5rem 0 5rem; }
    .auth-card { padding: 1.5rem; }
    .pengaduan-card__title { font-size: .95rem; }
}
