/* =========================================================
   RentalKu — Design System
   Palet: biru baja (trust) + aksen kuning keemasan (aksi)
   Signature: badge status berbentuk "tag gantung" (notch bulat)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* --- Warna --- */
  --ink:        #10131A;
  --ink-soft:   #4B5568;
  --canvas:     #F5F6F8;
  --surface:    #FFFFFF;
  --border:     #E3E6EC;

  --primary:       #2A4B7C;
  --primary-dark:  #16305A;
  --primary-soft:  #EAF0F9;

  --accent:      #E0A339;
  --accent-dark: #B87F1F;

  --success: #2E9B6B; --success-soft: #E7F5EE;
  --info:    #3E7CB1; --info-soft:    #E9F2F9;
  --warning: #E0A339; --warning-soft: #FBF1DD;
  --danger:  #D14343; --danger-soft:  #FBEAEA;
  --muted:   #8A93A6; --muted-soft:   #EEF0F3;

  /* --- Tipografi --- */
  --font-ui:   'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* --- Radius & shadow --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(16,19,26,0.04), 0 4px 16px rgba(16,19,26,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-ui);
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* ruang utk bottom nav mobile */
}

a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* --- Layout shell --- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar__brand { font-weight: 800; font-size: 17px; color: var(--primary-dark); }
.topbar__brand span { color: var(--accent); }
.topbar__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(12, 86, 182, 0.18);
}
.topbar__account svg {
  width: 20px;
  height: 20px;
}
.topbar__account:hover { opacity: 0.92; }

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 16px 24px;
}

.page__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.page__title { font-size: 21px; }
.page__subtitle { color: var(--ink-soft); font-size: 13.5px; margin-top: 2px; }

/* --- Card --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px;
  margin-bottom: 14px;
}
.card--flush { padding: 0; overflow: hidden; }

.grid { display: grid; gap: 14px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.stat__label { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.stat__value { font-size: 26px; font-weight: 800; margin-top: 4px; font-family: var(--font-mono); }
.stat__value.accent { color: var(--primary); }

/* --- Signature: status tag (bentuk label gantung) --- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  padding: 4px 10px 4px 8px;
  border-radius: 0 6px 6px 0;
  position: relative;
}
.tag__notch {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.tag--success { background: var(--success-soft); color: var(--success); }
.tag--info    { background: var(--info-soft);    color: var(--info); }
.tag--warning { background: var(--warning-soft);  color: var(--accent-dark); }
.tag--danger  { background: var(--danger-soft);   color: var(--danger); }
.tag--muted   { background: var(--muted-soft);    color: var(--muted); }

/* --- Form choices --- */
.business-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.business-type-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .15s ease, color .2s ease;
  user-select: none;
  text-align: center;
}
.business-type-option:hover,
.business-type-option:focus-within {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 8px 20px rgba(42, 75, 124, 0.08);
  transform: translateY(-1px);
}
.business-type-option:active {
  transform: translateY(0) scale(0.99);
}
.business-type-option.is-selected {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #f8fbff 100%);
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: 0 0 0 1px var(--primary) inset, 0 8px 18px rgba(42, 75, 124, 0.12);
}
.business-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.business-type-option .option-title {
  font-weight: 700;
  line-height: 1.3;
}
.business-type-option .option-description {
  color: var(--ink-soft);
  line-height: 1.4;
  font-weight: 400;
  font-size: 11px;
}
.business-type-option.is-selected .option-description {
  color: var(--primary-dark);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-ui); font-weight: 600; font-size: 14.5px;
  padding: 11px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--accent { background: var(--accent); color: #2b1c00; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn--ghost:hover { background: var(--primary-soft); }
.btn--danger { background: var(--danger-soft); color: var(--danger); }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 12px; font-size: 13px; }

/* --- Forms --- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-ui); font-size: 15px;
  padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field-hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }

/* --- Checkbox field (agree / consent) --- */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.checkbox-field input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-field label {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-field label a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Form Validation --- */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger) !important;
  background-color: #FFF8F8;
  box-shadow: 0 0 0 3px var(--danger-soft) !important;
}
.checkbox-field.is-invalid {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  border: 1px solid rgba(209, 67, 67, 0.3);
}
.business-type-field.is-invalid {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  border: 1px solid rgba(209, 67, 67, 0.3);
}
.field-error {
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  animation: fieldErrorSlide 0.15s ease-out;
}
@keyframes fieldErrorSlide {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}


