/* ============================================================================
   MEDBED WEB — SHARED STYLES
   Brand: cyan #00BCD4 / navy #1A237E / pink #EC407A
   "Med" white-or-navy + "bed" pink italic
   ============================================================================ */

:root {
  --cyan: #00BCD4;
  --cyan-dark: #0097A7;
  --cyan-darker: #00838F;
  --cyan-light: #E0F7FA;
  --navy: #1A237E;
  --navy-light: #283593;
  --pink: #EC407A;
  --green: #2E9E5B;
  --amber: #F59E0B;
  --red: #E53935;
  --ink: #1a1f2e;
  --ink-soft: #5b6478;
  --ink-faint: #9aa3b5;
  --line: #e6e9f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(20,30,60,.06), 0 1px 2px rgba(20,30,60,.04);
  --shadow-md: 0 4px 16px rgba(20,30,60,.08);
  --shadow-lg: 0 12px 40px rgba(20,30,60,.14);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---- Brand wordmark ---- */
.wordmark { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
.wordmark .med { color: #fff; }
.wordmark .bed { color: var(--pink); font-style: italic; }
.wordmark.on-light .med { color: var(--navy); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan); color: #fff; box-shadow: 0 4px 14px rgba(0,188,212,.35); }
.btn-primary:hover { background: var(--cyan-dark); box-shadow: 0 6px 20px rgba(0,188,212,.45); }
.btn-ghost { background: transparent; color: var(--cyan-darker); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--cyan); background: var(--cyan-light); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }
.btn-danger { background: #fff; color: var(--red); border: 1.5px solid #f3c2c0; }
.btn-danger:hover { background: #fdeceb; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- Cards ---- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}

/* ---- Badges / pills ---- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; padding: 4px 11px;
  border-radius: 100px; white-space: nowrap;
}
.pill-cyan  { background: var(--cyan); color: #fff; }
.pill-soft  { background: var(--cyan-light); color: var(--cyan-darker); }
.pill-nabh  { background: #EAF6EE; color: var(--green); border: 1px solid #BfE3CC; }
.pill-amber { background: #FEF3E2; color: #B45309; }

/* ---- Inputs ---- */
.input, .textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s; outline: none;
}
.input:focus, .textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,188,212,.12); }
.textarea { resize: none; line-height: 1.5; }
label.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }

/* ---- Utility ---- */
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }
.hidden { display: none !important; }
.spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner-cyan { border-color: rgba(0,188,212,.25); border-top-color: var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Toast ---- */
.toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 100px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease; max-width: 90vw;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Fade-in ---- */
.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
