/* ==========================================================================
   AA8 Corporation — shared theme (Brand UI Redesign, 2026-07)
   One dark-header / light-page system for every page. Design tokens below
   are the single source of truth; page-specific styles stay inline+minimal.
   Brand orange is reserved for primary actions / active nav; status colors
   are reserved for statuses and never reuse brand colors.
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('/vendor/manrope.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:   #292929;  /* text, header bar */
  --brown: #44362F;  /* header accent, footers, depth */
  --bg:    #f4f6fc;  /* page background */
  --line:  #e8e6e6;  /* borders, dividers, table rules */
  --brand: #ff4500;  /* primary buttons, active nav, key highlights */
  --info:  #00b2ff;  /* links, secondary buttons, info accents */
  --card:  #ffffff;  /* card surfaces */

  /* Status colors — always chip + label, never color alone */
  --ok:   #1a7f37;   /* confirmed / attended */
  --warn: #b45309;   /* waitlisted / needs review */
  --bad:  #d1242f;   /* no-show / failed */

  --muted: #5f6470;  /* derived: secondary text on light surfaces */
  --radius: 10px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--info); }
a:hover { color: #0091d4; }

/* --------------------------------------------------------------------------
   Standard header — flat ink bar, 3px brand rule, logo left, nav right.
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--brand);
  box-shadow: inset 0 -8px 24px -12px var(--brown);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 10px 28px;
}
.site-logo { display: block; line-height: 0; }
.site-logo img { width: 140px; height: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px 6px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #ffffff; }
.site-nav a.active {
  color: #ffffff;
  border-bottom-color: var(--brand);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { max-width: 1100px; margin: 0 auto; padding: 28px 24px 48px; }
.container-narrow { max-width: 560px; }

.page-title { margin: 0 0 22px; }
.page-title h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.page-title p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }

.site-footer {
  background: var(--brown);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 0.82rem;
  padding: 14px 24px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(41, 41, 41, 0.06);
}
.card + .card { margin-top: 14px; }
.card h2, .card h3 { margin-top: 0; }

/* --------------------------------------------------------------------------
   Buttons — primary (brand, sparing) / secondary (info outline) / subtle
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #ffffff; }
.btn-primary:hover:not(:disabled) { background: #d93b00; }
.btn-secondary { background: var(--card); color: #0077ad; border-color: var(--info); }
.btn-secondary:hover:not(:disabled) { background: #f0faff; }
.btn-subtle { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-subtle:hover:not(:disabled) { background: var(--bg); border-color: #d5d3d3; }
.btn-danger { background: var(--card); color: var(--bad); border-color: var(--bad); }
.btn-danger:hover:not(:disabled) { background: #fdf0f1; }
.btn-block { display: block; width: 100%; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(0, 178, 255, 0.18);
}
.form-input::placeholder, .form-textarea::placeholder { color: #a9adb8; }
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th {
  text-align: left;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 2px solid var(--line);
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table tbody tr:hover { background: #f8f9fd; }

/* --------------------------------------------------------------------------
   Status chips — reserved status colors, always with a text label
   -------------------------------------------------------------------------- */
.chip {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.chip-ok      { color: var(--ok);   background: #ebf6ee; border-color: #bfe0c8; }  /* confirmed / attended / delivered */
.chip-warn    { color: var(--warn); background: #fdf3e7; border-color: #f0d4ae; }  /* waitlisted / needs review */
.chip-bad     { color: var(--bad);  background: #fdeef0; border-color: #f2c4c9; }  /* no-show / failed / declined */
.chip-info    { color: #0077ad;     background: #eaf7ff; border-color: #b8e4fa; }  /* invited / pending / queued */
.chip-neutral { color: var(--muted); background: #f1f2f6; border-color: var(--line); } /* dry-run / generated */

/* --------------------------------------------------------------------------
   Alert banner
   -------------------------------------------------------------------------- */
.alert {
  border: 1px solid;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 16px;
}
.alert-ok   { color: var(--ok);   background: #ebf6ee; border-color: #bfe0c8; }
.alert-warn { color: var(--warn); background: #fdf3e7; border-color: #f0d4ae; }
.alert-bad  { color: var(--bad);  background: #fdeef0; border-color: #f2c4c9; }
.alert-info { color: #0077ad;     background: #eaf7ff; border-color: #b8e4fa; }

/* --------------------------------------------------------------------------
   SMS bubble preview (sessions page message rendering)
   -------------------------------------------------------------------------- */
.sms-bubble {
  background: #eef0f6;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  font-size: 0.88rem;
  white-space: pre-wrap;
  max-width: 520px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .site-header { padding: 10px 16px; justify-content: center; }
  .site-logo img { width: 118px; }
  .site-nav { justify-content: center; }
  .site-nav a { font-size: 0.86rem; padding: 7px 9px 5px; }
  .container { padding: 20px 14px 40px; }
}
