/* =========================================================
   NARASI — Design System (gaya institusi pemerintahan)
   Dipakai bersama oleh seluruh halaman.
   ========================================================= */

:root {
    --primary: #078BC5;
    --primary-dark: #086D9E;
    --navy: #173A58;
    --navy-deep: #0E2A42;
    --bg: #F5F9FC;
    --ink: #1B3347;
    --muted: #5B7388;
    --border: #DCE8F0;
    --gold: #B08D4F;
    --radius: 10px;
    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;

}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible {
    outline: 3px solid rgba(7, 139, 197, .55);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.icon {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border-color: #C5D8E4; color: var(--navy); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-light { background: #fff; color: var(--navy); }

.btn-light:hover { background: #E9F3F9; }

/* ---------- Bar atas ---------- */
.topbar {
    background: var(--navy-deep);
    color: #BFD3E0;
    font-size: 12.5px;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 40px;
}
.topbar a { color: #E4EEF5; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;

}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; flex-shrink: 0; }
.brand-name {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--navy);
    line-height: 1.1;
}
.brand-sub {
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--muted);
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.main-nav a:not(.btn):hover { color: var(--primary-dark); border-color: var(--gold); }

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;

    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background-color: var(--navy);
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 22px);
    border-bottom: 4px solid var(--gold);
    color: #fff;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 64px;
    padding-block: 88px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #E3CC9C;

}
.hero-tag::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero h1 {
    margin: 20px 0;
    font-family: var(--serif);
    font-size: clamp(36px, 4.6vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.5px;
}
.hero-lead {
    max-width: 560px;
    margin: 0;
    font-size: 16px;
    line-height: 1.85;
    color: #D3E2EC;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.status-card {
    padding: 28px;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(5, 20, 35, .3);
}
.status-card h2 {
    margin: 0 0 4px;
    font-family: var(--serif);
    font-size: 20px;
    color: var(--navy);
}

.status-card > p { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.status-list { margin: 0; padding: 0; list-style: none; }
.status-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
.status-dot {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-submitted { background: #7C8FA0; }
.dot-reviewing { background: #E0A126; }
.dot-progress { background: var(--primary); }
.dot-resolved { background: #2E9E5E; }
.status-list strong { display: block; font-size: 14px; color: var(--navy); }
.status-list span { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Section ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--primary-dark);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section-title {
    margin: 14px 0 14px;
    font-family: var(--serif);
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.22;
    color: var(--navy);
}
.section-desc { margin: 0; font-size: 15.5px; line-height: 1.85; color: var(--muted); }

/* ---------- Langkah ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
    position: relative;
    padding: 32px 28px 28px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--navy);
    border-radius: var(--radius);
    background: #fff;
}
.step-number {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);

}
.step h3 { margin: 16px 0 8px; font-size: 18px; color: var(--navy); }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- Kartu layanan dan peran ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
    padding: 30px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #EAF4FA;
    color: var(--primary-dark);
}
.card h3 { margin: 20px 0 8px; font-size: 17px; color: var(--navy); }
.card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.card-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #F1F5F8;
    font-size: 11.5px;
    font-weight: 700;

    color: var(--muted);
}

/* ---------- Profil fakultas ---------- */
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.profile-text p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.9; color: var(--muted); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 30px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}
.timeline-year { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--navy); }
.timeline p { margin: 4px 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); }

.leaders-head { margin: 72px 0 24px; }
.leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.leader {
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);

    border-radius: var(--radius);
    background: #fff;
}
.leader-role {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-dark);
}
.leader h3 { margin: 12px 0 8px; font-size: 16px; line-height: 1.5; color: var(--navy); }
.leader p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.leaders-note { margin: 20px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.leaders-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- CTA ---------- */
.cta {
    padding: 72px 0;
    background-color: var(--navy);
    border-top: 4px solid var(--gold);
    color: #fff;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); }
.cta p { max-width: 620px; margin: 0; font-size: 15px; line-height: 1.85; color: #D3E2EC; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; background: var(--navy-deep); color: #B9CCD9; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; }
.site-footer p { margin: 10px 0 0; line-height: 1.85; }
.site-footer h4 {

    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #E3CC9C;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12.5px;
    color: #8FA8BA;
}

/* ---------- Responsif ---------- */
@media (max-width: 1020px) {
    .hero-inner { gap: 40px; }
    .cards-4, .leaders { grid-template-columns: repeat(2, 1fr); }
    .profile { gap: 44px; }
    .main-nav { gap: 18px; }
}

@media (max-width: 860px) {
    .menu-toggle { display: inline-flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;

        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 24px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 30px rgba(14, 42, 66, .1);
    }
    .main-nav.open { display: flex; }
    .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
    .main-nav .btn { margin-top: 16px; }

    .hero-inner { grid-template-columns: 1fr; padding-block: 64px; }
    .steps, .cards-3, .profile, .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 68px 0; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .container { width: calc(100% - 32px); }
    .topbar-inner { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 8px; }
    .header-inner { min-height: 72px; }
    .brand-logo { width: 46px; height: 46px; }
    .brand-name { font-size: 21px; }
    .brand-sub { font-size: 10.5px; }
    .hero-actions .btn, .profile-actions .btn, .cta .btn { width: 100%; }
    .status-card { padding: 22px; }
    .cards-4, .leaders { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {

    html { scroll-behavior: auto; }
    * { transition: none !important; }
}


/* =========================================================
   HALAMAN DALAM (setelah login)
   ========================================================= */

.app-header {
    background: #fff;
    border-top: 3px solid var(--navy);
    border-bottom: 1px solid var(--border);
}
.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
}
.app-header-actions { display: flex; align-items: center; gap: 12px; }

.user-chip { font-size: 12.5px; line-height: 1.35; text-align: right; color: var(--muted); }
.user-chip strong { display: block; font-size: 13.5px; color: var(--navy); }

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 13px; }

.notif-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #C5D8E4;
    border-radius: 8px;

    background: #fff;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}
.notif-link:hover { border-color: var(--primary); color: var(--primary-dark); }
.notif-link .icon { width: 18px; height: 18px; }
.notif-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #C83A48;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.page { padding: 44px 0 20px; }

.page-head { margin-bottom: 28px; }
.page-head h1 {
    margin: 12px 0 10px;
    font-family: var(--serif);
    font-size: clamp(28px, 3.6vw, 38px);
    line-height: 1.2;
    color: var(--navy);
}
.page-head p { margin: 0; max-width: 680px; font-size: 15px; line-height: 1.8; color: var(--muted); }


.panel {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.panel-accent { border-left: 4px solid var(--gold); }

.role-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--navy);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.panel h2 { margin: 14px 0 8px; font-family: var(--serif); font-size: 24px; color: var(--navy); }
.panel p { margin: 0; max-width: 680px; font-size: 14.5px; line-height: 1.8; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.stat { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.stat span { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat strong {
    display: block;
    margin-top: 8px;
    font-family: var(--serif);
    font-size: 38px;
    line-height: 1.1;

    color: var(--navy);
}

.section-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 44px 0 20px;
}
.section-bar h2 { margin: 0; font-family: var(--serif); font-size: 24px; color: var(--navy); }
.section-bar span { font-size: 13px; color: var(--muted); }

.link-card { display: block; transition: border-color .2s, box-shadow .2s, transform .2s; }
.link-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(23, 58, 88, .08);
    transform: translateY(-3px);
}
.card-action { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 800; color: var(--primary-dark); }

.legend-list { display: grid; gap: 16px; margin-top: 18px; }
.legend-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.legend-item strong { color: var(--navy); }
.legend-dot { width: 11px; height: 11px; margin-top: 7px; border-radius: 50%; flex-shrink: 0; }
.legend-green { background: #2E9E5E; }
.legend-orange { background: #E0A126; }
.legend-red { background: #D9473F; }

.app-footer { padding: 48px 0 32px; text-align: center; font-size: 12.5px; line-height: 1.9; color: #7D93A5; }


@media (max-width: 600px) {
    .user-chip { display: none; }
    .app-header-inner { min-height: 70px; }
    .page { padding: 32px 0 12px; }
    .stat-grid { grid-template-columns: 1fr; }
    .panel { padding: 22px; }
}


/* =========================================================
   FORMULIR
   ========================================================= */

.container-narrow { width: min(860px, calc(100% - 48px)); margin-inline: auto; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-dark);
}
.back-link:hover { text-decoration: underline; }

.form-card {
    margin-top: 24px;
    padding: clamp(24px, 5vw, 40px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.form-card h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 24px; color: var(--navy); }
.form-intro { margin: 0 0 28px; font-size: 14px; line-height: 1.8; color: var(--muted); }

.form-group { margin-bottom: 28px; }
.form-label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 700; color: var(--navy); }
.form-required { color: #C83A48; }


.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #C9D9E5;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(7, 139, 197, .14); }
.form-control[aria-invalid="true"] { border-color: #D9534F; }
.form-control::placeholder { color: #8DA2B3; }

select.form-control {
    appearance: none;
    padding-right: 44px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23647C91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}
textarea.form-control { min-height: 180px; resize: vertical; line-height: 1.75; }

.form-hint { margin: 9px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.form-error { margin-top: 8px; font-size: 13px; font-weight: 600; color: #B42318; }

.alert { margin-bottom: 24px; padding: 14px 16px; border-radius: 8px; font-size: 13.5px; line-height: 1.7; }
.alert-error { background: #FFF0EF; border: 1px solid #FFD4D0; color: #B42318; }
.alert-success { background: #EAF7EE; border: 1px solid #CDEDD8; color: #217547; }


.info-box {
    margin-top: 12px;
    padding: 14px 16px;
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    background: #F0F8FC;
    font-size: 13px;
    line-height: 1.75;
    color: #31536C;
}

.urgency-guide {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
}

.form-footer { margin-top: 12px; padding-top: 26px; border-top: 1px solid var(--border); }
.form-footer p { margin: 0 0 18px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.btn-block { width: 100%; min-height: 52px; font-size: 15px; }
.btn:disabled { opacity: .7; cursor: wait; }

@media (max-width: 600px) {
    .container-narrow { width: calc(100% - 32px); }
    .form-card { padding: 22px; }
}


/* =========================================================
   DAFTAR LAPORAN, BADGE, TIMELINE, PAGINATION
   ========================================================= */

.container-mid { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }

.page-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}
.page-top .page-head { margin-bottom: 0; }

.report-list { display: grid; gap: 20px; }
.report-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ticket { font-size: 12.5px; font-weight: 800; letter-spacing: .4px; color: var(--primary-dark); overflow-wrap: anywhere; }
.report-title { margin: 8px 0 10px; font-size: 20px; line-height: 1.4; color: var(--navy); overflow-wrap: anywhere; }
.report-desc { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }

/* Badge status dan tag */
.badge {
    display: inline-block;

    padding: 6px 12px;
    border-radius: 6px;
    background: #EDF1F5;
    color: #4F6577;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.status-submitted { background: #EDF1F5; color: #4F6577; }
.status-reviewing { background: #FFF4DC; color: #8A5A00; }
.status-in_progress { background: #E3F2FA; color: var(--primary-dark); }
.status-resolved { background: #E7F6EC; color: #1F7A44; }
.status-rejected { background: #FDECEE; color: #B43B45; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid #DCE6EE;
    border-radius: 6px;
    background: #fff;
    color: #4F6577;
    font-size: 12px;
    font-weight: 700;
}
.tag.urgent { background: #FFF4DC; border-color: #F3DFAE; color: #8A5A00; }
.tag.critical { background: #FDECEE; border-color: #F4CDD1; color: #B43B45; }
.tag.submitted { background: #EDF1F5; color: #4F6577; }
.tag.reviewing { background: #FFF4DC; border-color: #F3DFAE; color: #8A5A00; }
.tag.in_progress { background: #E3F2FA; border-color: #BFE0F1; color: var(--primary-dark); }
.tag.resolved { background: #E7F6EC; border-color: #C5E6D0; color: #1F7A44; }
.tag.rejected { background: #FDECEE; border-color: #F4CDD1; color: #B43B45; }


/* Bagian dalam kartu */
.report-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.report-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--navy);
}
.report-section h3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--gold); }

.note-box {
    padding: 16px 18px;
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    background: #F0F8FC;
    font-size: 13.5px;
    line-height: 1.85;
    color: #31536C;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.note-caption { margin-top: 8px; font-size: 12px; color: #7D93A5; }
.empty-box {
    padding: 16px 18px;
    border: 1px dashed #C9D9E5;
    border-radius: 8px;
    background: var(--bg);
    font-size: 13.5px;
    line-height: 1.8;

    color: var(--muted);
}

/* Timeline aktivitas */
.activity { margin: 6px 0 0 6px; padding: 0 0 0 26px; list-style: none; border-left: 2px solid #D5E5F0; }
.activity-item { position: relative; padding-bottom: 24px; }
.activity-item:last-child { padding-bottom: 0; }
.activity-item::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 4px;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.activity-title { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: var(--navy); }
.activity-date { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.activity-change {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #EAF4FA;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-dark);
}
.activity-note {

    margin-top: 10px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-size: 13px;
    line-height: 1.8;
    color: #31536C;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.report-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }

.empty-state {
    padding: 56px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    text-align: center;
}
.empty-state h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; color: var(--navy); }
.empty-state p { margin: 0 0 24px; font-size: 14.5px; color: var(--muted); }

/* Pagination */
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;

}
.pager-info { font-size: 13px; color: var(--muted); }
.pager-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pager-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #C9D9E5;
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 700;
}
a.pager-item:hover { border-color: var(--primary); color: var(--primary-dark); }
.pager-item.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager-item.disabled { color: #9DB0BF; background: var(--bg); }

@media (max-width: 600px) {
    .container-mid { width: calc(100% - 32px); }
    .page-top { align-items: stretch; }
    .page-top .btn { width: 100%; }
    .report-card { padding: 20px; }
    .report-head { flex-direction: column; }
    .report-title { font-size: 18px; }
    .pager { justify-content: center; }
}


/* =========================================================
   DASHBOARD PENGELOLA
   ========================================================= */

.stat-grid.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }

.notice-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 22px 26px;
    border: 1px solid #BFE0F1;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    background: #EAF6FC;
}
.notice-banner h3 { margin: 0 0 6px; font-size: 16px; color: var(--primary-dark); }
.notice-banner p { margin: 0; max-width: 680px; font-size: 13.5px; line-height: 1.8; color: #3F6580; }

.report-link-hint { font-size: 13px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }

@media (max-width: 850px) {
    .stat-grid.stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .notice-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .notice-banner { padding: 20px; }
    .notice-banner .btn { width: 100%; }

    .report-link-hint { white-space: normal; }
}

@media (max-width: 450px) {
    .stat-grid.stat-grid-4 { grid-template-columns: 1fr; }
}


/* =========================================================
   PUSAT NOTIFIKASI
   ========================================================= */

.count-chip {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #E3F2FA;
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 800;
}

.notif-card {
    padding: 26px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.notif-card.unread { border-left: 4px solid var(--primary); background: #FBFEFF; }

.notif-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.notif-title { margin: 0 0 6px; font-size: 18px; line-height: 1.5; color: var(--navy); }
.notif-date { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.notif-message { margin: 14px 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.notif-actions { display: flex; justify-content: flex-end; margin-top: 20px; }

.tag.unread-tag { background: #E3F2FA; border-color: #BFE0F1; color: var(--primary-dark); }


.page-top form .btn:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 600px) {
    .notif-card { padding: 20px; }
    .notif-head { flex-direction: column; gap: 6px; }
    .notif-title { font-size: 16px; }
    .notif-actions .btn { width: 100%; }
    .page-top form { width: 100%; }
}


/* =========================================================
   DETAIL PENGADUAN (PENGELOLA)
   ========================================================= */

.detail-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.9;
    color: #3F5A70;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.detail-item { padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.detail-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.detail-value { margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }

.urgency-normal { background: #E7F6EC; color: #1F7A44; }
.urgency-urgent { background: #FFF4DC; color: #8A5A00; }
.urgency-critical { background: #FDECEE; color: #B43B45; }

.form-card .form-group:first-of-type { margin-top: 0; }

@media (max-width: 600px) {
    .detail-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   DASHBOARD PIMPINAN (HANYA-BACA)
   ========================================================= */

.stat-grid.stat-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat.stat-urgent { border-top: 4px solid #E0A126; }
.stat.stat-critical { border-top: 4px solid #D9473F; }

.readonly-chip {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 6px;
    background: #E3F2FA;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.report-card.urgent { border-left: 5px solid #E0A126; }
.report-card.critical { border-left: 5px solid #D9473F; }

.report-date { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.note-box .note-label { display: block; margin-bottom: 4px; font-weight: 800; color: var(--navy); }

@media (max-width: 1000px) {
    .stat-grid.stat-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 650px) {
    .stat-grid.stat-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
    .stat-grid.stat-grid-5 { grid-template-columns: 1fr; }
}


/* =========================================================
   NARASI — Penyempurnaan Responsif Dashboard
   Langkah 211B
   ========================================================= */

/* Konsistensi tampilan kartu statistik */
.stat {
    min-width: 0;
}

.stat span {
    display: block;
    line-height: 1.5;
}

.stat strong {
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

/* Kartu laporan lebih nyaman dibaca */
.report-card {
    min-width: 0;
}

.report-title,
.report-desc,
.activity-note,
.note-box {
    overflow-wrap: anywhere;
}

/* Responsif tablet */
@media (min-width: 601px) and (max-width: 900px) {
    .stat-grid,
    .stat-grid.stat-grid-4,
    .stat-grid.stat-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Responsif HP */
@media (max-width: 600px) {
    .stat-grid,
    .stat-grid.stat-grid-4,
    .stat-grid.stat-grid-5 {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 20px;
    }

    .stat strong {
        font-size: 32px;
    }

    .report-card {
        padding: 20px;
    }

    .report-head {
        flex-wrap: wrap;
    }

    .section-bar {
        align-items: flex-start;
    }

    .app-header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
