/* EZ Meet — design system. Brand carried over from ezmedical.ai */
:root {
  --blue: #0F5C95;
  --blue-hover: #0d4f80;
  --blue-deep: #0c3558;
  --navy: #071a2f;
  --cyan: #00b4d8;
  --ink: #0f172a;
  --body: #334155;
  --muted: #5b6b7f;
  --line: #d9e3ee;
  --tint: #f0f7ff;
  --bg: #ffffff;
  --surface: #f7fafd;
  --danger: #c93b3b;
  --danger-hover: #b23030;
  --ok: #0e8a5f;

  --radius: 10px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgb(7 26 47 / .06), 0 4px 16px rgb(7 26 47 / .06);
  --shadow-2: 0 4px 12px rgb(7 26 47 / .10), 0 12px 40px rgb(7 26 47 / .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* z scale */
  --z-sticky: 10;
  --z-drawer: 20;
  --z-toast: 40;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: 1.2rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; max-width: 68ch; }
a { color: var(--blue); }

button { font: inherit; cursor: pointer; }
:is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .15s var(--ease-out), border-color .15s var(--ease-out), color .15s var(--ease-out);
  min-height: 42px;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: #fff; color: var(--blue-deep); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-quiet { background: transparent; color: var(--muted); border: none; padding: 8px 10px; min-height: 0; border-radius: var(--radius-sm); }
.btn-quiet:hover { color: var(--ink); background: var(--tint); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .spin { display: none; }
.btn.loading .spin { display: inline-block; }
.btn.loading .label { opacity: .6; }

.spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- forms ---- */
label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 5px; }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s var(--ease-out);
}
.input::placeholder { color: #6b7c91; }
.input:hover { border-color: #b9c9da; }
.input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgb(15 92 149 / .12); }
textarea.input { resize: vertical; min-height: 84px; }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.error-text { font-size: 13.5px; color: var(--danger); margin-top: 6px; }

/* ---- shell for public/admin pages ---- */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line); background: #fff;
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand b { color: var(--blue-deep); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-size: 13px; }
.main { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px); }
.footer { padding: 18px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); }
.footer p { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin: 0; }
.footer svg { flex: none; }

/* ---- misc ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 99px; background: var(--tint); color: var(--blue-deep);
}
.badge.cancelled { background: #fbeaea; color: var(--danger); }
.badge.ok { background: #e5f5ee; color: var(--ok); }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 8px);
  background: var(--navy); color: #eaf2fa; font-size: 14px; font-weight: 500;
  padding: 11px 18px; border-radius: 99px; box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  z-index: var(--z-toast); max-width: min(90vw, 480px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.skeleton { border-radius: var(--radius-sm); background: linear-gradient(90deg, #eef3f9 25%, #f7fafd 50%, #eef3f9 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
