/* ==========================================================================
   LDP v6.0 — INTERNAL LEARNING CENTER
   Design system: Corporate Dark Sidebar (navy) + branding JPM (maroon/emas).
   Berkas ini dimuat PALING AKHIR sehingga menimpa style.css / admin.css lama.
   ========================================================================== */

:root {
  --v6-navy:      #0F172A;
  --v6-navy-2:    #16203a;
  --v6-navy-3:    #1e2a49;
  --v6-maroon:    #7A1220;
  --v6-maroon-2:  #9c1a2b;
  --v6-gold:      #C9A227;
  --v6-gold-2:    #e2bd44;
  --v6-bg:        #F1F5F9;
  --v6-surface:   #ffffff;
  --v6-line:      #e2e8f0;
  --v6-line-2:    #cbd5e1;
  --v6-ink:       #0f172a;
  --v6-ink-2:     #475569;
  --v6-ink-3:     #64748b;
  --v6-ok:        #15803d;
  --v6-warn:      #b45309;
  --v6-bad:       #b91c1c;
  --v6-r:         12px;
  --v6-r-lg:      18px;
  --v6-sh:        0 1px 2px rgba(15,23,42,.06), 0 8px 24px -16px rgba(15,23,42,.35);
  --v6-sh-lg:     0 24px 60px -30px rgba(15,23,42,.45);
  --v6-side:      272px;

  /* Selaraskan token lama agar komponen warisan ikut berubah. */
  --primary: #7A1220;
  --primary-600: #7A1220;
  --gold: #C9A227;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--v6-bg);
  color: var(--v6-ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { color: var(--v6-ink); letter-spacing: -.02em; line-height: 1.22; font-weight: 800; }
h1 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
h3 { font-size: 1.12rem; }
p  { color: var(--v6-ink-2); }
a  { color: var(--v6-maroon); }
.muted, .small.muted { color: var(--v6-ink-3); }

.container { width: min(1240px, 100% - 2rem); margin-inline: auto; }
.container.narrow { width: min(880px, 100% - 2rem); }

/* ---------------------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  padding: .62rem 1.05rem; font-size: .9rem; font-weight: 700; line-height: 1.1;
  text-decoration: none; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--v6-maroon); color: #fff; box-shadow: 0 10px 22px -14px rgba(122,18,32,.9); }
.btn-primary:hover { background: var(--v6-maroon-2); }
.btn-gold { background: var(--v6-gold); color: #22190a; }
.btn-gold:hover { background: var(--v6-gold-2); }
.btn-ghost { background: #fff; color: var(--v6-ink); border-color: var(--v6-line-2); }
.btn-ghost:hover { background: #f8fafc; }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-sm { padding: .42rem .78rem; font-size: .8rem; border-radius: 9px; }
.btn-lg { padding: .82rem 1.4rem; font-size: .98rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------- SURFACE/CARDS */
.panel, .card, .box, .stat-card, .adm-card {
  background: var(--v6-surface);
  border: 1px solid var(--v6-line);
  border-radius: var(--v6-r-lg);
  box-shadow: var(--v6-sh);
}
.panel { padding: clamp(1rem, .7rem + .8vw, 1.5rem); }
.eyebrow {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--v6-maroon); background: rgba(122,18,32,.08);
  padding: .28rem .6rem; border-radius: 999px; margin-bottom: .5rem;
}
.badge, .pill-tag, .tag {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700;
  padding: .22rem .55rem; border-radius: 999px; background: #eef2f7; color: var(--v6-ink-2);
}

/* --------------------------------------------------------- PUBLIC HEADER */
.v6-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--v6-navy);
  color: #fff;
  border-bottom: 3px solid var(--v6-gold);
}
.v6-header-in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.v6-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; min-width: 0; }
.v6-brand img { max-height: 40px; width: auto; display: block; }
.v6-brand-mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--v6-maroon), var(--v6-maroon-2)); color: #fff;
  font-weight: 900; font-size: .8rem; letter-spacing: .02em; flex: 0 0 auto;
}
.v6-brand-text { display: flex; flex-direction: column; min-width: 0; }
.v6-brand-text strong { font-size: .98rem; line-height: 1.15; color: #fff; }
.v6-brand-text small { font-size: .7rem; color: rgba(255,255,255,.62); letter-spacing: .04em; text-transform: uppercase; }
.v6-nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.v6-nav a.v6-link {
  color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; font-size: .88rem;
  padding: .5rem .8rem; border-radius: 9px; white-space: nowrap;
}
.v6-nav a.v6-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.v6-nav a.v6-link.is-active { color: #fff; background: rgba(201,162,39,.18); box-shadow: inset 0 -2px 0 var(--v6-gold); }
.v6-nav .v6-cta { margin-left: .5rem; }
.v6-burger {
  display: none; margin-left: auto; width: 42px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.v6-burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }
@media (max-width: 940px) {
  .v6-burger { display: flex; }
  .v6-nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--v6-navy); flex-direction: column;
    align-items: stretch; gap: .15rem; padding: .8rem 1rem 1.2rem; border-bottom: 3px solid var(--v6-gold);
    display: none;
  }
  .v6-nav.is-open { display: flex; }
  .v6-nav a.v6-link { padding: .75rem .9rem; font-size: .95rem; }
  .v6-nav .v6-cta { margin: .5rem 0 0; }
}