/* --- Auth screen --- */
.auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background:
    radial-gradient(circle at 15% 10%, var(--primary-soft), transparent 45%),
    var(--canvas);
}
.auth-card { width: 100%; max-width: 380px; }
.auth-logo { text-align: center; margin-bottom: 22px; }
.auth-logo strong { font-size: 22px; color: var(--primary-dark); }
.auth-logo strong span { color: var(--accent); }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: var(--muted-soft); padding: 4px; border-radius: var(--radius-sm); }
.auth-tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.auth-tabs a.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-card); }

/* --- Alert / flash --- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px; }
.alert--success { background: var(--success-soft); color: var(--success); }
.alert--danger  { background: var(--danger-soft);  color: var(--danger); }
.alert--warning { background: var(--warning-soft); color: var(--accent-dark); }

/* --- Trial banner --- */
.trial-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 14px 16px; border-radius: var(--radius-md);
  margin-bottom: 16px; flex-wrap: wrap;
}
.trial-banner__days { font-family: var(--font-mono); font-size: 20px; font-weight: 700; }
.trial-banner small { opacity: 0.85; }

/* --- Table (dipakai di dashboard admin, desktop-friendly) --- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-soft); padding: 10px 14px; border-bottom: 1px solid var(--border);
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }

/* --- List item aset (mobile card list) --- */
.item-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  gap: 12px;
}
.item-row:last-child { border-bottom: none; }
.item-row__name { font-weight: 600; }
.item-row__code { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }

/* --- Bottom nav (tampil di layar mobile / webview) --- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 10px;
}
.bottom-nav a.active { color: var(--primary); background: var(--primary-soft); }
.bottom-nav svg { width: 20px; height: 20px; }

/* --- Sidebar (dipakai di dashboard admin layar lebar) --- */
@media (min-width: 860px) {
  body.has-sidebar { padding-bottom: 0; }
  .admin-shell { display: flex; min-height: 100vh; }
  .sidebar {
    width: 220px; flex-shrink: 0; background: var(--primary-dark); color: #fff;
    padding: 20px 14px; position: sticky; top: 0; height: 100vh;
  }
  .sidebar__brand { font-weight: 800; font-size: 17px; margin-bottom: 24px; padding: 0 8px; }
  .sidebar__brand span { color: var(--accent); }
  .sidebar a {
    display: block; padding: 10px 12px; border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 500; margin-bottom: 2px;
  }
  .sidebar a.active, .sidebar a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .admin-main { flex: 1; min-width: 0; }
  .bottom-nav { display: none; }
}
@media (max-width: 859px) {
  .sidebar { display: none; }
}

/* =========================================================
   Tenant Shell — Sidebar layar lebar + bottom nav mobile
   ========================================================= */

/* Mobile: tampilkan topbar mobile, sembunyikan topbar desktop */
.topbar--desktop { display: none; }
.topbar--mobile  { display: flex; }

/* Struktur dasar: full height, tidak ada padding-bottom di desktop */
.tenant-shell {
  display: flex;
  min-height: 100vh;
}
.tenant-main {
  flex: 1;
  min-width: 0;
}

/* Sidebar tenant (tersembunyi di mobile) */
.tenant-sidebar {
  display: none;
}

