/* ==========================================================================
   NoazRX Relief — design system
   Calm healthcare hiring palette. No neon, no glowing gradients.
   ========================================================================== */

:root {
  --bg: #f7f9fb;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --accent: #0f766e;          /* muted teal */
  --accent-dark: #0b5d57;
  --accent-soft: #ccebe7;
  --accent-tint: #effaf8;

  --navy: #0f1b2d;            /* dark slate/navy top bar */
  --navy-2: #15233a;

  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --info-bg: #e0f2fe;
  --info: #0369a1;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);

  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--text); line-height: 1.2; margin: 0 0 0.4em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.muted { color: var(--text-3); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- Top navigation -------------------------------------------- */
.topbar {
  background: var(--navy);
  color: #e7edf5;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 1.05rem; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
/* White NoazRX logo image used in the header (replaces the green "Rx" box). */
.brand-logo { width: 34px; height: 34px; object-fit: contain; display: block; }
.brand small { color: #9fb3c8; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a {
  color: #c6d2e1; padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 500; transition: background .15s, color .15s;
}
.topnav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.topnav .user-chip { color: #c6d2e1; font-size: 0.85rem; }

/* ---------- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 0.92rem; font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #e7edf5; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.10); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: #f1faf8; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #166534; }
.btn-sm { padding: 7px 13px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Cards ----------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.card-pad-lg { padding: 28px; }
.card h3 { font-size: 1.05rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }

/* ---------- Chips / pills --------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: 0.76rem; font-weight: 600; letter-spacing: .01em;
  background: #f1f5f9; color: var(--text-2);
}
.chip-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip-success { background: var(--success-bg); color: var(--success); }
.chip-warning { background: var(--warning-bg); color: var(--warning); }
.chip-danger  { background: var(--danger-bg);  color: var(--danger); }
.chip-info    { background: var(--info-bg);    color: var(--info); }
.chip-accent  { background: var(--accent-tint); color: var(--accent-dark); }
.chip-urgent  { background: #fff1f2; color: #be123c; }

/* ---------- Tabs (pill style) ----------------------------------------- */
.tabs { display: inline-flex; gap: 4px; background: #eef2f6; padding: 4px; border-radius: var(--radius-pill); }
.tab {
  border: none; background: transparent; cursor: pointer;
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--text-2);
  transition: background .15s, color .15s;
}
.tab.active { background: #fff; color: var(--accent-dark); box-shadow: var(--shadow-sm); }

/* ---------- Forms ----------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field .hint { font-size: 0.78rem; color: var(--text-3); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: 0.92rem; color: var(--text);
  padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  font-size: 0.85rem; cursor: pointer; background: #fff; color: var(--text-2); user-select: none;
  transition: all .15s;
}
.check-pill input { accent-color: var(--accent); margin: 0; }
.check-pill.on { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-dark); font-weight: 600; }

/* ---------- Layout helpers -------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Toasts ---------------------------------------------------- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 360px; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
  font-size: 0.9rem; display: flex; gap: 10px; align-items: flex-start;
  animation: toastin .2s ease;
}
.toast.success { background: #14532d; }
.toast.error { background: #7f1d1d; }
.toast.info { background: var(--navy); }
.toast b { display: block; margin-bottom: 1px; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- States ---------------------------------------------------- */
.empty {
  text-align: center; padding: 36px 20px; color: var(--text-3);
  border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg-alt);
}
.empty .ico { font-size: 1.6rem; margin-bottom: 6px; opacity: .6; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--text-3); padding: 20px; justify-content: center; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.banner { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; }
.banner-info { background: var(--info-bg); color: var(--info); }
.banner-warning { background: var(--warning-bg); color: var(--warning); }
.banner-danger { background: var(--danger-bg); color: var(--danger); }

/* ---------- Checklist ------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-2); }
.checklist li:last-child { border-bottom: none; }
.checklist .mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; flex: none; margin-top: 1px; }
.checklist .mark.done { background: var(--success-bg); color: var(--success); }
.checklist .mark.todo { background: #f1f5f9; color: var(--text-3); }
.checklist .mark.warn { background: var(--warning-bg); color: var(--warning); }

/* ---------- Stat tiles ------------------------------------------------ */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat .n { font-size: 1.7rem; font-weight: 800; color: var(--text); }
.stat .l { font-size: 0.82rem; color: var(--text-3); }

/* ==========================================================================
   Landing page
   ========================================================================== */
.hero { padding: 80px 0 60px; background:
  radial-gradient(1200px 400px at 70% -10%, #eef6f5 0%, rgba(238,246,245,0) 60%),
  var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--accent-dark); background: var(--accent-tint); padding: 6px 13px; border-radius: var(--radius-pill); margin-bottom: 18px; }
.hero h1 { font-size: 2.8rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.hero .lede { font-size: 1.12rem; color: var(--text-2); max-width: 36ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.trustline { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.85rem; color: var(--text-3); }
.trustline span { display: inline-flex; align-items: center; gap: 7px; }
.trustline span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px; }
.hero-card .hc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hero-card .shift-row { display: flex; justify-content: space-between; align-items: center; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--bg-alt); }
.hero-card .shift-row:last-child { margin-bottom: 0; }
.hero-card .sr-title { font-weight: 600; font-size: 0.92rem; }
.hero-card .sr-meta { font-size: 0.78rem; color: var(--text-3); }
.hero-card .sr-rate { font-weight: 700; color: var(--accent-dark); }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: 1.9rem; letter-spacing: -0.01em; }
.section-head p { font-size: 1.02rem; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 0.76rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }

.steps { counter-reset: step; }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-dark); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step h3 { font-size: 1.02rem; }
.step p { font-size: 0.92rem; margin: 0; }

.feature h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 9px; }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; }
.feature li { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; font-size: 0.92rem; color: var(--text-2); }
.feature li::before { content: "✓"; color: var(--accent); font-weight: 800; }