/* --------------------------------------------------------- PUBLIC FOOTER */
.v6-footer { background: var(--v6-navy); color: rgba(255,255,255,.72); margin-top: 3rem; }
.v6-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .7rem; }
.v6-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.v6-footer a:hover { color: var(--v6-gold); }
.v6-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 2.4rem 0; }
.v6-footer p, .v6-footer li { color: rgba(255,255,255,.66); font-size: .87rem; }
.v6-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.v6-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: .9rem 0; font-size: .78rem;
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
}
@media (max-width: 800px) { .v6-footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ----------------------------------------------------------- HOME / HERO */
.v6-hero {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(201,162,39,.22), transparent 60%),
    radial-gradient(700px 400px at 5% 110%, rgba(122,18,32,.45), transparent 60%),
    var(--v6-navy);
  color: #fff; padding: clamp(2.4rem, 1.5rem + 3vw, 4.4rem) 0;
}
.v6-hero h1 { color: #fff; max-width: 20ch; }
.v6-hero p { color: rgba(255,255,255,.76); max-width: 58ch; }
.v6-hero .eyebrow { background: rgba(201,162,39,.16); color: var(--v6-gold-2); }
.v6-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.2rem; align-items: center; }
.v6-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.v6-hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--v6-r-lg); padding: 1.2rem; backdrop-filter: blur(6px);
}
.v6-hero-card h3 { color: #fff; font-size: .95rem; margin: 0 0 .8rem; }
.v6-metric { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.v6-metric div { background: rgba(255,255,255,.05); border-radius: 12px; padding: .8rem .9rem; }
.v6-metric b { display: block; font-size: 1.45rem; color: var(--v6-gold-2); line-height: 1.1; }
.v6-metric span { font-size: .74rem; color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .v6-hero-grid { grid-template-columns: 1fr; } }

.v6-section { padding: clamp(2rem, 1.4rem + 2vw, 3.2rem) 0; }
.v6-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.v6-sec-head h2 { margin: 0; }
.v6-grid { display: grid; gap: 1rem; }
.v6-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.v6-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.v6-tile {
  display: flex; gap: .85rem; align-items: flex-start; padding: 1.05rem 1.1rem; text-decoration: none;
  background: #fff; border: 1px solid var(--v6-line); border-radius: var(--v6-r-lg);
  box-shadow: var(--v6-sh); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.v6-tile:hover { transform: translateY(-3px); box-shadow: var(--v6-sh-lg); border-color: var(--v6-line-2); }
.v6-tile .ic {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center;
  background: rgba(122,18,32,.08); color: var(--v6-maroon); font-size: 1.05rem;
}
.v6-tile strong { display: block; color: var(--v6-ink); font-size: .95rem; }
.v6-tile span { font-size: .82rem; color: var(--v6-ink-3); }

/* Kartu pelatihan / artikel */
.card, .program-card, .berita-card { overflow: hidden; }
.card img, .program-card img, .berita-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; display: block; }
.card-body { padding: 1rem 1.1rem 1.15rem; }
.price, .price-big { display: none !important; }

/* -------------------------------------------------------------- TABLES */
.table-wrap, .table-scroll { overflow-x: auto; border-radius: var(--v6-r); }
table.table, .panel table, .adm-content table, table.data {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: .87rem; background: #fff;
}
table.table th, .panel table th, .adm-content table th, table.data th {
  background: #f8fafc; color: var(--v6-ink-2); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--v6-line);
  white-space: nowrap;
}
table.table td, .panel table td, .adm-content table td, table.data td {
  padding: .7rem .8rem; border-bottom: 1px solid #eef2f7; vertical-align: middle;
}
tbody tr:hover td { background: #fbfcfe; }

/* --------------------------------------------------------------- FORMS */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: .62rem .78rem; border-radius: 10px; border: 1px solid var(--v6-line-2);
  background: #fff; color: var(--v6-ink); font: inherit; font-size: .9rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--v6-maroon); box-shadow: 0 0 0 3px rgba(122,18,32,.12);
}
label { display: block; font-size: .82rem; font-weight: 700; color: var(--v6-ink-2); margin-bottom: .8rem; }
label input, label select, label textarea { margin-top: .32rem; font-weight: 400; }

/* ============================ LMS APP SHELL ============================ */
body.v6-app { background: var(--v6-bg); }
.v6-shell { display: flex; min-height: 100vh; }
.v6-side {
  width: var(--v6-side); flex: 0 0 var(--v6-side); background: var(--v6-navy); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.v6-side-brand {
  display: flex; align-items: center; gap: .65rem; padding: 1.05rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none; color: #fff;
}
.v6-side-brand img { max-height: 34px; }
.v6-side-brand small { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.v6-side-nav { flex: 1 1 auto; overflow-y: auto; padding: .9rem .7rem; display: grid; gap: .18rem; align-content: start; }
.v6-side-group {
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.38);
  padding: .9rem .7rem .35rem;
}
.v6-side-nav a {
  display: flex; align-items: center; gap: .65rem; padding: .62rem .75rem; border-radius: 10px;
  color: rgba(255,255,255,.76); text-decoration: none; font-size: .88rem; font-weight: 600;
}
.v6-side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.v6-side-nav a.is-active {
  background: linear-gradient(90deg, rgba(201,162,39,.22), rgba(201,162,39,.04));
  color: #fff; box-shadow: inset 3px 0 0 var(--v6-gold);
}
.v6-side-nav a .ico, .v6-side-nav a svg { flex: 0 0 auto; opacity: .9; }
.v6-side-foot { padding: .85rem 1rem; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: .4rem; }
.v6-side-foot a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .82rem; }
.v6-side-foot a:hover { color: var(--v6-gold); }

.v6-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.v6-top {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v6-line); display: flex; align-items: center; gap: .9rem;
  padding: .7rem clamp(1rem, .6rem + 1.2vw, 1.7rem); min-height: 62px;
}
.v6-top .v6-top-title { min-width: 0; }
.v6-top .v6-top-title .crumb { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--v6-ink-3); }
.v6-top .v6-top-title h1 { font-size: 1.05rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v6-top-user { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.v6-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--v6-maroon); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.v6-top-user small { display: block; color: var(--v6-ink-3); font-size: .72rem; }
.v6-top-user strong { font-size: .85rem; }
.v6-content { padding: clamp(1rem, .7rem + 1.2vw, 1.8rem); flex: 1 1 auto; }
.v6-content > .container { width: 100%; }
.v6-sidetoggle {
  display: none; width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--v6-line-2);
  background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.v6-sidetoggle span { width: 17px; height: 2px; background: var(--v6-ink); border-radius: 2px; }
.v6-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 55; }
@media (max-width: 1024px) {
  .v6-sidetoggle { display: flex; }
  .v6-side { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; }
  .v6-side.is-open { transform: none; }
  .v6-backdrop.is-open { display: block; }
}

