/* =====================================================================
   TEMA SIMADU — mengikuti desain majalah Rancangan Aksi Perubahan
   - Navy & biru instansi, aksen emas, gelombang emas di tepi bawah
   - Wordmark: "SIM" biru + "ADU" emas, tebal miring
   - Empat warna fitur (Tabel 3.2): E-Reservation biru, E-Logbook hijau,
     Early Warning oranye, Basis Data/BMN ungu
   Dimuat setelah app.css.
   ===================================================================== */
:root {
  --f-res: #1e63d6; --f-log: #169b5a; --f-ews: #f07818; --f-bmn: #7a4fd6; --f-gray: #6b7a93;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C220 6 420 44 640 24 S1000 4 1200 22 V46 H0Z' fill='%23eef5ff'/%3E%3Cpath d='M0 28 C220 4 420 42 640 22 S1000 2 1200 20' fill='none' stroke='%23f6bb35' stroke-width='5'/%3E%3C/svg%3E");
  --rings: radial-gradient(circle at 12% 120%, rgba(255,255,255,.07) 0 22%, transparent 22.3% 30%, rgba(255,255,255,.05) 30.3% 38%, transparent 38.3%);
}

/* ---------- Wordmark ---------- */
.wm { display: inline-flex; font-weight: 800; font-style: italic; letter-spacing: .5px; line-height: 1.05; }
.wm b, .wm i { font-weight: 800; font-style: italic; -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .07em; }
.wm b { background-image: linear-gradient(180deg, #2152b8, #0b3a8c); }
.wm i { background-image: linear-gradient(180deg, #f8c64a, #e89818); }
.wm.on-dark b { background-image: linear-gradient(180deg, #ffffff, #a9c8ff); }
.wm.sm { font-size: 13px; }

/* ---------- Sidebar ---------- */
.sidebar { background: linear-gradient(180deg, #0a2a66 0%, #0b2f73 55%, #061d4a 100%); }
.brand { padding: 18px 18px 16px; border-bottom: 1px solid rgba(246,187,53,.3); }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.brand .wm { font-size: 25px; }
.brand small { color: #f6bb35; font-size: 10.5px; line-height: 1.3; margin-top: 4px; letter-spacing: 0; }
.nav-group { display: flex; align-items: center; gap: 7px; color: #9fb2d6; }
.nav-group i { width: 8px; height: 8px; border-radius: 3px; background: var(--f-gray); flex: none; }
.nav-group.g-res i { background: var(--f-res); } .nav-group.g-log i { background: var(--f-log); } .nav-group.g-ews i { background: var(--f-ews); }
.nav-group.g-bmn i { background: var(--f-bmn); } .nav-group.g-navy i { background: #f6bb35; }
.sidebar nav a { padding: 6px 10px; gap: 10px; }
.nav-ic { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: rgba(255,255,255,.07); color: #c9d8f3; transition: background .15s; }
.sidebar nav a.g-res .nav-ic { color: #9cc0ff; } .sidebar nav a.g-log .nav-ic { color: #7fe0ae; } .sidebar nav a.g-ews .nav-ic { color: #ffb47a; }
.sidebar nav a.g-bmn .nav-ic { color: #c9b2ff; } .sidebar nav a.g-navy .nav-ic { color: #f6bb35; }
.sidebar nav a.active { background: rgba(255,255,255,.09); }
.sidebar nav a.active::before { background: #f6bb35; }
.sidebar nav a.active .ic { color: #fff; }
.sidebar nav a.active.g-res .nav-ic { background: var(--f-res); } .sidebar nav a.active.g-log .nav-ic { background: var(--f-log); }
.sidebar nav a.active.g-ews .nav-ic { background: var(--f-ews); } .sidebar nav a.active.g-bmn .nav-ic { background: var(--f-bmn); }
.sidebar nav a.active.g-navy .nav-ic { background: #f6bb35; } .sidebar nav a.active.g-navy .nav-ic .ic { color: #0a2a66; }
.sidebar nav a.active.g-gray .nav-ic { background: var(--f-gray); }
.pill { background: var(--f-ews); color: #fff; }
.sidebar-foot { color: #8ea3c9; padding-bottom: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 26' preserveAspectRatio='none'%3E%3Cpath d='M0 18 C60 4 120 26 180 12 S240 4 260 9' fill='none' stroke='%23f6bb35' stroke-width='3'/%3E%3C/svg%3E") no-repeat bottom / 100% 24px; }

/* ---------- Topbar: seperti kepala halaman majalah ---------- */
.topbar { background: #fff; border-bottom: 3px solid; border-image: linear-gradient(90deg, #0a2a66, #1e56c9 60%, #f6bb35) 1; }
.topbar-org { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-org img { width: 34px; height: 34px; object-fit: contain; }
.topbar-org b { display: block; font-size: 12.5px; color: #1e56c9; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-org small { display: block; font-size: 12px; color: var(--muted); }
.avatar { background: linear-gradient(135deg, #2f6be0, #0a2a66); border-color: #f6bb35; }
.icon-btn .dot { background: var(--f-ews); }

/* ---------- Banner halaman: gaya kepala BAB ---------- */
.page-head { position: relative; overflow: hidden; align-items: center; padding: 22px 26px 36px; border-radius: 18px; color: #fff;
  background: var(--wave) no-repeat bottom / 100% 26px, var(--rings), radial-gradient(circle at 92% -30%, rgba(246,187,53,.28), transparent 42%), linear-gradient(115deg, #0a2a66 0%, #123f95 55%, #1e56c9 100%);
  box-shadow: 0 10px 30px rgba(10,42,102,.22); }
.page-head h1 { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 700; letter-spacing: .3px; text-shadow: 0 2px 10px rgba(0,0,0,.25); margin-top: 8px; }
.page-head p { color: #d2def5; max-width: 760px; }
.ph-kicker { display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(180deg, #f8c64a, #f0b030); color: #0a2a66; font-weight: 800; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 12px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ph-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0a2a66; }
.ph-kicker.g-res::before { background: var(--f-res); } .ph-kicker.g-log::before { background: var(--f-log); }
.ph-kicker.g-ews::before { background: var(--f-ews); } .ph-kicker.g-bmn::before { background: var(--f-bmn); }
.page-head .actions { position: relative; z-index: 1; }
.page-head .btn-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.page-head .btn-light:hover { background: rgba(255,255,255,.22); }
.page-head .btn-primary { background: linear-gradient(180deg, #f8c64a, #f0b030); color: #0a2a66; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.page-head .btn-primary:hover { background: #f8c64a; }

/* ---------- Tombol, kartu, tabel ---------- */
.btn-primary { background: linear-gradient(180deg, #2f6be0, #1e56c9); }
.btn-primary:hover { background: #1a4db6; }
.btn-gold { background: linear-gradient(180deg, #f8c64a, #f0b030); color: #0a2a66; }
.card { border-color: #dbe5f3; box-shadow: 0 1px 2px rgba(10,42,102,.05), 0 6px 18px rgba(10,42,102,.06); }
.card-head h3::before, .card-title::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, #f8c64a, #e89818); flex: none; }
.table th { background: #f0f5fd; color: #4a5f86; }
.chip.on, .tabs-nav a.on, .pages a.on { background: #1e56c9; border-color: #1e56c9; }
.tabs button.on { color: #1e56c9; border-bottom-color: #f6bb35; }
.plate { background: #0f1e3d; }
.stat b { color: #0a2a66; }
.ag-date { background: linear-gradient(180deg, #1e56c9, #0a2a66); }
.ag-date small { color: #f6bb35; }
.sop-doc ol.steps li::before { background: #1e56c9; }
.timeline td.c-pj { background: var(--f-res); }
.timeline th.today { background: #f6bb35; }

/* ---------- Hero dashboard ---------- */
.hero-banner { padding: 26px 30px 42px;
  background: var(--wave) no-repeat bottom / 100% 30px, var(--rings), radial-gradient(circle at 88% -20%, rgba(246,187,53,.35), transparent 42%), linear-gradient(115deg, #0a2a66, #123f95 55%, #1e56c9); }
.hero-banner::after { display: none; }
.hero-banner h1 { font-family: Georgia, "Times New Roman", serif; font-size: 27px; }
.hb-kicker { display: inline-block; background: linear-gradient(180deg, #f8c64a, #f0b030); color: #0a2a66; padding: 3px 11px; border-radius: 7px; font-size: 11px; font-weight: 800; }

/* ---------- Ubin fitur: seperti mockup "Dashboard Pimpinan" ---------- */
.feature-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.ftile { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #dbe5f3; border-radius: 16px; padding: 14px; color: var(--ink); box-shadow: 0 4px 14px rgba(10,42,102,.07); transition: transform .12s, box-shadow .12s; min-width: 0; }
.ftile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10,42,102,.14); }
.ftile .fi { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.ftile > div { min-width: 0; }
.ftile b { display: block; font-size: 14px; }
.ftile small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.ftile em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 20px; color: #0a2a66; }
.fi.res { background: linear-gradient(180deg, #3b7bea, #1e63d6); } .fi.log { background: linear-gradient(180deg, #22b46c, #169b5a); }
.fi.ews { background: linear-gradient(180deg, #ff9440, #f07818); } .fi.bmn { background: linear-gradient(180deg, #9470ea, #7a4fd6); }
.fi.navy { background: linear-gradient(180deg, #1e56c9, #0a2a66); } .fi.red { background: linear-gradient(180deg, #e24b5b, #c0282d); }

/* ---------- Status armada (daftar) ---------- */
.armada-list { display: flex; flex-direction: column; }
.ar-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.ar-row:last-child { border-bottom: 0; }
.ar-row:hover { background: #f6f9ff; text-decoration: none; }
.ar-ic { width: 34px; height: 34px; border-radius: 10px; background: #e4eeff; color: #1e56c9; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ar-txt { flex: 1; min-width: 0; }
.ar-txt b { display: block; font-size: 13.5px; }
.ar-txt small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 55%; }
.st-chip { font-size: 11px; font-weight: 700; color: #fff; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.st-chip.ok { background: #169b5a; } .st-chip.pinjam { background: #1e63d6; } .st-chip.servis { background: #f07818; }
.st-chip.pajak { background: #c0282d; } .st-chip.off { background: #6b7a93; }

/* ---------- Grafik KM & BBM mingguan ---------- */
.weekchart { display: flex; align-items: flex-end; gap: 10px; height: 230px; border-bottom: 1px solid var(--line); }
.wk-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.wk-bars { height: 180px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.wk-bars i { display: block; width: 40%; max-width: 20px; border-radius: 5px 5px 0 0; min-height: 2px; }
.wk-bars i.km { background: linear-gradient(180deg, #3b7bea, #1e56c9); }
.wk-bars i.bbm { background: linear-gradient(180deg, #f8c64a, #e89818); }
.wk-lbl { font-size: 11px; color: var(--muted); padding: 6px 0 4px; white-space: nowrap; }
.lg-km { background: #1e56c9; }
.lg-servis { background: #1e56c9; } .lg-bbm { background: #f6bb35; }
.bc-servis { background: linear-gradient(180deg, #3b7bea, #1e56c9); }
.bc-bbm { background: linear-gradient(180deg, #f8c64a, #e89818); }

/* ---------- Footer ---------- */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border-top: 3px solid #f6bb35; }

/* ---------- Halaman masuk: mengikuti sampul majalah ---------- */
.lg-body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); color: var(--ink);
  background: radial-gradient(circle at 85% 20%, #d6e5ff 0, transparent 40%), radial-gradient(circle at 10% 70%, #e2ecff 0, transparent 35%), #eef5ff; }
.lg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; background: #fff; box-shadow: 0 2px 12px rgba(10,42,102,.08); }
.lg-org { display: flex; align-items: center; gap: 12px; }
.lg-org img { width: 44px; height: 44px; object-fit: contain; }
.lg-org b { display: block; color: #1e56c9; font-size: 14px; letter-spacing: .5px; }
.lg-org small { display: block; color: #1e56c9; font-weight: 600; font-size: 12.5px; }
.lg-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-tags span { font-size: 11px; font-weight: 700; color: #0a2a66; border: 1px solid #c9d8f3; border-radius: 20px; padding: 4px 10px; background: #f5f9ff; }
.lg-main { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; max-width: 1180px; width: 100%; margin: 0 auto; padding: 36px 32px 24px; }
.lg-pill { display: inline-block; background: linear-gradient(180deg, #f8c64a, #f0b030); color: #0a2a66; font-weight: 800; letter-spacing: 3px; font-size: 12px; padding: 7px 26px;
  clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%); }
.lg-hero .wm { font-size: clamp(56px, 8vw, 104px); letter-spacing: 1px; margin: 12px 0 4px; filter: drop-shadow(0 4px 10px rgba(10,42,102,.15)); }
.lg-sub { font-size: 19px; font-weight: 700; color: #0a2a66; margin: 0 0 10px; }
.lg-quote { color: #1e3a6e; font-size: 14.5px; margin: 0 0 22px; max-width: 560px; }
.lg-quote b { color: #1e56c9; }
.lg-quote .q { color: #f0b030; font-size: 24px; font-weight: 800; line-height: 0; vertical-align: -6px; }
.lg-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }
.lg-feat { display: flex; align-items: center; gap: 12px; color: #fff; border-radius: 12px; padding: 11px 14px; box-shadow: 0 6px 16px rgba(10,42,102,.18); }
.lg-feat b { display: block; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.lg-feat small { display: block; font-size: 10.5px; opacity: .92; text-transform: uppercase; letter-spacing: .4px; }
.lg-feat.res { background: linear-gradient(135deg, #2f74ea, #1e56c9); } .lg-feat.log { background: linear-gradient(135deg, #22b46c, #138a4f); }
.lg-feat.ews { background: linear-gradient(135deg, #ff9440, #e8690e); } .lg-feat.bmn { background: linear-gradient(135deg, #9470ea, #6a3fcc); }
.lg-card { background: #fff; border-radius: 20px; padding: 30px; box-shadow: 0 20px 50px rgba(10,42,102,.18); border: 1px solid #dbe5f3; position: relative; overflow: hidden; }
.lg-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, #0a2a66, #1e56c9 60%, #f6bb35); }
.lg-card h2 { color: #0a2a66; font-size: 22px; margin-bottom: 2px; }
.lg-card .muted { margin: 0 0 18px; }
.lg-card .btn-primary { height: 44px; font-size: 15px; }
.lg-foot { position: relative; color: #fff; background: linear-gradient(180deg, #0f3a86, #0a2a66); padding: 52px 32px 18px; }
.lg-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1200 V18 C1000 2 800 40 600 24 S220 2 0 22Z' fill='%23eef5ff'/%3E%3Cpath d='M0 26 C220 6 420 44 640 26 S1000 6 1200 22' fill='none' stroke='%23f6bb35' stroke-width='5'/%3E%3Cpath d='M0 36 C240 16 440 50 660 34 S1020 16 1200 32' fill='none' stroke='%232f6be0' stroke-width='4'/%3E%3C/svg%3E") no-repeat top / 100% 100%; }
.lg-icons { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; }
.lg-icons div { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.lg-icons span { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; background: rgba(255,255,255,.08); }
.lg-copy { text-align: center; font-size: 11px; letter-spacing: 1px; color: #9fb2d6; margin-top: 16px; }

/* ---------- Responsif ---------- */
@media (max-width: 1200px) { .feature-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) {
  .lg-main { grid-template-columns: 1fr; padding: 24px 18px; gap: 24px; }
  .lg-top { padding: 12px 16px; } .lg-tags { display: none; }
  .feature-tiles { grid-template-columns: repeat(2, 1fr); }
  .page-head { padding: 18px 18px 32px; }
  .page-head h1 { font-size: 21px; }
}
@media (max-width: 640px) {
  .lg-feats { grid-template-columns: 1fr; }
  .lg-icons { gap: 22px; }
  .ftile em { display: none; }
  .topbar-org small { display: none; }
  .ar-chips { max-width: 45%; }
}
@media print {
  .page-head { background: none !important; color: #000; box-shadow: none; padding: 0; }
  .page-head h1, .page-head p { color: #000; text-shadow: none; }
  .ph-kicker { display: none; }
}
