/* tokens.css — design tokens from the ClipzAppointments design handoff.
   Shared by public/, dashboard/, and admin/ so the whole platform matches. */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #17140f;
  --ink-2: #211d17;
  --paper: #faf6ee;
  --paper-2: #f2ead9;
  --hairline: #e4d9c2;
  --hairline-dark: #35301f;
  --gold: #c8a24d;
  --gold-deep: #a3813a;
  --muted: #7a7263;
  --placeholder: #a19a89;

  --status-confirmed-fg: #5c7a52;
  --status-confirmed-bg: #e7ecdd;
  --status-pending-fg: #a3813a;
  --status-pending-bg: #f4e6cd;
  --status-completed-fg: #6c665a;
  --status-completed-bg: #e9e6de;
  --status-noshow-fg: #9c4a3a;
  --status-noshow-bg: #f2ded8;
  --status-cancelled-fg: #a19a89;
  --status-cancelled-bg: #ece7dc;

  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-pill: 999px;

  --font-head: 'Bodoni Moda', serif;
  --font-body: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .font-head { font-family: var(--font-head); font-weight: 600; letter-spacing: .01em; }
a { color: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s, color .12s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--hairline-dark); }
.btn-outline:hover { background: var(--paper-2); }
.btn-danger { background: var(--status-noshow-bg); color: var(--status-noshow-fg); }

.card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 20px;
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--hairline-dark); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,77,.25);
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field .error { font-size: 12.5px; color: var(--status-noshow-fg); margin-top: 5px; }

/* Pill toggle switch: 44x26 track, 20px knob, per fidelity spec. */
.toggle { position: relative; display: inline-block; width: 44px; height: 26px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .track {
  position: absolute; inset: 0; background: var(--hairline); border-radius: var(--radius-pill);
  transition: background .15s; cursor: pointer;
}
.toggle input:checked + .track { background: var(--gold); }
.toggle .knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.toggle input:checked ~ .knob { left: 21px; }

.badge {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.badge-confirmed { background: var(--status-confirmed-bg); color: var(--status-confirmed-fg); }
.badge-pending   { background: var(--status-pending-bg);   color: var(--status-pending-fg); }
.badge-completed { background: var(--status-completed-bg); color: var(--status-completed-fg); }
.badge-no_show   { background: var(--status-noshow-bg);    color: var(--status-noshow-fg); }
.badge-cancelled { background: var(--status-cancelled-bg); color: var(--status-cancelled-fg); }

.modal-scrim {
  position: fixed; inset: 0; background: rgba(23,20,15,.45);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal { background: #fff; border-radius: 14px; max-width: 440px; width: 92%; padding: 24px; }

.top-nav {
  border-bottom: 1px solid var(--hairline); background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.top-nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; color: var(--gold);
  font-family: var(--font-head); font-size: 17px;
}