/* Statistik ringkas dalam app shell */
.v6-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; }
.v6-stat { background: #fff; border: 1px solid var(--v6-line); border-radius: var(--v6-r-lg); padding: 1rem 1.1rem; box-shadow: var(--v6-sh); }
.v6-stat b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--v6-ink); }
.v6-stat span { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--v6-ink-3); }

/* Progress bar */
.progress, .bar, .progress-track { background: #e6ebf2; border-radius: 999px; overflow: hidden; height: 8px; }
.progress > *, .bar > *, .progress-track > * { background: linear-gradient(90deg, var(--v6-maroon), var(--v6-gold)); height: 100%; display: block; }

/* Auth screen (login karyawan) */
.auth-wrap, .v6-auth {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
  background:
    radial-gradient(760px 420px at 85% 0%, rgba(201,162,39,.18), transparent 60%),
    radial-gradient(620px 420px at 0% 100%, rgba(122,18,32,.5), transparent 60%),
    var(--v6-navy);
}
.auth-wrap .container { width: min(440px, 100%); }
.auth-card {
  width: min(440px, 100%); margin: 0 auto; background: #fff; border-radius: 20px;
  padding: clamp(1.5rem, 1rem + 2vw, 2.3rem); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.4); text-align: left;
}
.auth-card h1 { font-size: 1.5rem; margin: .2rem 0 .3rem; }
.auth-card .center { text-align: left; }
.auth-card form { margin-top: 1rem; display: grid; gap: .2rem; }
.auth-note { font-size: .82rem; margin-top: .8rem; }
.auth-links { display: flex; justify-content: space-between; gap: .6rem; }