@media (min-width: 860px) {
  /* Di layar lebar: aktifkan sidebar, sembunyikan bottom nav & topbar mobile */
  body.tenant-shell-body { padding-bottom: 0; }

  .topbar--mobile  { display: none; }
  .topbar--desktop { display: flex; }

  .bottom-nav { display: none !important; }

  .tenant-sidebar {
    display: flex;
    flex-direction: column;
    width: 230px;
    flex-shrink: 0;
    background: var(--primary-dark);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 25;
  }

  .tenant-sidebar__header {
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
    flex-shrink: 0;
  }
  .tenant-sidebar__brand {
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
  }
  .tenant-sidebar__brand span { color: var(--accent); }
  .tenant-sidebar__tenant {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tenant-sidebar__role {
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
  }

  .tenant-sidebar__trial {
    margin: 0 0 8px;
    background: rgba(224,163,57,0.15);
    border: 1px solid rgba(224,163,57,0.35);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
  }
  .tenant-sidebar__trial-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .tenant-sidebar__trial-days {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
  }

  .tenant-sidebar__nav {
    flex: 1;
    padding: 4px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Sembunyikan scrollbar di semua browser */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE / Edge lama */
  }
  .tenant-sidebar__nav::-webkit-scrollbar {
    display: none;               /* Chrome / Safari / WebView */
  }
  .tenant-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 1px;
    transition: background .12s ease, color .12s ease;
  }
  .tenant-sidebar__nav a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.8;
  }
  .tenant-sidebar__nav a:hover {
    background: rgba(255,255,255,0.09);
    color: #fff;
  }
  .tenant-sidebar__nav a:hover svg { opacity: 1; }
  .tenant-sidebar__nav a.active {
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-weight: 600;
  }
  .tenant-sidebar__nav a.active svg { opacity: 1; }

  .tenant-sidebar__section {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.35);
    padding: 14px 10px 5px;
  }

  /* Footer fix di paling bawah, tidak terpengaruh scroll */
  .tenant-sidebar__footer {
    flex-shrink: 0;
    padding: 12px 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
  }

  /* Konten utama di samping sidebar */
  .tenant-main {
    margin-left: 230px;
  }
  .tenant-main .page {
    max-width: 880px;
  }
}

/* =========================================================
   Landing Page (marketing, di luar shell aplikasi)
   ========================================================= */
body.landing { padding-bottom: 0; }

.landing-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.landing-nav__brand { font-weight: 800; font-size: 19px; color: var(--primary-dark); }
.landing-nav__brand span { color: var(--accent); }
.landing-nav__actions { display: flex; gap: 8px; align-items: center; }

.landing-hero {
  max-width: 1080px; margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.landing-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--primary); background: var(--primary-soft); padding: 6px 12px 6px 10px;
  border-radius: 0 6px 6px 0; margin-bottom: 16px;
}
.landing-hero h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 14px; }
.landing-hero p.lead { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 24px; max-width: 480px; }
.landing-hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag-cloud .tag { font-size: 13px; padding: 6px 14px 6px 10px; }

.hero-visual {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 20px; position: relative;
}
.hero-visual__ticket {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; border-radius: var(--radius-sm); margin-bottom: 10px;
  background: var(--canvas); border: 1px dashed var(--border);
}
.hero-visual__ticket:last-child { margin-bottom: 0; }

.landing-section { max-width: 1080px; margin: 0 auto; padding: 48px 24px; }
.landing-section__head { text-align: center; max-width: 560px; margin: 0 auto 32px; }
.landing-section__head h2 { font-size: 28px; letter-spacing: -0.01em; }
.landing-section__head p { color: var(--ink-soft); font-size: 15px; }

.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.feature-icon svg { width: 20px; height: 20px; }

.steps { counter-reset: step; }
.step-item {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-item__num {
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--primary);
  background: var(--primary-soft); width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.pricing-card { position: relative; }
.pricing-card--highlight { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow-card); }
.pricing-card__badge {
  position: absolute; top: -12px; right: 16px; background: var(--accent); color: #2b1c00;
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}

.landing-footer {
  border-top: 1px solid var(--border); padding: 28px 24px; text-align: center;
  color: var(--ink-soft); font-size: 13px;
}

/* =========================================================
   Menu Grid (3 Kolom + Icon) - Settings / Lainnya
   ========================================================= */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 576px) {
  .menu-grid {
    gap: 10px;
  }
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, background 0.18s ease;
  user-select: none;
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 75, 124, 0.3);
  box-shadow: 0 8px 24px rgba(16, 19, 26, 0.08);
  background: #FAFCFF;
}

.menu-card:active {
  transform: translateY(0) scale(0.97);
}

.menu-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--primary-soft);
  color: var(--primary);
}

.menu-card:hover .menu-card__icon {
  transform: scale(1.1);
}

.menu-card__icon svg {
  width: 24px;
  height: 24px;
}

.menu-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  word-break: break-word;
}

.menu-card--danger {
  border-color: rgba(209, 67, 67, 0.15);
}

.menu-card--danger:hover {
  border-color: rgba(209, 67, 67, 0.4);
  background: #FFFBFB;
}

.menu-card--danger .menu-card__title {
  color: var(--danger);
}

/* =========================================================
   Komponen & Utilities Tambahan (Booking, Paginasi & Layout)
   ========================================================= */

