/* blupp-ui.css — shared product design system for /app, /admin, /login.
   Token source of truth: frontend/landing/blupp.css. Layout utilities come
   from Tailwind CDN; this sheet owns identity (color, shape, type accents). */

:root {
  --bg: #f4f2ec;        /* warm off-white page background */
  --bg-2: #ece8df;      /* sunken band / progress track */
  --bg-soft: #faf9f4;   /* table header / hover surface */
  --ink: #17191d;
  --ink-soft: #44494f;
  --ink-mut: #767c84;
  --ink-faint: #a8ada3;
  --line: #e0dccf;
  --line-soft: #efece2;
  --accent: #0e6e7e;
  --accent-700: #08434c;
  --accent-soft: #e2eeef;
  --accent-mid: #9ec7cc;
  --paper: #ffffff;
}

body.blupp-app {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
body.blupp-app ::selection { background: var(--accent); color: #fff; }

/* ---- buttons (pill, like the landing) ---------------------- */
.btn-ink, .btn-accent, .btn-ghost {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border-radius: 999px; padding: 0.6rem 1.25rem;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover:not(:disabled) { background: #2c2f34; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--accent-700); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink-mut); }
.btn-ink:disabled, .btn-accent:disabled, .btn-ghost:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- status badges ----------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 2px 11px;
  font-size: 11.5px; font-weight: 600; border: 1px solid;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .75; }
.badge-active { background: #f6ead2; color: #8a5a0b; border-color: #e8d5ad; }
.badge-plumber { background: #f7e3da; color: #9a3b1f; border-color: #eccdbd; }
.badge-done { background: var(--accent-soft); color: var(--accent); border-color: #c4dde0; }
.badge-neutral { background: var(--bg-2); color: var(--ink-soft); border-color: var(--line); }

/* ---- surfaces ---------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(23, 25, 29, 0.04);
  transition: border-color 150ms ease;
}
.card:hover { border-color: #d2cdba; }

/* ---- forms -------------------------------------------------- */
.field, .focus-ring {
  border: 1px solid #ddd8c9; border-radius: 12px;
  background: var(--paper); color: var(--ink);
}
.field:focus, .focus-ring:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 110, 126, 0.15);
}
.dropzone {
  border: 2px dashed var(--line); border-radius: 16px;
  background: var(--paper);
  transition: border-color 150ms ease, background 150ms ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }

/* ---- eyebrow ------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mut);
  background: none; padding: 0; margin-bottom: 0.6rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 9999px; background: var(--accent); }

/* ---- sidebar ------------------------------------------------ */
.sidebar { background: var(--bg); border-color: var(--line) !important; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.9rem; border-radius: 999px;
  color: var(--ink-soft); font-weight: 500; font-size: 0.85rem;
  transition: background 150ms ease, color 150ms ease;
  cursor: pointer;
}
.nav-item:hover { background: var(--bg-2); color: var(--ink); }
.nav-item.active { background: var(--ink); color: #fff; font-weight: 600; }
.nav-item svg { flex-shrink: 0; width: 17px; height: 17px; color: var(--ink-mut); }
.nav-item.active svg { color: #fff; }

/* ---- admin tabs --------------------------------------------- */
.tab {
  border-bottom: 2px solid transparent; color: var(--ink-mut);
  white-space: nowrap; padding: 1rem 2px; font-weight: 550; font-size: 0.875rem;
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
}
.tab:hover { color: var(--ink-soft); }
.tab-on { border-bottom-color: var(--accent); color: var(--accent); }
.tab-chip {
  background: var(--bg-2); color: var(--ink-soft);
  border-radius: 999px; font-size: 11px; font-weight: 600; padding: 1px 9px;
}
.tab-on .tab-chip { background: var(--accent-soft); color: var(--accent); }

/* ---- tables (inside .card) ---------------------------------- */
.btable { width: 100%; border-collapse: collapse; }
.btable th {
  text-align: left; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mut); font-weight: 600; padding: 13px 16px;
  border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.btable td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.btable tbody tr:last-child td { border-bottom: none; }
.btable tbody tr:hover td { background: var(--bg-soft); }

/* ---- order walkthrough -------------------------------------- */
.progress-pill {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; display: flex; align-items: center; gap: 12px;
}
.step-seg {
  flex: 1; min-width: 0; height: 7px; border-radius: 9999px;
  background: var(--bg-2); border: 0; padding: 0; cursor: pointer;
  transition: background 160ms ease;
}
.step-seg:hover { background: var(--line); }
.step-seg.is-done { background: var(--accent-mid); }
.step-seg.is-done:hover { background: #8ab9bf; }
.step-seg.is-active { background: var(--accent); }
.step-seg.is-active:hover { background: var(--accent-700); }
.step-num { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.kbd {
  border: 1px solid #ddd8c9; border-radius: 4px; padding: 0 4px;
  font-size: 10px; color: var(--ink-mut); background: var(--paper); font-weight: 600;
}

.stage { position: relative; border-radius: 16px; overflow: hidden; background: var(--ink); }
.stage img { display: block; width: 100%; height: auto; }
.marker {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: none;
}
.marker-ring {
  width: 34px; height: 34px; border-radius: 9999px;
  border: 2.5px solid #fff; background: rgba(14, 110, 126, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.marker-tag {
  background: #fff; color: var(--ink);
  font-size: 10px; font-weight: 650; border-radius: 999px; padding: 2px 9px;
  white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  max-width: 140px; overflow: hidden; text-overflow: ellipsis;
}
