/* ============================================================================
   LWDB GROUP — Style Utama
   Palet: Hijau tua #14532D | Hijau utama #166534 | Hijau muda #DCFCE7
          Gold #C9A227 | Abu terang #F3F4F6 | Abu teks #4B5563 | Merah #DC2626
   Tipografi: Poppins (Google Fonts)
   ============================================================================ */

:root {
  --green-dark: #14532D;
  --green-main: #166534;
  --green-light: #DCFCE7;
  --gold: #C9A227;
  --gold-soft: #F5E9C8;
  --gray-light: #F3F4F6;
  --gray-text: #4B5563;
  --red-critical: #DC2626;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(20, 83, 45, .07);
  --shadow-md: 0 6px 22px rgba(20, 83, 45, .10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--gray-text);
  background: var(--white);
  font-size: .95rem;
}

h1, h2, h3, h4, h5, h6 { color: var(--green-dark); font-weight: 700; }
a { color: var(--green-main); text-decoration: none; }
a:hover { color: var(--green-dark); }

.text-gold { color: var(--gold) !important; }
.bg-green-dark { background: var(--green-dark) !important; }
.bg-green-main { background: var(--green-main) !important; }
.bg-green-light { background: var(--green-light) !important; }
.text-green-dark { color: var(--green-dark) !important; }
.text-green-main { color: var(--green-main) !important; }

.btn { border-radius: 10px; font-weight: 600; transition: all .2s ease; }
.btn:focus { box-shadow: 0 0 0 .2rem rgba(22, 101, 52, .18); }
.btn-green {
  background: var(--green-main); color: #fff; border: 1px solid var(--green-main);
}
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; border: 1px solid var(--gold); }
.btn-gold:hover { background: #b18f20; border-color: #b18f20; color: #fff; }
.btn-outline-green {
  color: var(--green-main); border: 1.5px solid var(--green-main); background: transparent;
}
.btn-outline-green:hover { background: var(--green-main); color: #fff; }
.btn-outline-gold { color: var(--gold); border: 1.5px solid var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

.card { border: none; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header {
  background: var(--white); border-bottom: 1px solid #EDF0EE;
  font-weight: 600; color: var(--green-dark); border-radius: var(--radius) var(--radius) 0 0 !important;
}

.status-badge { font-weight: 600; padding: .38em .7em; border-radius: 7px; font-size: .72rem; letter-spacing: .02em; }

/* ------------------------------------------------------------------ */
/* NAVBAR PUBLIK                                                       */
/* ------------------------------------------------------------------ */
.site-navbar {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 14px rgba(20, 83, 45, .08);
  backdrop-filter: blur(6px);
}
.site-navbar .navbar-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--green-dark); }
.site-navbar .navbar-brand img { height: 44px; width: auto; }
.site-navbar .nav-link {
  color: var(--gray-text); font-weight: 500; margin: 0 .12rem;
  border-bottom: 2px solid transparent; padding: .45rem .55rem;
  transition: color .18s ease, border-color .18s ease;
}
.site-navbar .nav-link:hover, .site-navbar .nav-link.active {
  color: var(--green-main); border-bottom-color: var(--gold);
}
.site-navbar .dropdown-menu { border: none; box-shadow: var(--shadow-md); border-radius: 12px; }
.site-navbar .dropdown-item:active { background: var(--green-main); }

/* ------------------------------------------------------------------ */
/* HERO                                                                */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 420px at 88% -10%, rgba(201, 162, 39, .14), transparent 60%),
    linear-gradient(160deg, #FFFFFF 0%, #F6FBF7 55%, var(--green-light) 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: auto -10% -55% -10%; height: 70%;
  background: var(--green-dark); border-radius: 50% 50% 0 0; opacity: .035;
}
.hero-inner { padding: 5.2rem 0 6.4rem; position: relative; }
.hero .hero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; color: var(--green-dark); }
.hero .hero-subtitle {
  color: var(--gold); font-weight: 600; letter-spacing: .04em;
  font-size: clamp(.95rem, 2vw, 1.12rem); text-transform: uppercase;
}
.hero p.lead { color: var(--gray-text); max-width: 640px; }
.hero-visual {
  border-radius: 22px; box-shadow: var(--shadow-md);
  background: linear-gradient(150deg, var(--green-dark), var(--green-main));
  color: #fff; padding: 2.4rem 2.2rem; position: relative; overflow: hidden; min-height: 320px;
}
.hero-visual::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border: 26px solid rgba(201, 162, 39, .35); border-radius: 50%;
}
.hero-visual .ent-chip {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px; padding: .7rem .9rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .65rem;
  transition: transform .18s ease, background .18s ease;
}
.hero-visual .ent-chip:hover { transform: translateX(5px); background: rgba(255, 255, 255, .2); }
.hero-visual .ent-chip i { color: var(--gold); font-size: 1.15rem; }

