/* =====================================================================
   SIA UMKM & Budgeting — tema hijau-emas (mengikuti poster FEB UNJ)
   ===================================================================== */
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 900; font-display: swap; src: url(../fonts/montserrat-latin-900-normal.woff2) format("woff2"); }

:root {
  --hijau-tua: #12301a;
  --hijau: #1f4a24;
  --hijau-muda: #2f6b33;
  --emas: #f6b21b;
  --emas-muda: #ffe27a;
  --krem: #fff6c9;
  --unj: #0d6e63;
  --bs-primary: #1f4a24;
  --bs-primary-rgb: 31, 74, 36;
  --bs-link-color: #1f6b33;
  --bs-link-color-rgb: 31, 107, 51;
  --bs-link-hover-color: #12301a;
}

body { font-family: Montserrat, "Segoe UI", Arial, sans-serif; }

/* ---------------------------------------------------------------- */
/* Landing page                                                      */
/* ---------------------------------------------------------------- */
.landing {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% 25%, rgba(246, 178, 27, .18), transparent 60%),
    radial-gradient(900px 700px at 10% 110%, rgba(64, 140, 60, .35), transparent 60%),
    linear-gradient(135deg, #0d2413 0%, #1c3f1f 45%, #2c5a26 100%);
  overflow-x: hidden;
  overflow-x: clip;
  contain: paint;
  position: relative;
}
html.landing-html, html.landing-html body { overflow-x: hidden; max-width: 100%; }
.landing .deko { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.landing .deko::before {      /* garis cahaya emas melengkung */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw;
  border-radius: 50%; border: 2px solid rgba(255, 210, 90, .25); transform: rotate(-18deg);
  box-shadow: 0 0 60px rgba(255, 200, 70, .15); pointer-events: none;
}
.logo-strip {
  display: inline-flex; align-items: center; gap: 14px;
  background: #d4d8d2; border-radius: 16px; padding: 6px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.logo-strip img.unj { height: 46px; }
.logo-strip img.inst { height: 43px; }
.judul-1 {
  font-weight: 900; letter-spacing: .5px; line-height: 1;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem); text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
.judul-2 {
  font-weight: 900; line-height: 1; text-transform: uppercase;
  font-size: clamp(2rem, 4.8vw, 4rem);
  background: linear-gradient(180deg, #ffd23f 0%, #f6a01b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25));
}
.fakultas { font-weight: 700; font-size: 1.05rem; line-height: 1.3; opacity: .95; }
.quote-box {
  display: inline-block; max-width: 620px;
  background: linear-gradient(135deg, #fff8c4 0%, #ffe48a 55%, #f9cf4a 100%);
  color: #1d3a12; font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.35;
  padding: 16px 22px; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  position: relative;
}
.quote-box::after { content: ""; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.globe-wrap { position: relative; overflow: visible; max-width: 100%; width: min(420px, 80vw); aspect-ratio: 1; margin: 0 auto; }
.globe-wrap svg { width: 100%; height: 100%; overflow: visible; }
.sparkle { position: absolute; color: #ffe9a0; filter: drop-shadow(0 0 6px #ffd54a); animation: kerlip 3s ease-in-out infinite; }
@keyframes kerlip { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes putar { to { transform: rotate(360deg); } }
.globe-garis { transform-origin: 210px 210px; animation: putar 60s linear infinite; }

.modul-card {
  display: block; height: 100%; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 214, 102, .35); border-radius: 18px; padding: 26px 24px;
  backdrop-filter: blur(4px); transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.modul-card:hover { color: #fff; transform: translateY(-6px); border-color: var(--emas); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px var(--emas); }
.modul-card .nomor {
  position: absolute; right: 18px; top: 8px; font-size: 4.5rem; font-weight: 900;
  color: rgba(255, 214, 102, .14); line-height: 1;
}
.modul-card .ikon {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem;
  background: linear-gradient(135deg, #ffd23f, #f39c12); color: #1d3a12; box-shadow: 0 8px 20px rgba(243, 156, 18, .35);
}
.modul-card h3 { font-weight: 800; font-size: 1.35rem; margin: 18px 0 8px; }
.modul-card p { opacity: .85; font-size: .92rem; min-height: 4.2em; }
.modul-card .masuk { font-weight: 700; color: var(--emas-muda); }
.pembuat {
  border-top: 1px solid rgba(255, 214, 102, .25);
  background: rgba(0, 0, 0, .18);
}
.pembuat .nama { font-weight: 700; font-size: 1.05rem; }
.pembuat .nama i { color: var(--emas); }
.pembuat .prodi { font-weight: 800; color: var(--emas-muda); letter-spacing: .5px; text-transform: uppercase; }

/* ---------------------------------------------------------------- */
/* Halaman login                                                     */
/* ---------------------------------------------------------------- */
.login-card { max-width: 420px; border: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.login-card .kepala { background: linear-gradient(135deg, #1c3f1f, #2f6b33); color: #fff; padding: 26px 24px 20px; text-align: center; }
.login-card .kepala img { height: 84px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.login-card .kepala .modul { color: var(--emas-muda); font-weight: 800; font-size: 1.25rem; margin-top: 10px; }

/* ---------------------------------------------------------------- */
/* Layout aplikasi                                                   */
/* ---------------------------------------------------------------- */
.app-body { background: #f3f5f0; }
.app-nav { background: linear-gradient(90deg, #12301a, #1f4a24 60%, #2f6b33); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.app-nav .navbar-brand img { height: 40px; background: #fff; border-radius: 50%; padding: 2px; }
.app-nav .brand-teks { line-height: 1.05; }
.app-nav .brand-teks small { display: block; font-size: .68rem; color: var(--emas-muda); font-weight: 600; letter-spacing: .3px; }
.app-nav .brand-teks b { font-size: 1rem; font-weight: 800; }
.app-nav .nav-link { color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .82rem; white-space: nowrap; }
@media (min-width: 1200px) { .app-nav .navbar-nav .nav-link { padding-left: .5rem; padding-right: .5rem; } }
.app-nav .nav-link:hover, .app-nav .nav-link.active { color: var(--emas-muda); }
.app-nav .nav-link.active { border-bottom: 2px solid var(--emas); }
.unit-bar { background: #fffbe6; border-bottom: 1px solid #f1e3a0; font-size: .85rem; }
.btn-primary { --bs-btn-bg: #1f4a24; --bs-btn-border-color: #1f4a24; --bs-btn-hover-bg: #12301a; --bs-btn-hover-border-color: #12301a; --bs-btn-active-bg: #12301a; --bs-btn-disabled-bg: #6c8b6f; --bs-btn-disabled-border-color: #6c8b6f; }
.btn-outline-primary { --bs-btn-color: #1f4a24; --bs-btn-border-color: #1f4a24; --bs-btn-hover-bg: #1f4a24; --bs-btn-hover-border-color: #1f4a24; --bs-btn-active-bg: #12301a; }
.btn-emas { background: linear-gradient(135deg, #ffd23f, #f39c12); border: 0; color: #1d3a12; font-weight: 700; }
.btn-emas:hover { filter: brightness(1.05); color: #12301a; }
.card { border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); border-radius: 12px; }
.card-header { background: #fff; border-bottom: 1px solid #eef0ea; font-weight: 700; }
.stat .angka { font-size: 1.3rem; font-weight: 800; }
.stat .ikon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; }
.page-title { font-weight: 800; color: #12301a; }
.footer-app { font-size: .8rem; color: #6b7a6b; }
.footer-app b { color: #1f4a24; }

/* Tabel & laporan */
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-laporan td, .table-laporan th { padding: .35rem .6rem; }
.table-laporan .indent { padding-left: 1.75rem; }
.table-laporan .indent2 { padding-left: 3rem; }
.table-laporan .total td { border-top: 2px solid #333; font-weight: 700; }
.table-laporan .grand td { border-top: 2px solid #333; border-bottom: 3px double #333; font-weight: 800; }
.kelompok-row td { background: #eef3e8; font-weight: 700; }
.laporan { background: #fff; padding: 1.5rem 2rem; max-width: 920px; margin: 0 auto; }
.laporan.lebar { max-width: 1250px; }
.laporan.penuh { max-width: 100%; }
.kop { display: flex; align-items: center; gap: 16px; border-bottom: 3px double #1f4a24; padding-bottom: 10px; margin-bottom: 16px; }
.kop img { height: 64px; }
.kop .teks { flex: 1; text-align: center; }
.kop .teks .nama { font-weight: 800; font-size: 1.15rem; }
.kop .teks .judul { font-weight: 700; letter-spacing: .5px; }
.kop .spacer { width: 64px; }
.ttd { width: 260px; margin-left: auto; text-align: center; }
.ttd-ruang { height: 70px; }
.jurnal-grup td { border-top: 2px solid #dee2e6; }
.jurnal-kredit { padding-left: 2rem !important; }
.tabel-scroll { overflow: auto; max-height: 75vh; }
.tabel-scroll thead th { position: sticky; top: 0; z-index: 2; }
.tabel-scroll thead tr:nth-child(2) th { top: 33px; }
.tabel-scroll .sticky-col { position: sticky; left: 0; background: #fff; z-index: 1; }
.tabel-scroll thead .sticky-col { z-index: 3; background: #1f4a24; }
.th-hijau { background: #1f4a24 !important; color: #fff; text-align: center; vertical-align: middle; }
.th-bulan-1 { background: #e3eedc !important; text-align: center; }
.th-bulan-2 { background: #f4f4ef !important; text-align: center; }
.over { color: #b42318; font-weight: 700; }
.badge-over { background: #fde2e1; color: #b42318; }
.badge-ok { background: #dff3e4; color: #1f6b33; }
.baris-detail select { min-width: 240px; }

@media print {
  body, .app-body { background: #fff !important; }
  .no-print { display: none !important; }
  .laporan { box-shadow: none !important; padding: 0; max-width: 100% !important; }
  .card { box-shadow: none !important; }
  a { text-decoration: none; color: inherit; }
  .tabel-scroll { overflow: visible; max-height: none; }
  @page { margin: 12mm; }
}

/* Layar laptop 1200–1399px: menu tanpa ikon agar muat satu baris */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .app-nav .navbar-nav .nav-link > i { display: none; }
  .app-nav .navbar-nav .dropdown-toggle > i { display: inline; }
  .app-nav .brand-teks b { font-size: .9rem; }
}