/* --- Flexbox & Alignment Helpers --- */
.flex-row { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-between-center { display: flex; justify-content: space-between; align-items: center; }
.flex-between-start  { display: flex; justify-content: space-between; align-items: flex-start; }
.flex-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.flex-actions-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* --- Spacing & Gap Utilities --- */
.gap-xs { gap: 4px; }
.gap-sm { gap: 6px; }
.gap-md { gap: 10px; }
.gap-lg { gap: 16px; }

/* --- Typography & Text Helpers --- */
.text-soft { color: var(--ink-soft); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--accent-dark); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-normal { font-weight: 400; }
.text-xs { font-size: 12.5px; }
.text-sm { font-size: 13.5px; }
.text-md { font-size: 15px; }
.text-lg { font-size: 18px; }

/* --- Sub-Heading Section --- */
.section-title { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.icon-inline { vertical-align: middle; margin-right: 4px; }

/* --- Card Empty State --- */
.card__empty {
  padding: 32px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

/* --- Booking Item Row Card --- */
.item-row--card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  transition: background .12s ease;
}
.item-row--card:hover {
  background: rgba(245, 246, 248, 0.6);
}
.item-row__items-preview {
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}
.item-row__status-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.item-row__price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-top: 2px;
}
.item-row__meta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--canvas);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.item-row__dates {
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* --- Paginasi Bar --- */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 0 4px;
  flex-wrap: wrap;
  gap: 10px;
}
.pagination-bar__info {
  font-size: 13px;
  color: var(--ink-soft);
}
.pagination-bar__controls {
  display: flex;
  gap: 6px;
}
.btn--disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* =========================================================
   Booking Detail - Workflow Stepper, Deposit & UX Enhancements
   ========================================================= */

/* --- Visual Progress Stepper --- */
.booking-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  gap: 12px;
}
.stepper__step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 140px;
  position: relative;
}
.stepper__step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 8px;
}
.stepper__step.is-complete:not(:last-child)::after {
  background: var(--success);
}
.stepper__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--canvas);
  border: 2px solid var(--border);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.stepper__step.is-active .stepper__circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.stepper__step.is-complete .stepper__circle {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}
.stepper__info {
  display: flex;
  flex-direction: column;
}
.stepper__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.stepper__step:not(.is-active):not(.is-complete) .stepper__title {
  color: var(--ink-soft);
}
.stepper__sub {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* --- Operational Guide Box --- */
.guide-box {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #f0f5fc 100%);
  border: 1px solid rgba(42, 75, 124, 0.2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.guide-box--warning {
  background: linear-gradient(135deg, var(--warning-soft) 0%, #fffdf8 100%);
  border-color: rgba(224, 163, 57, 0.3);
  border-left-color: var(--accent);
}
.guide-box--success {
  background: linear-gradient(135deg, var(--success-soft) 0%, #f4fbf7 100%);
  border-color: rgba(46, 155, 107, 0.3);
  border-left-color: var(--success);
}
.guide-box__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.guide-box__content {
  flex: 1;
}
.guide-box__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.guide-box__text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* --- Dasbor Keuangan & Deposit --- */
.fin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.fin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.fin-card--highlight {
  background: linear-gradient(135deg, var(--surface) 0%, var(--primary-soft) 100%);
  border-color: rgba(42, 75, 124, 0.25);
}
.fin-card--deposit {
  border-left: 4px solid var(--accent);
}
.fin-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.fin-card__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.fin-card__val {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--ink);
}
.fin-card__val--primary { color: var(--primary); }
.fin-card__val--success { color: var(--success); }
.fin-card__val--danger { color: var(--danger); }
.fin-card__val--warning { color: var(--accent-dark); }

.deposit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.deposit-pill--pending { background: var(--warning-soft); color: var(--accent-dark); }
.deposit-pill--paid { background: var(--success-soft); color: var(--success); }
.deposit-pill--refunded { background: var(--info-soft); color: var(--info); }
.deposit-pill--retained { background: var(--danger-soft); color: var(--danger); }
.deposit-pill--none { background: var(--muted-soft); color: var(--muted); }

/* --- Quick Action Bar --- */
.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* --- Photo Comparison Gallery --- */
.photo-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
  background: var(--canvas);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.photo-box {
  background: var(--surface);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.photo-box__title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.photo-grid-mini {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.photo-grid-mini img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: transform 0.15s ease;
}
.photo-grid-mini img:hover {
  transform: scale(1.08);
}



