/* Cute Clinic admin — brand tokens lifted from the live site
   (Spectral body + Cormorant Garamond headings, brand green #1e4d37, warm cream).
   Hand-written + lean; same look as cuteclinic.co.uk without the Webflow bundle. */

:root {
  --green: #1e4d37;
  --green-dark: #163827;
  --cream: #f8f3ea;
  --cream-2: #fafaf7;
  --slate: #758696;
  --ink: #222;
  --line: #e6e3da;
  --white: #fff;
  --danger: #b3402f;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(30, 77, 55, .08), 0 1px 2px rgba(0, 0, 0, .04);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Spectral', Georgia, serif;
  color: var(--ink);
  background: var(--cream-2);
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--green); font-weight: 600; margin: 0 0 .4em; line-height: 1.15; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 19px; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  background: var(--green); color: #fff;
  display: flex; align-items: center; gap: 28px;
  padding: 0 28px; height: 60px;
}
.topbar .brand { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: #fff; }
.topbar nav { display: flex; gap: 22px; margin-left: 10px; }
.topbar nav a { color: rgba(255,255,255,.85); font-size: 15px; }
.topbar nav a:hover, .topbar nav a.active { color: #fff; text-decoration: none; border-bottom: 2px solid var(--cream); padding-bottom: 2px; }
.topbar .spacer { flex: 1; }
.topbar .who { color: rgba(255,255,255,.8); font-size: 13px; }
.topbar .who a { color: var(--cream); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 24px 64px; }

/* ── Cards / grid ────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 8px 0 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat { display: block; }
.stat .n { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--green); line-height: 1; }
.stat .l { color: var(--slate); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.section { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 22px; }

/* ── Tables ──────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-family: 'Spectral'; font-weight: 600; color: var(--slate); font-size: 12px;
     text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 2px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
tr:hover td { background: var(--cream); }
td a { font-weight: 600; }

/* ── Pills / status ──────────────────────────────────────── */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
        background: var(--cream); color: var(--green); border: 1px solid var(--line); white-space: nowrap; }
.pill.enquiry         { background: #eef2f4; color: #51606e; }
.pill.pre_sale        { background: #eef2f4; color: #51606e; }
.pill.awaiting_payment{ background: #fdeede; color: #9a5a16; }
.pill.booked          { background: #e9f1ec; color: var(--green); }
.pill.consulted       { background: #fdf6e9; color: #8a6d2f; }
.pill.plan            { background: #f0ece4; color: #6b5a3a; }
.pill.plan_sent       { background: #eaf3ee; color: var(--green); }
.pill.tests           { background: #e7eef3; color: #355a73; }
.pill.follow_up       { background: #efeaf3; color: #5a3a73; }
.pill.active          { background: var(--green); color: #fff; }
.pill.closed, .pill.lost { background: #f1efe9; color: #8a8a8a; }
.star { color: #d9a441; }

/* ── Buttons / forms ─────────────────────────────────────── */
.btn { display: inline-block; background: var(--green); color: #fff; border: 1px solid var(--green);
       padding: 9px 16px; border-radius: var(--radius); font-family: 'Spectral'; font-size: 14px; cursor: pointer; }
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--green); }
.btn.ghost:hover { background: var(--cream); }
.btn.danger { background: #fff; color: var(--danger); border-color: #e3b5ad; }
.btn.sm { padding: 5px 11px; font-size: 13px; }
label { display: block; font-size: 13px; color: var(--slate); margin: 12px 0 4px; }
input, select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #d6d2c7; border-radius: 8px;
  font-family: 'Spectral'; font-size: 15px; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.muted { color: var(--slate); }
.err { color: var(--danger); font-size: 14px; }

/* ── Timeline ────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 20px; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px;
                       border-radius: 50%; background: var(--green); }
.timeline .t-type { font-weight: 600; color: var(--green); font-size: 13px; }
.timeline .t-when { color: var(--slate); font-size: 12px; }
.timeline .t-body { font-size: 14px; }

/* ── Login ───────────────────────────────────────────────── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--green); }
.login-card { background: #fff; border-radius: 14px; padding: 36px 34px; width: 360px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.login-card h1 { text-align: center; }

/* ── Kanban board ────────────────────────────────────────── */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; align-items: flex-start; }
.board .col { flex: 0 0 220px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 80px; }
.board .col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.board .col.drag-over { outline: 2px dashed var(--green); }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow); }
.kcard:hover { border-color: var(--green); }
.kcard strong { display: block; color: var(--green); }
.kcard .muted { font-size: 12px; }

.flex { display: flex; gap: 24px; align-items: flex-start; }
.flex .col { flex: 1; min-width: 0; }
.kv { margin: 0; }
.kv div { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv div span:first-child { color: var(--slate); width: 120px; flex: none; }