/* ------------------------------------------------------------------ */
/* SECTION UMUM                                                        */
/* ------------------------------------------------------------------ */
.section { padding: 4.2rem 0; }
.section-gray { background: var(--gray-light); }
.section-green { background: linear-gradient(150deg, var(--green-dark), var(--green-main)); color: #fff; }
.section-green h2, .section-green h3 { color: #fff; }
.section-title { font-weight: 800; position: relative; padding-bottom: .8rem; margin-bottom: 1.4rem; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px;
  border-radius: 4px; background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, .25));
}
.section-title.center::before, .section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-eyebrow { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }

/* ------------------------------------------------------------------ */
/* CARD ENTITAS                                                        */
/* ------------------------------------------------------------------ */
.entity-card {
  border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff;
  border: 1px solid #EEF2EF; height: 100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
}
.entity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201, 162, 39, .5); }
.entity-card .ec-top { height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--green-main), var(--gold)); }
.entity-card .ec-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.entity-card .ec-logo {
  width: 58px; height: 58px; border-radius: 14px; object-fit: contain;
  background: var(--green-light); border: 1px solid #D8EBDC; padding: 7px;
}
.entity-card h3 { font-size: 1.02rem; margin: 1rem 0 .5rem; }
.entity-card p { font-size: .88rem; flex: 1; }
.entity-card .ec-code {
  display: inline-block; background: var(--gold-soft); color: #8a6d12;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; border-radius: 6px; padding: .22rem .55rem;
}

/* ------------------------------------------------------------------ */
/* FITUR, NILAI, PROGRAM                                               */
/* ------------------------------------------------------------------ */
.value-card {
  text-align: center; padding: 1.8rem 1.2rem; height: 100%;
  border-radius: var(--radius); background: #fff; border: 1px solid #EEF2EF; box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.value-card:hover { transform: translateY(-4px); }
.value-card .vc-icon {
  width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-light); color: var(--green-main); font-size: 1.5rem;
}
.program-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid #EEF2EF; box-shadow: var(--shadow-sm); height: 100%; transition: transform .2s ease; }
.program-card:hover { transform: translateY(-4px); }
.program-card .pc-img { height: 168px; object-fit: cover; width: 100%; background: var(--green-light); }
.program-card .pc-body { padding: 1.1rem 1.25rem 1.3rem; }

