/* ==========================================================================
   DentaFlow by TECHaAM — design tokens (Light Liquid Glass)
   ========================================================================== */

:root {
  /* brand */
  --teal: #13B8B2;
  --teal-deep: #087F83;
  --mint: #A8E6DF;
  --mint-soft: #E2F5F1;
  --warm-white: #FAFCFA;
  --ivory: #F7F5EF;
  --peach: #FFD8C2;
  --lavender: #E5DDF7;

  /* text */
  --ink: #163B3B;
  --ink-2: #557373;
  --ink-3: #7C9494;

  /* state */
  --success: #16A085;
  --warning: #B7791F;
  --error: #C94C4C;

  /* surfaces */
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-muted: rgba(255, 255, 255, 0.55);
  --line: rgba(19, 184, 178, 0.16);
  --line-strong: rgba(19, 184, 178, 0.28);

  /* geometry */
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* shadows — soft, no hard edges */
  --sh-sm: 0 2px 8px rgba(22, 59, 59, 0.05);
  --sh-md: 0 10px 28px rgba(22, 59, 59, 0.08);
  --sh-lg: 0 24px 60px rgba(22, 59, 59, 0.12);
  --sh-teal: 0 12px 28px rgba(19, 184, 178, 0.28);

  /* type */
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-num: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--mint-soft);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

/* --- ambient: mint base, peach top-right, soft mint bottom-left --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(255, 216, 194, 0.55), transparent 62%),
    radial-gradient(800px 620px at 6% 4%, rgba(168, 230, 223, 0.55), transparent 60%),
    radial-gradient(900px 700px at 50% 116%, rgba(229, 221, 247, 0.42), transparent 62%),
    linear-gradient(165deg, #EAF7F4 0%, #F7FCFA 46%, #EFF9F6 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 216, 194, 0.35), transparent 28%),
    radial-gradient(circle at 18% 84%, rgba(168, 230, 223, 0.35), transparent 30%);
  filter: blur(40px);
}

/* ---------- glass ---------- */
.glass {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: #FFFFFF; }
}

/* inner highlight along the top edge */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.card { padding: 20px 22px; border-radius: var(--r-lg); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font); margin: 0; color: var(--ink); letter-spacing: -0.015em; }

h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 0.95rem; font-weight: 700; }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.muted { color: var(--ink-2); }
.small { font-size: 0.78rem; }
.tiny { font-size: 0.7rem; }

.num {
  font-family: var(--font-num);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- buttons ---------- */
button, .btn {
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  border-radius: var(--r-pill);
  padding: 12px 22px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-sm);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover { filter: brightness(0.985); transform: translateY(-1px); }
button:active { transform: translateY(0) scale(0.995); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(19, 184, 178, 0.45); outline-offset: 2px; }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
  background: linear-gradient(135deg, #1AC6BE, #0A9397);
  color: #fff;
  box-shadow: var(--sh-teal);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--teal-deep);
}

.btn-soft {
  background: var(--mint-soft);
  color: var(--teal-deep);
}

.btn-block { width: 100%; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.chip:hover { border-color: var(--line-strong); transform: translateY(-1px); }

.chip[aria-pressed="true"],
.chip.is-active {
  background: linear-gradient(135deg, #1AC6BE, #0A9397);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(19, 184, 178, 0.26);
}

.chip--status {
  cursor: default;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 11px;
}

.chip--confirmed { background: rgba(22, 160, 133, 0.12); color: var(--success); border-color: rgba(22, 160, 133, 0.25); }
.chip--pending { background: rgba(183, 121, 31, 0.12); color: var(--warning); border-color: rgba(183, 121, 31, 0.25); }
.chip--done { background: rgba(19, 184, 178, 0.12); color: var(--teal-deep); border-color: rgba(19, 184, 178, 0.25); }
.chip--muted { background: rgba(124, 148, 148, 0.1); color: var(--ink-3); border-color: rgba(124, 148, 148, 0.18); }
.chip--error { background: rgba(201, 76, 76, 0.1); color: var(--error); border-color: rgba(201, 76, 76, 0.2); }

/* ---------- misc ---------- */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A5A2B;
  background: rgba(255, 216, 194, 0.75);
  border: 1px solid rgba(255, 183, 148, 0.6);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}

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