/* ==========================================================================
   Darmawisata Sanbe - gaya visual mengikuti poster Employee Gathering 2026
   ========================================================================== */

:root {
  --ocean: #1b87c9;
  --ocean-deep: #0b4f82;
  --ocean-dark: #073a61;
  --sky: #8fd4f2;
  --sand: #f3e2c7;
  --sand-dark: #ddc298;
  --cream: #fff9ef;
  --wood: #8b5a2b;
  --wood-dark: #6b4320;
  --maroon: #7b1e23;
  --orange: #f5a623;
  --orange-dark: #d98a0b;
  --leaf: #2e7d5b;
  --ink: #23303a;
  --ink-soft: #5d6b76;
  --line: #e5dccd;
  --danger: #c0392b;
  --success: #1f8a54;
  --warning: #b5790a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 79, 130, 0.12);
  --shadow-sm: 0 4px 14px rgba(11, 79, 130, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 15px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .5rem;
  color: var(--ocean-deep);
}

a { color: var(--ocean-deep); text-decoration: none; }
a:hover { color: var(--orange-dark); }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.container-narrow { width: min(760px, 92vw); margin-inline: auto; }

/* ------------------------------------------------------------------ navbar */

.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 239, .95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--sand-dark);
}
.navbar-inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 30px; }
.brand-text { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.02rem; color: var(--ocean-deep); line-height: 1.1; }
.brand-text small { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .68rem; font-weight: 600; color: var(--wood); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav-links a, .nav-links button {
  font-weight: 700; font-size: .87rem; padding: .45rem .8rem; border-radius: 999px;
  color: var(--ocean-deep); background: none; border: none; cursor: pointer;
  font-family: inherit;
}
.nav-links a:hover { background: rgba(27, 135, 201, .1); }
.nav-links a.active { background: var(--ocean-deep); color: #fff; }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 400px at 50% 120%, rgba(243, 226, 199, .95) 0 42%, transparent 43%),
    linear-gradient(180deg, #2ba7dd 0%, #1b87c9 45%, #57bfe6 70%, #8fd4f2 100%);
  padding: 3.2rem 0 4.5rem;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(180deg, rgba(243, 226, 199, 0) 0%, var(--sand) 65%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-plank {
  display: inline-block; background: linear-gradient(180deg, #b9793f, #8b5a2b);
  color: #fff2dd; font-family: 'Baloo 2', sans-serif; font-weight: 800;
  letter-spacing: .18em; padding: .35rem 2.2rem; border-radius: 8px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .18); text-transform: uppercase; font-size: 1rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 7vw, 4.6rem); margin: 1rem 0 .2rem;
  text-transform: uppercase; letter-spacing: .01em;
  text-shadow: 3px 4px 0 rgba(11, 79, 130, .45);
}
.hero h1 .accent { color: #ffe0c9; display: block; color: #fff; }
.hero h1 span.maroon { color: #ffd9d2; }
.hero-badges { display: inline-flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0 .4rem; }
.hero-chip {
  background: rgba(9, 40, 66, .82); color: #fff; padding: .55rem 1.15rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: .5rem;
}
.hero-chip .num { font-family: 'Baloo 2', sans-serif; font-size: 1.35rem; }
.hero-chip .mo { color: var(--orange); font-weight: 800; }
.hero-tagline { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; opacity: .95; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

.price-note {
  display: inline-block; margin-top: 1.6rem; background: #fffdf7; color: var(--maroon);
  border-radius: 6px; padding: .9rem 2.2rem; box-shadow: var(--shadow);
  transform: rotate(-1.2deg); border: 1px dashed var(--sand-dark);
}
.price-note small { display: block; font-family: 'Baloo 2', sans-serif; font-size: 1rem; color: var(--ink); font-weight: 700; }
.price-note b { font-family: 'Baloo 2', sans-serif; font-size: 2.3rem; letter-spacing: -.02em; }
.price-note .pax { background: var(--orange); color: #fff; border-radius: 4px; padding: 0 .4rem; font-size: .8rem; vertical-align: middle; }

/* ----------------------------------------------------------------- tombol */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1rem;
  padding: .6rem 1.5rem; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #4a2c00; box-shadow: 0 4px 0 var(--orange-dark); }
.btn-primary:hover { background: #ffb63c; color: #4a2c00; }
.btn-ocean { background: var(--ocean-deep); color: #fff; box-shadow: 0 4px 0 var(--ocean-dark); }
.btn-ocean:hover { background: #0d5f9c; color: #fff; }
.btn-outline { background: transparent; color: var(--ocean-deep); border: 2px solid var(--ocean-deep); }
.btn-outline:hover { background: var(--ocean-deep); color: #fff; }
.btn-light { background: #fff; color: var(--ocean-deep); box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { font-size: .84rem; padding: .34rem .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ------------------------------------------------------------------ seksi */

.section { padding: 3rem 0; }
.section-sand { background: var(--sand); }
.section-cream { background: var(--cream); }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.section-title p { color: var(--ink-soft); margin: 0; }
.kicker {
  display: inline-block; background: var(--orange); color: #4a2c00; font-weight: 800;
  padding: .15rem 1rem; border-radius: 999px; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .6rem;
}

/* ------------------------------------------------------------------- kartu */

.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); padding: 1.4rem;
}
.card + .card { margin-top: 1.2rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h3, .card-head h2 { margin: 0; font-size: 1.15rem; }
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.facility {
  background: #fff; border-radius: var(--radius); padding: 1.4rem 1.1rem; text-align: center;
  border: 2px solid var(--sand-dark); box-shadow: var(--shadow-sm);
}
.facility .ico {
  width: 62px; height: 62px; margin: 0 auto .8rem; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.9rem; color: #fff;
}
.facility:nth-child(1) .ico { background: #2f6b4f; }
.facility:nth-child(2) .ico { background: #c0392b; }
.facility:nth-child(3) .ico { background: #7a6a1e; }
.facility:nth-child(4) .ico { background: #1e3f6b; }
.facility h4 { margin: 0 0 .2rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; }
.facility p { margin: 0; font-size: .85rem; color: var(--ink-soft); }

/* -------------------------------------------------------------- statistik */

.stat {
  background: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem;
  border-left: 5px solid var(--ocean); box-shadow: var(--shadow-sm);
}
.stat .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 700; }
.stat .value { font-family: 'Baloo 2', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--ocean-deep); line-height: 1.15; }
.stat .hint { font-size: .8rem; color: var(--ink-soft); }
.stat.orange { border-left-color: var(--orange); }
.stat.green { border-left-color: var(--success); }
.stat.maroon { border-left-color: var(--maroon); }

/* ---------------------------------------------------------------- formulir */

.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: .85rem; color: var(--ink); }
label .req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date],
input[type=number], input[type=search], select, textarea {
  width: 100%; padding: .62rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(27, 135, 201, .15);
}
textarea { min-height: 84px; resize: vertical; }
.help { font-size: .78rem; color: var(--ink-soft); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 600; font-size: .88rem; }
.check input { margin-top: .28rem; }

.radio-cards { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.radio-card {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem; cursor: pointer;
  display: block; background: #fff; transition: all .12s ease;
}
.radio-card:hover { border-color: var(--ocean); }
.radio-card input { margin-right: .5rem; }
.radio-card.selected, .radio-card:has(input:checked) {
  border-color: var(--ocean); background: #f2fafe; box-shadow: var(--shadow-sm);
}
.radio-card b { font-family: 'Baloo 2', sans-serif; font-size: 1.05rem; }
.radio-card .price { font-family: 'Baloo 2', sans-serif; font-size: 1.3rem; color: var(--maroon); font-weight: 800; }
.radio-card p { margin: .2rem 0 0; font-size: .84rem; color: var(--ink-soft); }

/* ----------------------------------------------------------------- notifikasi */

.alert {
  border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1rem;
  font-size: .9rem; font-weight: 600; border-left: 4px solid;
}
.alert-success { background: #e9f7ef; color: #14603a; border-color: var(--success); }
.alert-error { background: #fdecea; color: #8c2018; border-color: var(--danger); }
.alert-info { background: #e8f4fd; color: #0b4f82; border-color: var(--ocean); }
.alert-warning { background: #fdf5e2; color: #7a5406; border-color: var(--warning); }
.alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }

.badge {
  display: inline-block; padding: .18rem .65rem; border-radius: 999px; font-size: .75rem;
  font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.badge-pending { background: #fdf0d5; color: #8a5f06; }
.badge-approved { background: #e2f5ea; color: #14603a; }
.badge-rejected { background: #fdecea; color: #8c2018; }
.badge-paid { background: #e2f5ea; color: #14603a; }
.badge-unpaid { background: #eef1f4; color: #5d6b76; }
.badge-expired { background: #f3e9e9; color: #8a4b45; }
.badge-info { background: #e8f4fd; color: #0b4f82; }
.badge-orange { background: #fdefd9; color: #915b06; }

/* --------------------------------------------------------------- tabel */

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .87rem; }
table.data th {
  background: var(--ocean-deep); color: #fff; text-align: left; padding: .6rem .7rem;
  font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
table.data td { padding: .55rem .7rem; border-top: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:hover { background: #fbf8f2; }
table.data td.num, table.data th.num { text-align: right; }
table.data td.center, table.data th.center { text-align: center; }
.table-empty { padding: 2.4rem 1rem; text-align: center; color: var(--ink-soft); }

/* --------------------------------------------------------------- langkah */

.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 1.2rem; border: 1px solid var(--line); position: relative; box-shadow: var(--shadow-sm); }
.step .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ocean-deep); color: #fff;
  display: grid; place-items: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; margin-bottom: .6rem;
}
.step h4 { margin: 0 0 .2rem; font-size: 1rem; }
.step p { margin: 0; font-size: .85rem; color: var(--ink-soft); }

/* ------------------------------------------------------------- timeline */

.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--sand-dark); }
.tl-item { position: relative; padding-bottom: 1.1rem; }
.tl-item::before {
  content: ''; position: absolute; left: -1.6rem; top: .45rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--orange); border: 3px solid var(--cream);
}
.tl-time { font-weight: 800; color: var(--ocean-deep); font-size: .85rem; }
.tl-title { font-weight: 700; }
.tl-desc { font-size: .85rem; color: var(--ink-soft); }

/* ----------------------------------------------------------------- daftar S&K */

ol.terms { padding-left: 1.2rem; margin: 0; }
ol.terms li { margin-bottom: .55rem; font-weight: 600; }

/* -------------------------------------------------------------- VA / QRIS */

.va-box {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  color: #fff; border-radius: var(--radius); padding: 1.4rem; text-align: center;
}
.va-box .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.va-number {
  font-family: 'Baloo 2', monospace; font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800;
  letter-spacing: .08em; margin: .3rem 0;
}
.va-amount { font-size: 1.2rem; font-weight: 700; }
.countdown { font-weight: 800; color: var(--orange); }

.qr-holder { display: grid; place-items: center; padding: 1rem; background: #fff; border-radius: var(--radius); border: 1px dashed var(--sand-dark); }
.qr-holder canvas, .qr-holder img { max-width: 260px; width: 100%; }

/* ----------------------------------------------------------------- footer */

.site-footer {
  background: var(--ocean-dark); color: #cfe6f5; padding: 2.4rem 0 1.4rem; margin-top: 3rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #9fd4f2; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 1.6rem; padding-top: 1rem; font-size: .82rem; text-align: center; }

/* ------------------------------------------------------------ tata letak admin */

.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 252px; flex-shrink: 0; background: var(--ocean-dark); color: #cfe6f5;
  padding: 1.2rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { padding: 0 1.2rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: .8rem; }
.sidebar .brand img { height: 26px; background: #fff; padding: 3px 6px; border-radius: 5px; }
.sidebar .brand-text { color: #fff; font-size: .95rem; }
.sidebar .brand-text small { color: #8fd4f2; }
.sidebar nav a {
  display: flex; align-items: center; gap: .6rem; padding: .58rem 1.2rem; color: #cfe6f5;
  font-weight: 600; font-size: .9rem; border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar nav a.active { background: rgba(255, 255, 255, .12); color: #fff; border-left-color: var(--orange); }
.sidebar .nav-group { padding: .9rem 1.2rem .3rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #7fb4d6; font-weight: 800; }
.admin-main { flex: 1; min-width: 0; background: #f5f7f9; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--line); padding: .8rem 1.6rem;
  display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 20;
}
.admin-topbar h1 { margin: 0; font-size: 1.25rem; }
.admin-topbar .spacer { margin-left: auto; }
.admin-body { padding: 1.6rem; }
.admin-user { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.filters .field { min-width: 150px; }

.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar .spacer { margin-left: auto; }

.inline-form { display: inline; }

.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; font-size: .9rem; }
.detail-list dt { color: var(--ink-soft); font-weight: 600; }
.detail-list dd { margin: 0; font-weight: 700; }

.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 1.2rem; flex-wrap: wrap; }
.tabs a {
  padding: .5rem 1rem; font-weight: 700; font-size: .88rem; border-bottom: 3px solid transparent;
  margin-bottom: -2px; color: var(--ink-soft);
}
.tabs a.active { color: var(--ocean-deep); border-bottom-color: var(--orange); }

/* ------------------------------------------------------------------- misc */

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
  background: linear-gradient(160deg, #1b87c9, #0b4f82 60%, #073a61); }
.auth-card { width: min(430px, 100%); background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.auth-card .brand { justify-content: center; margin-bottom: 1.2rem; }

.mono { font-family: 'Consolas', 'Courier New', monospace; }
.text-muted { color: var(--ink-soft); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.small { font-size: .82rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.6rem; }
.flex { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 1.2rem 0; }
.pill-note { background: #fff7e6; border: 1px dashed var(--orange); border-radius: var(--radius-sm); padding: .7rem 1rem; font-size: .85rem; }

.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--success)); }

@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar nav a { border-left: none; border-bottom: 3px solid transparent; padding: .5rem .9rem; }
  .sidebar nav a.active { border-left: none; border-bottom-color: var(--orange); }
  .sidebar .nav-group { display: none; }
  .admin-body { padding: 1rem; }
}

@media print {
  .navbar, .site-footer, .sidebar, .admin-topbar, .btn, .toolbar { display: none !important; }
  body { background: #fff; }
}

/* --------------------------------------------------------- banner pasang PWA */

.pwa-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  padding: 0 12px 12px; transform: translateY(120%); transition: transform .35s ease;
  pointer-events: none;
}
.pwa-banner.show { transform: translateY(0); pointer-events: auto; }
.pwa-banner-inner {
  max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(11, 79, 130, .28); border: 1px solid var(--line);
  padding: .85rem 1rem; display: flex; align-items: center; gap: .8rem;
}
.pwa-banner-icon { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; }
.pwa-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.pwa-banner-text b { font-size: .9rem; color: var(--ink); }
.pwa-banner-text span { font-size: .78rem; color: var(--ink-soft); }
.pwa-banner-actions { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.pwa-banner-close {
  background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--ink-soft);
  cursor: pointer; padding: .2rem .5rem; border-radius: 6px;
}
.pwa-banner-close:hover { background: var(--sand); color: var(--ink); }
@media (max-width: 420px) {
  .pwa-banner-text span { display: none; }
}
