:root {
    --ink: #10201d;
    --muted: #64716d;
    --green: #0f766e;
    --mint: #d8f3ea;
    --gold: #f4b63f;
    --coral: #ef6f5e;
    --blue: #2563eb;
    --line: #dfe8e4;
    --paper: #ffffff;
    --soft: #f5f8f6;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--soft);
}
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; stroke-width: 2.2; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 5vw;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 230px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--green);
    color: white;
    font-weight: 800;
}
.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    background: white;
    border: 1px solid var(--line);
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.nav a {
    padding: 9px 10px;
    border-radius: 8px;
    color: #29423d;
    font-weight: 650;
    font-size: 14px;
}
.nav a:hover, .side-nav a:hover { background: var(--mint); color: var(--green); }
.nav-actions, .actions, .hero-actions, .toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn, .icon-btn {
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 14px;
    font-weight: 750;
    cursor: pointer;
}
.btn-primary { background: var(--green); color: white; }
.btn-light { background: white; color: var(--green); }
.btn-soft { background: var(--mint); color: var(--green); }
.icon-btn { width: 40px; padding: 0; background: #eef5f2; color: var(--green); }
.icon-btn.danger { background: #ffe6e3; color: #c24132; }
.alert {
    margin: 16px 5vw 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: #dff8ee;
    color: #106144;
    border: 1px solid #b9ead8;
}
.alert-error { background: #ffe7e2; color: #a83d2d; border-color: #ffc6bd; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    gap: 34px;
    min-height: 620px;
    align-items: center;
    padding: 52px 5vw 36px;
    background:
        linear-gradient(110deg, rgba(15,118,110,.94), rgba(16,32,29,.85)),
        url("/images/beranda-rainbow.jpeg") center/cover;
    color: white;
}
.hero h1, .page-hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1; margin: 8px 0 18px; letter-spacing: 0; }
.hero p { max-width: 700px; font-size: 18px; line-height: 1.7; color: #eefaf6; }
.eyebrow { margin: 0; color: var(--gold); font-weight: 850; text-transform: uppercase; font-size: 12px; letter-spacing: 0; }
.hero-slider { display: grid; gap: 14px; }
.slide-card {
    min-height: 170px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), var(--coral));
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.32);
}
.slide-card div {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.slide-card strong { font-size: 24px; }
.slide-card span { color: #fff4de; margin-top: 4px; }
.stats-row, .admin-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 24px 5vw;
}
.stats-row div, .admin-cards div, .panel, .card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 35px rgba(16,32,29,.06);
}
.stats-row div, .admin-cards div { padding: 20px; }
.stats-row strong, .admin-cards strong { display: block; font-size: 32px; color: var(--green); }
.stats-row span, .admin-cards span, .muted { color: var(--muted); }
.section-grid, .content-band {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr);
    gap: 24px;
    padding: 36px 5vw;
}
.section-heading { margin-bottom: 16px; }
.section-heading h2, .panel h2 { margin: 4px 0 0; }
.cards, .listing, .video-grid, .org-grid, .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 0 5vw 36px;
}
.cards { padding: 0; }
.card { padding: 18px; }
.card h3 { margin: 8px 0; }
.card p { color: var(--muted); line-height: 1.6; }
.date, .badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--mint);
    color: var(--green);
    font-size: 12px;
    font-weight: 750;
}
.page-hero {
    padding: 64px 5vw;
    color: white;
    background: linear-gradient(120deg, var(--green), #163f3a 60%, var(--coral));
}
.page-hero.small { min-height: 230px; display: flex; flex-direction: column; justify-content: center; }
.content-band.single { grid-template-columns: minmax(0, 900px); justify-content: center; }
.prose { font-size: 17px; line-height: 1.75; }
.info-panel p { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.report-entry, .report-workspace {
    display: grid;
    gap: 22px;
    padding: 36px 5vw;
}
.report-entry { grid-template-columns: minmax(0, 1fr); }
.report-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
}
.report-intro h2 { margin: 6px 0 8px; font-size: 30px; }
.report-intro p { max-width: 720px; color: var(--muted); line-height: 1.65; }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.report-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.step-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}
.step-card span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-weight: 850;
}
.step-card h3 { margin: 14px 0 8px; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.report-workspace {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    align-items: start;
}
.report-form { max-width: none; }
.form-section {
    display: grid;
    gap: 14px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}
.form-section:last-of-type { border-bottom: 0; padding-bottom: 0; }
.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 4px;
    color: var(--muted);
}
.submit-row strong { color: var(--green); }
.report-side { display: grid; gap: 16px; }
.status-steps {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}
.status-steps li {
    position: relative;
    padding: 11px 12px 11px 42px;
    border-radius: 8px;
    background: var(--soft);
    border: 1px solid var(--line);
    font-weight: 750;
}
.status-steps li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    transform: translateY(-50%);
}
.mini-list { display: grid; gap: 12px; margin-top: 14px; }
.mini-list article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}
.mini-list h3 { margin: 8px 0 4px; }
.mini-list p { margin: 0; color: var(--muted); line-height: 1.5; }
.form-panel { display: grid; gap: 14px; }
.form-panel.wide { max-width: 980px; width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 7px; font-weight: 700; }
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 11px 12px;
    font: inherit;
}
textarea { min-height: 112px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.auth-page, .qr-page { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 48px 5vw; }
.qr-card { text-align: center; max-width: 460px; padding: 28px; }
.qr-card img { width: 260px; max-width: 100%; border: 10px solid white; box-shadow: 0 10px 30px rgba(16,32,29,.12); }
.qr-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.video-grid { padding-top: 36px; }
.media-card video { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #0f1d1b; }
.video-link, .video-empty { min-height: 180px; display: grid; place-items: center; border-radius: 8px; background: var(--mint); color: var(--green); font-weight: 800; }
.photo-grid { padding-top: 36px; }
.photo-card { padding: 0; overflow: hidden; }
.photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.photo-card div { padding: 18px; }
.current-photo {
    display: grid;
    gap: 8px;
}
.current-photo img {
    width: 220px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}
.table-photo {
    width: 88px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}
.org-card { text-align: center; }
.avatar { width: 88px; height: 88px; margin: 0 auto 12px; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; font-size: 34px; font-weight: 850; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.pagination-wrap { padding: 0 5vw 40px; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 24px 5vw; background: var(--ink); color: white; }
.admin-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow: auto; background: #10201d; color: white; padding: 18px; }
.admin-brand { margin-bottom: 18px; min-width: 0; }
.side-nav { display: grid; gap: 6px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; color: #e9f4f0; font-weight: 700; }
.admin-main { min-width: 0; padding: 24px; }
.admin-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.admin-top h1 { margin: 4px 0 0; font-size: 32px; }
.admin-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 0 20px; }
.logo-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 18px;
    align-items: start;
}
.logo-preview-panel {
    display: grid;
    gap: 12px;
}
.logo-preview {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 12px;
}
.logo-empty-preview {
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    border-radius: 8px;
    background: var(--green);
    color: white;
    font-size: 48px;
    font-weight: 850;
}
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.panel { padding: 18px; overflow-x: auto; }
.table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
td textarea { min-height: 70px; min-width: 220px; }
.toolbar { margin-bottom: 14px; }
.print-page { background: white; padding: 30px; color: #111; }
.print-header { text-align: center; margin-bottom: 24px; }
.print-actions { text-align: right; margin-bottom: 16px; }
@media print {
    .print-actions { display: none; }
    body { background: white; }
    th, td { font-size: 12px; }
}
@media (max-width: 1060px) {
    .hero, .section-grid, .content-band, .dashboard-grid, .report-workspace, .logo-admin-grid { grid-template-columns: 1fr; }
    .admin-cards, .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar { align-items: flex-start; flex-direction: column; }
    .report-intro { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .admin-top, .footer { flex-direction: column; align-items: flex-start; }
    .hero { min-height: auto; padding-top: 34px; }
    .hero h1, .page-hero h1 { font-size: 38px; }
    .form-grid, .stats-row, .admin-cards, .report-steps { grid-template-columns: 1fr; }
    .submit-row { align-items: stretch; flex-direction: column; }
    .submit-row .btn { width: 100%; }
    .nav { width: 100%; }
    .nav a { flex: 1 1 150px; }
}
