/* Follicle Forecaster — design language mirrored from the
   fertility-show-booking-page repo (vanilla CSS, no framework). */

:root {
  --bg: #efebe0;          /* warm cream page background */
  --navy: #1a3a4a;        /* headings, table headers, key figures */
  --taupe: #a68e6c;       /* primary accent / buttons */
  --taupe-hover: #8f7659;
  --text: #2d2d2d;
  --muted: #5a5a5a;
  --muted-light: #777;
  --card: #ffffff;
  --row-zebra: #fdf9f5;
  --row-hover: #f5ede3;
  --border: #d6ccc0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Shared F roundel watermark, behind all page content. */
.bg-watermark {
  position: fixed;
  right: -8%;
  bottom: -12%;
  width: 70vmin;
  height: 70vmin;
  background: url("../img/F_Roundel.svg") no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* Keep real content above the watermark. */
.site-header,
.container,
.site-footer {
  position: relative;
  z-index: 1;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: 1.75rem; }

a { color: var(--taupe); text-decoration: none; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-header__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.site-header__tag {
  font-size: 0.8rem;
  color: var(--muted-light);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-header__nav {
  margin-left: auto;
  margin-right: 1.5rem;
  display: flex;
  gap: 1.25rem;
}

.site-header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

.site-header__nav a:hover {
  color: var(--taupe);
}

.site-header__user {
  font-size: 0.9rem;
  color: var(--muted);
}

.site-header__user a {
  margin-left: 0.9rem;
  font-weight: 500;
}

/* Callout / notice box */
.callout {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
}

.callout--warn {
  background: #fdf6ee;
  border: 1px solid #e6d6bf;
  color: #6b5a3e;
}

.callout--key {
  background: #eef2f5;
  border: 1px solid #cdd8e0;
  border-left: 4px solid var(--taupe);
  color: var(--navy);
  font-size: 0.98rem;
}

/* Explainer page */
.explainer {
  max-width: 760px;
}

.explainer h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.explainer p {
  margin-bottom: 1rem;
}

.explainer__lead {
  font-size: 1.05rem;
  color: var(--text);
}

.explainer__list {
  margin: 0 0 1rem 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.figure {
  margin: 1.5rem 0 2rem;
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.figure figcaption {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted-light);
  text-align: center;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-light);
}

.site-footer p {
  max-width: 640px;
  margin: 0 auto;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  flex: 1;
}

/* Page heading block */
.page-head { margin-bottom: 1.5rem; }
.page-head .muted { margin-top: 0.35rem; }

/* Cards */
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--taupe);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover { background: var(--taupe-hover); }

/* Inputs */
.input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table thead th {
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
}

.data-table tbody tr:nth-child(even) td { background: var(--row-zebra); }
.data-table tbody tr:hover td { background: var(--row-hover); }

.data-table td {
  padding: 0.6rem;
  border-bottom: 1px solid #f0ece8;
  font-size: 0.875rem;
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table__empty {
  text-align: center;
  color: var(--muted-light);
  padding: 2.5rem 1rem;
  font-size: 0.9rem;
}

.input:disabled {
  background: #faf8f4;
  color: var(--muted-light);
  cursor: not-allowed;
}

.scaffold-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-light);
}

/* Login homepage — soft glow behind the card. Fades to transparent (not
   cream) so the global F watermark stays visible behind it. */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, transparent 60%);
}

.auth {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 2.5rem;
}

.auth__box {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 2.5rem 2rem;
  box-shadow: 0 12px 40px rgba(44, 51, 63, 0.14);
}

.auth__logo {
  height: 56px;
  margin-bottom: 1.25rem;
}

.auth__intro {
  margin-top: 0.5rem;
}

.auth__btn {
  display: block;
  margin: 1.5rem 0 1rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
}

.auth__note {
  font-size: 0.8rem;
  color: var(--muted-light);
}

.muted { color: var(--muted); }