.news-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid #EEF2EF; box-shadow: var(--shadow-sm); height: 100%; transition: transform .2s ease; }
.news-card:hover { transform: translateY(-4px); }
.news-card .nc-img { height: 180px; width: 100%; object-fit: cover; background: var(--green-light); }
.news-card .nc-body { padding: 1.15rem 1.25rem 1.35rem; }
.news-meta { font-size: .78rem; color: #8a948d; }

/* ------------------------------------------------------------------ */
/* FOOTER                                                              */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--green-dark); color: #D7E5DB; padding: 3.2rem 0 0; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: #D7E5DB; }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-list { list-style: none; padding: 0; }
.site-footer .footer-list li { margin-bottom: .5rem; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.4rem; padding: 1.1rem 0;
  font-size: .82rem; color: #b9cfc0;
}
.site-footer .logo-lg { height: 64px; width: auto; background: #fff; border-radius: 12px; padding: 6px; }

/* ------------------------------------------------------------------ */
/* HALAMAN KONTEN PUBLIK                                               */
/* ------------------------------------------------------------------ */
.page-hero {
  background: linear-gradient(150deg, var(--green-dark) 0%, var(--green-main) 100%);
  color: #fff; padding: 3.4rem 0; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px;
  border: 30px solid rgba(201, 162, 39, .28); border-radius: 50%;
}
.page-hero h1 { color: #fff; font-weight: 800; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #bcd7c4; }
.page-hero .breadcrumb a { color: #e8d9a0; }

.profile-block { margin-bottom: 2rem; }
.profile-block h4 { display: flex; align-items: center; gap: .55rem; }
.profile-block h4 i { color: var(--gold); }

.ent-banner {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(150deg, var(--green-dark), var(--green-main));
  color: #fff; padding: 2.4rem; box-shadow: var(--shadow-md);
}
.ent-banner::after {
  content: ""; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px;
  border: 24px solid rgba(201, 162, 39, .3); border-radius: 50%;
}
.ent-banner .logo-xl { height: 84px; width: auto; background: #fff; padding: 8px; border-radius: 16px; }
.info-list dt { color: var(--green-dark); font-weight: 600; }
.info-list dd { margin-bottom: .55rem; }

/* ------------------------------------------------------------------ */
/* DASHBOARD                                                           */
/* ------------------------------------------------------------------ */
.dash-body { background: var(--gray-light); min-height: 100vh; }

.dash-topbar {
  position: sticky; top: 0; z-index: 1030; background: #fff;
  box-shadow: 0 1px 10px rgba(20, 83, 45, .08); padding: .55rem 1.15rem;
  display: flex; align-items: center; gap: 1rem; min-height: 60px;
}
.dash-topbar .btn-icon {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid #E7ECE9;
  background: #fff; color: var(--green-main); display: inline-flex; align-items: center; justify-content: center;
  position: relative; transition: all .18s ease; text-decoration: none;
}
.dash-topbar .btn-icon:hover { background: var(--green-light); }
.dash-topbar .btn-icon .notif-dot {
  position: absolute; top: -5px; right: -5px; background: var(--red-critical); color: #fff;
  font-size: .62rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.user-chip { display: flex; align-items: center; gap: .65rem; }
.user-chip .avatar {
  width: 40px; height: 40px; border-radius: 12px; background: var(--green-main); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.user-chip .u-name { font-weight: 600; color: var(--green-dark); line-height: 1.1; font-size: .86rem; }
.user-chip .u-role { font-size: .72rem; color: var(--gold); font-weight: 600; }

.dash-sidebar {
  width: 262px; min-height: calc(100vh - 60px); background: var(--green-dark);
  padding: 1.1rem .85rem 2.2rem; position: sticky; top: 60px; overflow-y: auto;
}
.dash-sidebar .side-label {
  color: rgba(255, 255, 255, .45); font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin: 1.1rem .65rem .45rem;
}
.dash-sidebar .side-link {
  display: flex; align-items: center; gap: .7rem; color: #D9E6DD; padding: .56rem .75rem;
  border-radius: 10px; margin-bottom: .18rem; font-size: .88rem; transition: all .16s ease;
}
.dash-sidebar .side-link i { width: 20px; text-align: center; font-size: 1rem; }
.dash-sidebar .side-link:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.dash-sidebar .side-link.active {
  background: var(--gold); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(201, 162, 39, .35);
}
.dash-content { padding: 1.6rem 1.7rem 2.5rem; }

.stat-card {
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
  padding: 1.15rem 1.25rem; display: flex; align-items: center; gap: 1rem; height: 100%;
  border: 1px solid #EDF1EE; transition: transform .18s ease;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .sc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; background: var(--green-light); color: var(--green-main); flex-shrink: 0;
}
.stat-card.gold .sc-icon { background: var(--gold-soft); color: var(--gold); }
.stat-card.red .sc-icon { background: #FDE8E8; color: var(--red-critical); }
.stat-card .sc-value { font-size: 1.45rem; font-weight: 800; color: var(--green-dark); line-height: 1.05; }
.stat-card .sc-label { font-size: .76rem; color: #7a857e; font-weight: 600; }
a.stat-card { text-decoration: none; }

.quick-access .qa-btn {
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  padding: 1rem .5rem; border-radius: var(--radius); background: #fff; border: 1px solid #EDF1EE;
  font-size: .78rem; font-weight: 600; color: var(--green-dark); text-decoration: none;
  box-shadow: var(--shadow-sm); transition: all .18s ease; height: 100%;
}
.quick-access .qa-btn i { font-size: 1.4rem; color: var(--green-main); }
.quick-access .qa-btn:hover { border-color: var(--gold); transform: translateY(-3px); }

.activity-item { display: flex; gap: .8rem; padding: .65rem 0; border-bottom: 1px dashed #E7ECE9; }
.activity-item:last-child { border-bottom: none; }
.activity-item .ai-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--green-light); color: var(--green-main);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .95rem;
}
.activity-item .ai-text { font-size: .82rem; }

.table thead th {
  background: var(--green-light); color: var(--green-dark); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em; border-bottom: none; white-space: nowrap;
}
.table td { vertical-align: middle; font-size: .87rem; }
.table-hover tbody tr:hover { background: #F7FBF8; }

.filter-bar {
  background: #fff; border: 1px solid #EDF1EE; border-radius: var(--radius);
  padding: 1rem 1.15rem; margin-bottom: 1.2rem; box-shadow: var(--shadow-sm);
}
.filter-bar .form-label { font-size: .74rem; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }

.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(720px 340px at 90% 0%, rgba(201, 162, 39, .16), transparent 60%),
    linear-gradient(150deg, var(--green-dark) 0%, #0E3D21 100%);
  padding: 1.5rem;
}
.login-card {
  width: 100%; max-width: 440px; background: #fff; border-radius: 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .3); overflow: hidden;
}
.login-card .lc-top { background: var(--green-light); padding: 1.8rem 2rem 1.35rem; text-align: center; }
.login-card .lc-top img { height: 62px; }
.login-card .lc-body { padding: 1.9rem 2rem 2.1rem; }
.login-card .form-control { border-radius: 10px; padding: .65rem .9rem; border: 1.5px solid #E2E8E4; }
.login-card .form-control:focus { border-color: var(--green-main); box-shadow: 0 0 0 .2rem rgba(22, 101, 52, .12); }
.login-card .input-icon { position: relative; }
.login-card .input-icon i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: #9aa8a0; }
.login-card .input-icon .form-control { padding-left: 2.6rem; }

/* Form umum dashboard */
.form-label.required::after { content: " *"; color: var(--red-critical); }
.form-control, .form-select { border-radius: 9px; }
.card .card-body { padding: 1.25rem 1.35rem; }

/* Pagination */
.pagination { --bs-pagination-active-bg: var(--green-main); --bs-pagination-active-border-color: var(--green-main); --bs-pagination-color: var(--green-main); }

/* Notifikasi dropdown */
.notif-menu { width: 350px; max-height: 420px; overflow-y: auto; border-radius: 14px; border: none; box-shadow: var(--shadow-md); }
.notif-menu .n-item { display: flex; gap: .7rem; padding: .7rem .9rem; border-bottom: 1px solid #F0F3F1; font-size: .83rem; }
.notif-menu .n-item.unread { background: #F4FBF5; }
.notif-menu .n-item .n-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--green-light); color: var(--green-main); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Invoice / kwitansi cetak */
.print-doc { background: #fff; max-width: 860px; margin: 0 auto; padding: 40px 46px; }
.print-doc .pd-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--green-main); padding-bottom: 14px; }
.print-doc .pd-head img { height: 74px; }
.print-doc .pd-brand h3 { margin: 0; color: var(--green-dark); }
.print-doc .pd-title {
  text-align: center; margin: 22px 0 6px; font-weight: 800; color: var(--green-dark);
  font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase;
}
.print-doc table.items { width: 100%; border-collapse: collapse; margin-top: 14px; }
.print-doc table.items th { background: var(--green-light); color: var(--green-dark); padding: 9px 10px; font-size: .8rem; text-align: left; }
.print-doc table.items td { padding: 8px 10px; border-bottom: 1px solid #E8EDEA; font-size: .85rem; }
.print-doc table.items .num { text-align: right; }
.print-doc .pd-totals { margin-left: auto; width: 320px; margin-top: 12px; }
.print-doc .pd-totals .row-t { display: flex; justify-content: space-between; padding: 5px 10px; font-size: .87rem; }
.print-doc .pd-totals .row-t.grand { background: var(--green-dark); color: #fff; font-weight: 700; border-radius: 8px; }
.print-doc .pd-sign { margin-top: 44px; display: flex; justify-content: flex-end; }
.print-doc .pd-sign .sign-box { text-align: center; width: 250px; }
.print-doc .pd-sign .sign-line { border-top: 1.5px solid #333; margin-top: 64px; padding-top: 6px; font-size: .85rem; }
.print-doc .receipt-amount {
  border: 2px solid var(--gold); border-radius: 10px; background: var(--gold-soft);
  padding: 10px 16px; display: inline-block; font-weight: 700; color: var(--green-dark); margin: 12px 0;
}

@media print {
  body { background: #fff; }
  .no-print, .dash-topbar, .dash-sidebar, .site-navbar, .site-footer { display: none !important; }
  .print-doc { padding: 10px 6px; max-width: none; }
  .dash-content { padding: 0 !important; }
}

/* Responsif */
@media (max-width: 991.98px) {
  .dash-sidebar {
    position: fixed; z-index: 1040; top: 60px; left: -280px; transition: left .25s ease;
    min-height: calc(100vh - 60px);
  }
  .dash-sidebar.show { left: 0; box-shadow: 20px 0 50px rgba(0, 0, 0, .25); }
  .sidebar-backdrop { position: fixed; inset: 60px 0 0 0; background: rgba(0, 0, 0, .35); z-index: 1035; }
  .dash-content { padding: 1.1rem 1rem 2.2rem; }
  .hero-inner { padding: 3.2rem 0 4.4rem; }
  .section { padding: 2.8rem 0; }
}
