/* ============================================================
   Sandbox Simulator — /simulator.html
   ============================================================ */

/* The persistent banner. High-contrast on purpose (dark background, bright
   orange accent) — it needs to read as "warning-adjacent", not blend in
   with the site's normal teal palette, or it fails the one job it has:
   making it impossible to mistake this for the real product. Fixed, not
   sticky, so it stays visible through scrolling on every panel. */
.sim-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  background: repeating-linear-gradient(135deg, #1a1a1a, #1a1a1a 14px, #2a2a2a 14px, #2a2a2a 28px);
  border-bottom: 3px solid #E9A13B;
  color: #fff; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.sim-banner-text { font-size: 0.85rem; font-weight: 600; }
.sim-banner-actions { display: flex; gap: 8px; flex: none; }
.sim-banner .btn {
  border-radius: 999px; padding: 6px 14px; font-size: 0.78rem; font-weight: 700; border: none; cursor: pointer;
}
.sim-reset-btn { background: #E9A13B; color: #1a1a1a; }
.sim-reset-btn:hover { background: #f5b158; }
.sim-exit-btn { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3) !important; }
.sim-exit-btn:hover { background: rgba(255,255,255,0.22); }

/* Push all real content below the fixed banner. Banner height varies
   slightly by wrap, so this is generous rather than pixel-exact. */
.sim-main { padding-top: 92px; max-width: 980px; margin: 0 auto 60px; padding-left: 20px; padding-right: 20px; }
@media (max-width: 640px) { .sim-main { padding-top: 128px; } }

/* The watermark: large, faint, diagonal, repeating — same visual language
   as the PDF watermark, so a screenshot of either one reads the same way.
   pointer-events:none is not optional — this sits ABOVE the content
   (z-index below the banner but above the page) and must never intercept
   a click meant for a real button underneath it. */
.sim-watermark {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  opacity: 0.06;
  background-image: repeating-linear-gradient(
    -35deg,
    transparent, transparent 120px,
    #0C6B63 120px, #0C6B63 122px
  );
}
.sim-watermark::before {
  content: "SIMULATOR MODE \00B7 DEMO DATA \00B7 SIMULATOR MODE \00B7 DEMO DATA";
  position: fixed; top: 45%; left: -20%; width: 140%;
  font-size: 2.4rem; font-weight: 800; letter-spacing: 4px;
  color: #0C6B63; text-align: center; transform: rotate(-18deg);
  white-space: nowrap; overflow: hidden; display: block;
}

.sim-intro { margin-bottom: 18px; }
.sim-intro h1 { font-size: 1.7rem; margin-bottom: 8px; }

.sim-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--border); }
.sim-tabs[hidden] { display: none; }
.sim-tab {
  background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer;
  padding: 10px 6px; margin-bottom: -2px; font-size: 0.95rem; font-weight: 700; color: var(--ink-500);
}
.sim-tab.is-active { color: var(--teal-700); border-bottom-color: var(--teal-600); }

.sim-loading { text-align: center; padding: 40px; color: var(--ink-500); }

.sim-panel[hidden] { display: none; }
.sim-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 18px; position: relative; z-index: 10;
}
.sim-card h2 { font-size: 1.1rem; margin-bottom: 10px; }

.sim-doctor-list, .sim-list { display: flex; flex-direction: column; gap: 10px; }
.sim-doctor-row, .sim-list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--teal-025, #F6FAF9);
}
.sim-doctor-row .sim-dr-name { font-weight: 700; }
.sim-doctor-row .sim-dr-meta { font-size: 0.8rem; color: var(--ink-500); }
.sim-session-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.sim-notification {
  background: #DCF8C6; border-radius: 12px; padding: 12px 14px; font-size: 0.9rem;
  max-width: 420px; position: relative;
}
.sim-notification::before { content: "💬 "; }

.sim-inline-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sim-inline-form input { flex: 1; min-width: 160px; }

.sim-med-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.sim-med-row input { flex: 1; min-width: 120px; }

.sim-cta {
  text-align: center; padding: 28px 20px; margin-top: 20px;
  background: var(--teal-025, #F6FAF9); border-radius: var(--radius-lg); position: relative; z-index: 10;
}
.sim-cta p { margin-bottom: 14px; font-weight: 600; }
.sim-cta .btn { margin: 0 6px; }

.sim-badge { font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.sim-badge-booked { background: #FFF3E0; color: #8a4b00; }
.sim-badge-visited { background: #E3F6EC; color: #1B7A4B; }

/* ---------- Registration wizard ---------- */
.sim-wizard { position: relative; z-index: 10; }
.sim-wizard[hidden] { display: none; }
.sim-wizard-progress {
  display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap;
}
.sim-wp-step {
  flex: 1; min-width: 70px; text-align: center; padding: 8px 6px; font-size: 0.72rem; font-weight: 700;
  background: var(--border); color: var(--ink-500); border-radius: 999px;
}
.sim-wp-step.is-active { background: var(--teal-600); color: #fff; }
.sim-wp-step.is-done { background: var(--teal-100, #C7E6E1); color: var(--teal-700); }

.sim-wizard-step[hidden] { display: none; }
.sim-wizard-step .form-hint { margin-top: 0; }
.sim-wiz-status-ok { color: var(--teal-700); font-weight: 700; margin-top: 10px; }
.sim-wiz-status-pending { color: var(--ink-500); font-style: italic; margin-top: 10px; }

.sim-registered-strip {
  background: var(--teal-025, #F6FAF9); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 16px; margin-bottom: 16px; font-size: 0.85rem; position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.sim-registered-strip[hidden] { display: none; }
.sim-registered-strip b { color: var(--teal-700); }
.sim-empty-nudge {
  background: #FFF8EC; border: 1px dashed #E9A13B; border-radius: var(--radius);
  padding: 14px; text-align: center; font-size: 0.9rem; color: #8a4b00;
}
