/* ===================== Panel Admin ===================== */
@font-face { font-family: 'Jakarta'; src: url('../vendor/fonts/plus-jakarta-sans.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
    --navy: #174a7e;
    --navy-2: #1f5a96;
    --emas: #c08a55;
    --emas-muda: #f3e8db;
    --latar: #f4f6fa;
    --garis: #e6e9f0;
    --teks-redup: #6b7489;
    --bs-body-font-family: 'Jakarta', system-ui, sans-serif;
    --bs-primary: #174a7e;
    --bs-primary-rgb: 23, 74, 126;
}

body { background: var(--latar); font-size: .925rem; color: #1d2433; }
a { color: var(--navy); }

.btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy-2); --bs-btn-hover-border-color: var(--navy-2); --bs-btn-active-bg: var(--navy-2); }
.btn-emas { background: var(--emas); color: var(--navy); border: 0; }
.btn-emas:hover { background: #d29e6a; color: var(--navy); }

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 1040;
    background: var(--navy); color: #c8d0e0; overflow-y: auto; transition: transform .25s;
}
.sidebar .brand { display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1.5rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--emas); color: var(--navy); display: grid; place-items: center; font-weight: 800; }
.sidebar .brand small { display: block; color: #8a96ad; font-size: .72rem; }
.sidebar .judul-grup { padding: 1.25rem 1.5rem .4rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #6f7c96; }
.sidebar .nav-link { display: flex; align-items: center; gap: .75rem; color: #c8d0e0; padding: .6rem 1.5rem; border-left: 3px solid transparent; }
.sidebar .nav-link i { font-size: 1.05rem; opacity: .85; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.sidebar .nav-link.active { color: #fff; background: rgba(192,138,85,.14); border-left-color: var(--emas); }
.sidebar .badge { margin-left: auto; }

/* ---------- Konten ---------- */
.konten { margin-left: 260px; min-height: 100vh; }
.topbar { background: #fff; border-bottom: 1px solid var(--garis); padding: .75rem 1.5rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 1030; }
.topbar h1 { font-size: 1.1rem; margin: 0; font-weight: 700; }
.isi { padding: 1.5rem; }

.kartu { background: #fff; border: 1px solid var(--garis); border-radius: 14px; padding: 1.25rem; }
.kartu-stat { display: flex; align-items: center; gap: 1rem; }
.kartu-stat .ikon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: var(--emas-muda); color: #9a7a2e; }
.kartu-stat .angka { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.kartu-stat .label { color: var(--teks-redup); font-size: .82rem; }

/* ---------- Tabel ---------- */
table.dataTable { font-size: .875rem; }
table.dataTable thead th { background: #f8f9fc; color: var(--teks-redup); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; background: #eee; }
.foto-bulat { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.badge-status { font-weight: 600; padding: .4em .7em; border-radius: 6px; }
.status-draf { background: #eef0f4; color: #5b6478; }
.status-menunggu { background: #fff4d6; color: #93680b; }
.status-terbit { background: #dcf5e6; color: #18794e; }
.status-ditolak { background: #fde3e3; color: #b42318; }

/* ---------- Kotak tag di form berita ---------- */
.kotak-tag { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 42px; cursor: text; }
.kotak-tag input { border: 0; outline: 0; flex: 1; min-width: 120px; font-size: .9rem; background: transparent; }
.label-tag { display: inline-flex; align-items: center; gap: .3rem; background: var(--emas-muda); color: #7a5d1d; border-radius: 6px; padding: .15rem .5rem; font-size: .82rem; font-weight: 600; }
.label-tag button { border: 0; background: none; padding: 0; line-height: 1; color: inherit; opacity: .7; }
.label-tag button:hover { opacity: 1; }

.modal-content { border: 0; border-radius: 14px; }
.modal-header { border-bottom: 1px solid var(--garis); }
.form-label { font-weight: 600; font-size: .85rem; }
.note-editor.note-frame { border-color: var(--garis); }

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.buka { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
    .konten { margin-left: 0; }
    .isi { padding: 1rem; }
}

/* ---------- Halaman login ---------- */
.halaman-login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 20%, #1d3466 0, var(--navy) 55%); padding: 1rem; }
.kotak-login { width: 100%; max-width: 410px; background: #fff; border-radius: 18px; padding: 2.25rem; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
