/* ============================================================
   Private AI Practice Assistant — Base Design System
   Calming healthcare palette: soft teals, slate, warm accents.
   Built for high readability and easy daily use by front desk staff.
   ============================================================ */

:root {
  /* Brand */
  --teal-50:  #EFFCFB;
  --teal-100: #D6F5F2;
  --teal-200: #A7E8E1;
  --teal-300: #6FD6CB;
  --teal-400: #3EBDB0;
  --teal-500: #2C7A7B;
  --teal-600: #245F60;
  --teal-700: #1D4A4B;

  --blue-50:  #EEF4FB;
  --blue-100: #D5E3F4;
  --blue-300: #82A8D6;
  --blue-500: #4A6FA5;
  --blue-600: #355587;

  /* Neutrals */
  --slate-50:  #F7FAFC;
  --slate-100: #EDF2F7;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E0;
  --slate-400: #A0AEC0;
  --slate-500: #718096;
  --slate-600: #4A5568;
  --slate-700: #2D3748;
  --slate-800: #1A202C;
  --slate-900: #111827;

  /* Status (muted, medical) */
  --success-50:  #E6F8EE;
  --success-500: #38A169;
  --success-700: #226A45;

  --warning-50:  #FFF7E6;
  --warning-500: #D69E2E;
  --warning-700: #92681B;

  --danger-50:  #FDECEC;
  --danger-500: #C53030;
  --danger-700: #8B2020;

  --accent-50:  #FFF1E0;
  --accent-500: #ED8936;

  /* Semantic */
  --bg: var(--slate-50);
  --surface: #FFFFFF;
  --surface-2: #FAFCFD;
  --text: var(--slate-800);
  --text-muted: var(--slate-600);
  --text-soft: var(--slate-500);
  --border: var(--slate-200);
  --border-strong: var(--slate-300);

  --primary: var(--teal-500);
  --primary-hover: var(--teal-600);
  --primary-soft: var(--teal-50);
  --primary-soft-border: var(--teal-200);

  /* Layout */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow:    0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.10);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 64px;
  --sidebar-w: 248px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; line-height: 1.2; color: var(--slate-800); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

p { margin: 0 0 1em; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--slate-100);
  color: var(--slate-800);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--slate-100); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--slate-100); color: var(--text); }
.btn-danger { background: var(--danger-500); color: #fff; }
.btn-danger:hover { background: var(--danger-700); }
.btn-success { background: var(--success-500); color: #fff; }
.btn-success:hover { background: var(--success-700); }
.btn-warning { background: var(--warning-500); color: #fff; }
.btn-warning:hover { background: var(--warning-700); }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-xl { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; }

/* Form controls */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  letter-spacing: 0.01em;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.4;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(62, 189, 176, 0.18);
}
textarea { resize: vertical; min-height: 96px; font-family: inherit; }

.hint { font-size: 0.82rem; color: var(--text-soft); }

/* Tags / pills */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--teal-50);
  color: var(--teal-600);
  letter-spacing: 0.02em;
  border: 1px solid var(--teal-100);
}
.tag.blue    { background: var(--blue-50);    color: var(--blue-600);    border-color: var(--blue-100); }
.tag.green   { background: var(--success-50); color: var(--success-700); border-color: #C9EBD7; }
.tag.amber   { background: var(--warning-50); color: var(--warning-700); border-color: #FCE4B5; }
.tag.red     { background: var(--danger-50);  color: var(--danger-700);  border-color: #F6C9C9; }
.tag.slate   { background: var(--slate-100);  color: var(--slate-700);   border-color: var(--slate-200); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-title { font-size: 1rem; font-weight: 700; margin: 0 0 14px; }

/* Utility */
.row { display: flex; gap: 14px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.col { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Callouts */
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  color: var(--slate-700);
  font-size: 0.95rem;
}
.callout.warning { background: var(--warning-50); border-left-color: var(--warning-500); }
.callout.danger  { background: var(--danger-50);  border-left-color: var(--danger-500); }
.callout.success { background: var(--success-50); border-left-color: var(--success-500); }
.callout strong { color: var(--slate-800); }

/* Status dots */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--slate-400); }
.dot.green { background: var(--success-500); }
.dot.amber { background: var(--warning-500); }
.dot.red   { background: var(--danger-500); }

/* Scrollbars (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* Focus visible accessibility */
:focus-visible { outline: 3px solid rgba(62, 189, 176, 0.5); outline-offset: 2px; border-radius: 6px; }
