/* RIVERHUT — admin dashboard styles (functional, dense)
   Same brand tokens as the public site. Light theme, locked. */

:root {
  --sand-50:  #faf7f0;
  --sand-100: #f4eee1;
  --sand-200: #e9dfc9;
  --ocean-950: #07242f;
  --ocean-900: #0b3a4a;
  --ocean-800: #0e4a5e;
  --ocean-700: #1a5d73;
  --ocean-100: #e6eef1;
  --green-600: #0f766e;
  --green-700: #115e59;
  --green-100: #ccfbf1;
  --ink:   #10242e;
  --muted: #4c616b;
  --white: #ffffff;
  --line:  rgba(11, 58, 74, .12);
  --amber-100: #fdf3dd;
  --amber-700: #9a6a1f;
  --red-100:  #fdecea;
  --red-700:  #b3261e;
  --blue-100: #e4eef6;
  --blue-700: #1a5d73;
  --r-card: 14px;
  --r-input: 9px;
  --r-pill: 999px;
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgba(7,36,47,.05), 0 3px 10px rgba(7,36,47,.05);
  --shadow-md: 0 2px 4px rgba(7,36,47,.05), 0 10px 30px rgba(7,36,47,.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--sand-50); -webkit-font-smoothing: antialiased; }
a { color: var(--green-600); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; border-radius: 4px; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(1000px 600px at 80% 10%, var(--ocean-800), transparent 60%), radial-gradient(800px 600px at 10% 100%, #123f4f, transparent 60%), var(--ocean-950); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; padding: 40px 36px; box-shadow: var(--shadow-md); }
.login-card .brand { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: .06em; color: var(--ink); display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.login-card .brand em { font-style: normal; color: var(--green-600); }
.login-card .brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--green-600); display: inline-flex; align-items: center; justify-content: center; }
.login-card .brand-mark svg { width: 21px; height: 21px; color: #fff; }
.brand-logo { height: 40px; width: auto; display: block; }
.sidebar .brand-logo { height: 32px; }
.login-card h1 { font-size: 20px; margin-bottom: 4px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.login-err { display: none; background: var(--red-100); color: var(--red-700); border-radius: var(--r-card); padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; }
.login-err.show { display: block; }

/* ---------- Layout ---------- */
.shell { display: none; min-height: 100vh; }
.shell.on { display: grid; grid-template-columns: 250px 1fr; }
.sidebar { background: var(--ocean-950); color: #fff; padding: 26px 18px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: .06em; color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; }
.sidebar .brand em { font-style: normal; color: #8fd6b4; }
.sidebar .brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--green-600); display: inline-flex; align-items: center; justify-content: center; }
.sidebar .brand-mark svg { width: 19px; height: 19px; color: #fff; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); color: rgba(255,255,255,.75); font-weight: 500; font-size: 14.5px; cursor: pointer; border: none; background: transparent; width: 100%; text-align: left; transition: background .18s, color .18s; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: var(--green-600); color: #fff; }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-item .badge { margin-left: auto; background: var(--green-600); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: var(--r-pill); padding: 2px 8px; }
.nav-item.active .badge { background: rgba(255,255,255,.22); }
.sidebar .spacer { flex: 1; }
.sidebar .back-link { color: rgba(255,255,255,.55); font-size: 13px; padding: 12px 14px; }
.sidebar .back-link:hover { color: #fff; }

.main { padding: 30px 36px 60px; max-width: 1200px; width: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.topbar h1 { font-size: 24px; font-weight: 700; }
.topbar .sub { color: var(--muted); font-size: 14px; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; white-space: nowrap; line-height: 1; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-dark { background: var(--ocean-900); color: #fff; }
.btn-dark:hover { background: var(--ocean-800); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ocean-900); }
.btn-danger { background: var(--red-100); color: var(--red-700); }
.btn-danger:hover { background: #fbd9d6; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Cards & metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.metric .lbl { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.metric .lbl svg { width: 16px; height: 16px; color: var(--green-600); }
.metric .val { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin-top: 8px; }
.metric .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 17px; font-weight: 700; }
.panel-body { padding: 20px 22px; }
.panel-body.padless { padding: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr.row-hover:hover td { background: var(--sand-50); }
td .guest { font-weight: 600; }
td .muted { color: var(--muted); font-size: 13px; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pending   { background: var(--amber-100); color: var(--amber-700); }
.pill.confirmed { background: var(--blue-100);  color: var(--blue-700); }
.pill.checkedin { background: var(--green-100); color: var(--green-700); }
.pill.completed { background: var(--ocean-100); color: var(--ocean-700); }
.pill.cancelled { background: var(--red-100);   color: var(--red-700); }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: transparent; border: 1px solid var(--line); color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 13px; padding: 7px 15px; border-radius: var(--r-pill); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ocean-900); }
.chip.active { background: var(--ocean-900); color: #fff; border-color: var(--ocean-900); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-input); font-family: var(--font-body); font-size: 14.5px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(46,125,89,.15); }
.field textarea { resize: vertical; min-height: 84px; }
.field .hint { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }

/* notice */
.notice-box { border: 1px dashed var(--line); border-radius: var(--r-card); padding: 16px 18px; background: var(--sand-50); margin-top: 6px; }

/* toast */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 60; background: var(--ocean-950); color: #fff; padding: 13px 20px; border-radius: var(--r-card); font-size: 14px; box-shadow: var(--shadow-md); transform: translateY(120%); opacity: 0; transition: transform .3s, opacity .3s; }
.toast.show { transform: none; opacity: 1; }
.toast.error { background: var(--red-700); }

/* empty state */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty svg { width: 42px; height: 42px; color: var(--sand-200); margin-bottom: 12px; }
.empty h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }

/* modal */
.modal-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(7,36,47,.55); display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; box-shadow: var(--shadow-md); padding: 28px 30px; }
.modal h2 { font-size: 19px; margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* print */
@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { position: absolute; inset: 0; padding: 20px; }
  .no-print { display: none !important; }
}

/* responsive */
@media (max-width: 900px) {
  .shell.on { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 14px; gap: 6px; }
  .sidebar .brand { padding: 0 8px 0 0; font-size: 17px; }
  .sidebar .spacer, .sidebar .back-link { display: none; }
  .nav-item { width: auto; padding: 9px 12px; font-size: 13.5px; }
  .nav-item span.nav-label { display: none; }
  .main { padding: 20px 16px 60px; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
