/* =====================================================================
   E-Rekom GTK Disdik Batam - tema warna dari logo Kota Batam
   Rafika Ilham (241055201081) - Universitas Ibnu Sina 2026
   ===================================================================== */
:root {
  --hijau: #00A639;          /* hijau logo */
  --hijau-tua: #007A2E;      /* tombol, tautan, teks */
  --hijau-hutan: #1F3D24;    /* sidebar, footer */
  --hijau-muda: #E7F5EC;
  --emas: #F09A49;           /* aksen rantai */
  --emas-tua: #C9772B;
  --kuning: #FFE600;
  --merah: #D7262D;
  --biru: #1E88C8;
  --latar: #F3F7F4;
  --teks: #1F2A22;
  --abu: #6B7A70;
  --garis: #DCE6DF;
  --bs-primary: #007A2E;
  --bs-primary-rgb: 0, 122, 46;
  --bs-link-color: #007A2E;
  --bs-link-color-rgb: 0, 122, 46;
  --bs-link-hover-color: #005A22;
  --bs-body-color: #1F2A22;
  --bs-body-font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--latar); color: var(--teks); }
a { color: var(--hijau-tua); text-decoration: none; }
a:hover { text-decoration: underline; }
.btn:hover, .nav-link:hover, .dropdown-item:hover, .stat:hover, .kartu-berita:hover, .berita-utama:hover, .info-item:hover, .navbar-brand:hover, .brand:hover { text-decoration: none; }
.text-hijau { color: var(--hijau-tua) !important; }
.text-emas { color: var(--emas-tua) !important; }
.bg-hijau { background: var(--hijau-tua) !important; color: #fff; }
.bg-hijau-muda { background: var(--hijau-muda) !important; }

/* tombol */
.btn-primary { --bs-btn-bg: var(--hijau-tua); --bs-btn-border-color: var(--hijau-tua); --bs-btn-hover-bg: #00692A; --bs-btn-hover-border-color: #00692A; --bs-btn-active-bg: #005A22; --bs-btn-disabled-bg: var(--hijau-tua); --bs-btn-disabled-border-color: var(--hijau-tua); }
.btn-outline-primary { --bs-btn-color: var(--hijau-tua); --bs-btn-border-color: var(--hijau-tua); --bs-btn-hover-bg: var(--hijau-tua); --bs-btn-hover-border-color: var(--hijau-tua); --bs-btn-active-bg: var(--hijau-tua); }
.btn-emas { background: var(--emas); border-color: var(--emas); color: #2b1a05; font-weight: 600; }
.btn-emas:hover { background: var(--emas-tua); border-color: var(--emas-tua); color: #fff; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--hijau); box-shadow: 0 0 0 .2rem rgba(0,166,57,.18); }
.form-check-input:checked { background-color: var(--hijau-tua); border-color: var(--hijau-tua); }
.page-link { color: var(--hijau-tua); }
.active > .page-link, .page-link.active { background: var(--hijau-tua); border-color: var(--hijau-tua); }
.nav-pills .nav-link.active { background: var(--hijau-tua); }
.form-label { font-weight: 600; font-size: .9rem; }
.wajib::after { content: " *"; color: var(--merah); }

/* badge status */
.badge-status { font-weight: 600; padding: .38em .65em; border-radius: 50rem; font-size: .76rem; white-space: nowrap; }
.st-diajukan   { background: #1E88C8; color: #fff; }
.st-revisi     { background: #F09A49; color: #2b1a05; }
.st-verifikasi { background: #4CBB6C; color: #08280f; }
.st-disposisi  { background: #7B5EA7; color: #fff; }
.st-proses     { background: #C9A400; color: #231c00; }
.st-setuju     { background: #00A639; color: #fff; }
.st-selesai    { background: #007A2E; color: #fff; }
.st-tolak      { background: #D7262D; color: #fff; }

/* ---------------------------------------------------------------- panel (setelah login) */
.panel-wrap { display: flex; min-height: 100vh; }
.sidebar { width: 260px; flex-shrink: 0; background: var(--hijau-hutan); color: #cfe0d4; position: fixed; inset: 0 auto 0 0; overflow-y: auto; z-index: 1040; transition: transform .25s; }
.sidebar .brand { display: flex; gap: .7rem; align-items: center; padding: 1.1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none; }
.sidebar .brand img { height: 46px; }
.sidebar .brand b { color: #fff; display: block; font-size: 1rem; line-height: 1.15; }
.sidebar .brand small { color: var(--emas); font-size: .72rem; letter-spacing: .02em; }
.sidebar .menu-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #8fae98; padding: 1rem 1.25rem .35rem; }
.sidebar .nav-link { color: #d7e6dc; padding: .55rem 1.25rem; display: flex; align-items: center; gap: .7rem; border-left: 3px solid transparent; font-size: .92rem; }
.sidebar .nav-link i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link.active { background: rgba(240,154,73,.14); color: #fff; border-left-color: var(--emas); font-weight: 600; }
.sidebar .nav-link .badge { margin-left: auto; background: var(--emas); color: #2b1a05; }
.main { flex: 1; margin-left: 260px; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--garis); padding: .6rem 1.25rem; display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 1030; }
.topbar .judul { font-weight: 600; color: var(--hijau-hutan); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--hijau-tua); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; object-fit: cover; }
.content { padding: 1.5rem; flex: 1; }
.panel-footer { padding: .9rem 1.5rem; font-size: .8rem; color: var(--abu); border-top: 1px solid var(--garis); background: #fff; }
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: none; }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1035; }
  .main { margin-left: 0; }
  .content { padding: 1rem; }
}
.notif-menu { width: 360px; max-width: 92vw; }
.notif-menu .dropdown-item { white-space: normal; font-size: .85rem; border-bottom: 1px solid #f0f0f0; }
.notif-menu .belum { background: var(--hijau-muda); }

/* kartu */
.card { border: 1px solid var(--garis); border-radius: .75rem; box-shadow: 0 1px 2px rgba(16,40,22,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--garis); font-weight: 600; color: var(--hijau-hutan); padding: .8rem 1.1rem; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.35rem; margin: 0; color: var(--hijau-hutan); font-weight: 700; }
.page-head .sub { color: var(--abu); font-size: .88rem; }
.stat { border-radius: .75rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--garis); display: flex; gap: .9rem; align-items: center; height: 100%; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.stat:hover { box-shadow: 0 4px 14px rgba(16,40,22,.08); color: inherit; }
.stat .ikon { width: 46px; height: 46px; border-radius: .7rem; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.stat .angka { font-size: 1.55rem; font-weight: 700; line-height: 1; }
.stat .ket { font-size: .8rem; color: var(--abu); }
.tindakan { border-left: 4px solid var(--emas); background: #FFF7EE; }
.table > :not(caption) > * > * { padding: .6rem .7rem; }
.table thead th { background: var(--hijau-muda); color: var(--hijau-hutan); font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; border-bottom: 0; white-space: nowrap; }
.table td { font-size: .9rem; vertical-align: middle; }
.kecil { font-size: .8rem; }
.dl-data dt { font-weight: 600; color: var(--abu); font-size: .82rem; }
.dl-data dd { margin-bottom: .65rem; }

/* timeline riwayat */
.timeline { list-style: none; padding-left: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.1rem 2.2rem; }
.timeline li::before { content: ""; position: absolute; left: .7rem; top: 1.6rem; bottom: 0; width: 2px; background: var(--garis); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: .1rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; color: #fff; }
.alur { display: flex; gap: 0; overflow-x: auto; padding-bottom: .25rem; }
.alur .langkah { flex: 1; min-width: 92px; text-align: center; position: relative; font-size: .74rem; color: var(--abu); }
.alur .langkah .bulat { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto .35rem; display: flex; align-items: center; justify-content: center; background: #e9efeb; color: #8a9a90; position: relative; z-index: 1; }
.alur .langkah::after { content: ""; position: absolute; top: 17px; left: 50%; width: 100%; height: 3px; background: #e9efeb; }
.alur .langkah:last-child::after { display: none; }
.alur .langkah.lewat .bulat { background: var(--hijau-tua); color: #fff; }
.alur .langkah.lewat::after { background: var(--hijau-tua); }
.alur .langkah.kini .bulat { background: var(--emas); color: #2b1a05; box-shadow: 0 0 0 4px rgba(240,154,73,.25); }
.alur .langkah.kini, .alur .langkah.lewat { color: var(--teks); font-weight: 600; }
.alur .langkah.tolak .bulat { background: var(--merah); color: #fff; }

/* lembar disposisi */
.lembar { border: 2px solid #333; background: #fff; font-size: .88rem; }
.lembar .bar { border-bottom: 1.5px solid #333; }
.lembar .kol-kanan { border-left: 1.5px solid #333; }
.lembar td, .lembar th { padding: .3rem .5rem; }
.ceklis { width: 18px; height: 18px; border: 1.5px solid #333; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; margin-right: .5rem; vertical-align: middle; }

/* ---------------------------------------------------------------- auth */
.auth-bg { min-height: 100vh; background: linear-gradient(135deg, var(--hijau-hutan) 0%, var(--hijau-tua) 55%, var(--hijau) 100%); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; position: relative; overflow: hidden; }
.auth-bg::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(240,154,73,.12); right: -160px; top: -160px; }
.auth-bg::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 40px solid rgba(255,230,0,.07); left: -140px; bottom: -140px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 2rem 2rem 1.5rem; position: relative; z-index: 1; }
.auth-card.lebar { max-width: 760px; }
.auth-card .logo { height: 86px; }
.auth-card h1 { font-size: 1.35rem; font-weight: 800; color: var(--hijau-hutan); margin: .6rem 0 .1rem; }
.auth-card .judul-lengkap { font-size: .8rem; color: var(--abu); line-height: 1.35; }
.auth-card .garis-emas { height: 3px; width: 60px; background: var(--emas); border-radius: 3px; margin: .8rem auto 1.2rem; }
.auth-foot { font-size: .75rem; color: var(--abu); text-align: center; margin-top: 1.2rem; line-height: 1.4; }

/* ---------------------------------------------------------------- publik */
.pub-top { background: var(--hijau-hutan); color: #cfe0d4; font-size: .8rem; }
.pub-head { background: #fff; border-bottom: 3px solid var(--emas); }
.pub-head .navbar-brand img { height: 52px; }
.pub-head .navbar-brand b { display: block; color: var(--hijau-hutan); font-size: 1.1rem; line-height: 1.1; }
.pub-head .navbar-brand small { color: var(--abu); font-size: .72rem; }
.pub-head .nav-link { font-weight: 600; color: var(--hijau-hutan); }
.pub-head .nav-link.active, .pub-head .nav-link:hover { color: var(--hijau); }
.hero .carousel-item { height: 380px; background: var(--hijau-hutan); }
.hero .carousel-item img { object-fit: cover; height: 100%; width: 100%; }
.hero .carousel-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,35,20,.75) 0%, rgba(15,35,20,.35) 55%, rgba(15,35,20,0) 80%); }
.hero .carousel-caption { z-index: 2; }
.hero .carousel-caption { left: 8%; right: 8%; bottom: 22%; text-align: left; }
.hero .carousel-caption h2 { font-weight: 800; font-size: 2.1rem; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero .carousel-caption p { font-size: 1.05rem; max-width: 640px; }
@media (max-width: 767.98px) { .hero .carousel-item { height: 260px; } .hero .carousel-caption h2 { font-size: 1.35rem; } .hero .carousel-caption { bottom: 12%; } }
.sec-title { font-weight: 800; color: var(--hijau-hutan); font-size: 1.25rem; position: relative; padding-left: .8rem; margin-bottom: 1rem; }
.sec-title::before { content: ""; position: absolute; left: 0; top: .15rem; bottom: .15rem; width: 4px; background: var(--emas); border-radius: 2px; }
.berita-utama { position: relative; border-radius: .9rem; overflow: hidden; display: block; color: #fff; min-height: 340px; background: var(--hijau-hutan); }
.berita-utama img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.berita-utama .isi { position: absolute; inset: auto 0 0 0; padding: 1.4rem; background: linear-gradient(transparent, rgba(10,30,15,.92)); }
.berita-utama h3 { font-weight: 800; font-size: 1.4rem; }
.kartu-berita { border-radius: .8rem; overflow: hidden; background: #fff; border: 1px solid var(--garis); height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.kartu-berita:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(16,40,22,.1); color: inherit; }
.kartu-berita img { height: 170px; object-fit: cover; width: 100%; background: var(--hijau-muda); }
.kartu-berita .p { padding: .9rem 1rem 1rem; }
.kartu-berita h5 { font-size: 1rem; font-weight: 700; color: var(--hijau-hutan); }
.meta { font-size: .78rem; color: var(--abu); }
.info-item { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px dashed var(--garis); text-decoration: none; color: inherit; }
.info-item:last-child { border-bottom: 0; }
.info-item .tgl { flex-shrink: 0; width: 52px; text-align: center; background: var(--hijau-muda); border-radius: .5rem; padding: .3rem 0; color: var(--hijau-tua); line-height: 1.1; }
.info-item .tgl b { display: block; font-size: 1.2rem; }
.info-item .tgl span { font-size: .7rem; text-transform: uppercase; }
.langkah-layanan .no { width: 42px; height: 42px; border-radius: 50%; background: var(--emas); color: #2b1a05; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto .6rem; }
.pub-foot { background: var(--hijau-hutan); color: #c7d8cc; font-size: .88rem; }
.pub-foot h6 { color: #fff; font-weight: 700; }
.pub-foot a { color: #e8f3ea; text-decoration: none; }
.pub-foot .bawah { background: rgba(0,0,0,.2); font-size: .78rem; }
.artikel { font-size: 1.02rem; line-height: 1.75; }
.artikel img.utama { width: 100%; max-height: 430px; object-fit: cover; border-radius: .8rem; }

/* cetak */
@media print {
  .sidebar, .topbar, .panel-footer, .no-print, .btn { display: none !important; }
  .main { margin: 0 !important; }
  body { background: #fff; }
  .content { padding: 0 !important; }
  .card { border: 0; box-shadow: none; }
}