.cta-band { background: var(--navy); border-radius: 20px; padding: 44px; color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: 1.7rem; }
.cta-band p { color: #b9c6d6; max-width: 48ch; margin: 0 auto 22px; }
.cta-band .hero-cta { justify-content: center; }

.footer { padding: 40px 0; color: var(--text-3); font-size: 0.85rem; border-top: 1px solid var(--border); }
.footer .row-between { align-items: flex-start; }
.footer a:hover { color: var(--accent-dark); }
.disclaimer { font-size: 0.78rem; color: var(--text-3); margin-top: 8px; max-width: 60ch; }

/* ==========================================================================
   App shell
   ========================================================================== */
.app-main { padding: 28px 0 64px; min-height: calc(100vh - 64px); }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 1.6rem; margin-bottom: 4px; }
.page-head p { margin: 0; }

.dash-grid { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.side-stack > * + * { margin-top: 18px; }

.list-row {
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.list-row:last-child { margin-bottom: 0; }
.list-row .lr-title { font-weight: 600; font-size: 0.98rem; margin-bottom: 2px; }
.list-row .lr-meta { font-size: 0.82rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; }
.list-row .lr-meta b { color: var(--text-2); font-weight: 600; }
.list-row .lr-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

.applicant-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.applicant-card .ac-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.cred-grid { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.83rem; color: var(--text-2); margin: 8px 0; }
.cred-grid div b { color: var(--text); font-weight: 600; }

.loc-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; background: var(--bg-alt); margin-bottom: 10px; }
.loc-card .lc-head { display: flex; justify-content: space-between; align-items: center; }

.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: grid; place-items: center; z-index: 150; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; padding: 26px; }
.modal h3 { margin-top: 0; }

.auth-wrap { max-width: 760px; margin: 0 auto; }
.role-toggle { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.role-card { flex: 1; min-width: 200px; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px; cursor: pointer; background: #fff; transition: all .15s; }
.role-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,.1); background: var(--accent-tint); }
.role-card h4 { margin: 0 0 4px; }
.role-card p { margin: 0; font-size: 0.85rem; }

.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 2.2rem; }
  .dash-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topnav .hide-sm { display: none; }
  .hero { padding: 52px 0 40px; }
  .hero h1 { font-size: 1.85rem; }
  .section { padding: 44px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 20px; }
  .list-row { flex-direction: column; }
  .list-row .lr-actions { flex-direction: row; align-items: stretch; width: 100%; }
  .list-row .lr-actions .btn { flex: 1; }
  .toast-wrap { left: 16px; right: 16px; }
  .toast { max-width: none; }
}