/* Sembunyikan elemen publik yang tidak relevan untuk sistem internal */
.wa-float, .topbar { display: none !important; }

/* ========================= ADMIN — DARK SIDEBAR ========================= */
body.admin { background: var(--v6-bg); }
.adm-shell { background: var(--v6-bg); }
.adm-side { background: var(--v6-navy) !important; color: #fff; border-right: 0 !important; }
.adm-brand { color: #fff !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; font-weight: 800; }
.adm-brand small { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 600; }
.adm-side .nav-group {
  color: rgba(255,255,255,.38) !important; font-size: .63rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 1rem .95rem .35rem; background: transparent !important;
}
.adm-side nav a {
  color: rgba(255,255,255,.76) !important; border-radius: 10px; margin: 0 .55rem; padding: .55rem .7rem !important;
  font-size: .85rem; font-weight: 600; border-left: 0 !important; display: flex; align-items: center; gap: .55rem;
}
.adm-side nav a:hover { background: rgba(255,255,255,.07) !important; color: #fff !important; }
.adm-side nav a.active {
  background: linear-gradient(90deg, rgba(201,162,39,.24), rgba(201,162,39,.04)) !important;
  color: #fff !important; box-shadow: inset 3px 0 0 var(--v6-gold);
}
.adm-side nav a .pill { background: var(--v6-maroon-2); color: #fff; margin-left: auto; font-size: .68rem; padding: .1rem .45rem; border-radius: 999px; }
.adm-side-foot { border-top: 1px solid rgba(255,255,255,.1) !important; }
.adm-side-foot a { color: rgba(255,255,255,.7) !important; }
.adm-side-foot a:hover { color: var(--v6-gold) !important; }
.adm-top {
  background: rgba(255,255,255,.93) !important; backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v6-line) !important; box-shadow: none !important;
}
.adm-title h1 { font-size: 1.08rem; margin: 0; }
.adm-title .crumb { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--v6-ink-3); }
.adm-avatar { background: var(--v6-maroon) !important; color: #fff !important; }
.adm-content { padding: clamp(1rem, .7rem + 1vw, 1.7rem) !important; }
.adm-content .panel, .adm-content .card { border-radius: var(--v6-r-lg); }

/* Flash / alert */
.flash, .alert { border-radius: 12px; padding: .75rem 1rem; font-size: .87rem; border: 1px solid var(--v6-line); background: #fff; }
.flash.success, .alert.success { border-color: #bbf7d0; background: #f0fdf4; color: #14532d; }
.flash.error, .alert.error { border-color: #fecaca; background: #fef2f2; color: #7f1d1d; }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-in, .no-js [data-reveal] { opacity: 1; transform: none; }

@media print { .v6-side, .v6-top, .v6-header, .v6-footer { display: none !important; } }
