/* ===================================
   Dashboard — 90s Girly Design System
   Bubblegum pop meets Tamagotchi tech
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Quicksand:wght@500;600;700&family=Titan+One&family=VT323&family=Dancing+Script:wght@700&display=swap');

:root {
  /* Color tokens */
  --bubblegum: #FF6EC7;
  --grape: #9B5FE0;
  --cotton-candy: #FFD6EE;
  --lilac-mist: #E7DBFF;
  --ink-plum: #2B1B3D;
  --laser-teal: #00E0C6;
  --neon-purple: #BC13FE;
  --white: #FFFFFF;
  --cherry-red: #FF3B5C;
  --marigold: #FFB627;
  --marigold-deep: #B8790A;
  --bloom-green: #4CD97B;
  --twilight-purple: #4B2478;
  --midnight-blue: #1B1F4E;

  /* Shadow */
  --hard-shadow: 5px 5px 0 var(--ink-plum);
  --hard-shadow-sm: 3px 3px 0 var(--ink-plum);

  /* Radius */
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--cotton-candy) 0%, var(--lilac-mist) 55%, #d9c6ff 100%);
  font-family: 'Quicksand', sans-serif;
  color: var(--ink-plum);
  padding: 20px 16px 48px;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Buttons (base reset) ---------- */
button {
  font-family: inherit;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button:focus-visible {
  outline: 3px solid var(--laser-teal);
  outline-offset: 2px;
}

a.action-btn,
a.icon-btn {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ---------- Card base ---------- */
.card {
  background: var(--white);
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-lg);
  box-shadow: var(--hard-shadow);
  padding: 20px;
  position: relative;
}

.card__title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Hero (date/time) card ---------- */
.hero {
  background: linear-gradient(160deg, var(--white) 0%, var(--cotton-candy) 100%);
}

.hero__date {
  font-family: 'Titan One', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 0.08em;
  color: var(--grape);
  margin: 0;
}

.hero__weekday {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.03em;
  margin: 4px 0 0;
  background: linear-gradient(180deg, var(--bubblegum) 0%, var(--grape) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(43, 27, 61, 0.3));
}

.hero__month-note {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grape);
  margin: 8px 0 16px;
}

/* LCD screen inset — the signature element */
.lcd-screen {
  background: #14261f;
  border-radius: 12px;
  border: 3px solid var(--ink-plum);
  box-shadow: inset 0 0 0 2px #0a1712, inset 0 4px 10px rgba(0,0,0,0.5);
  padding: 14px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lcd-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.lcd-screen__value {
  font-family: 'VT323', monospace;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--neon-purple);
  text-shadow: 0 0 6px rgba(188, 19, 254, 0.75), 0 0 14px rgba(188, 19, 254, 0.4);
  letter-spacing: 0.06em;
}

.lcd-screen__label {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: rgba(188, 19, 254, 0.65);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- Stat chips ---------- */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.stat-chip {
  background: var(--lilac-mist);
  border: 2px solid var(--ink-plum);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  text-align: center;
}

.stat-chip__value {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.stat-chip__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grape);
}

/* ---------- Mood row ---------- */
.mood-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed var(--lilac-mist);
}

.mood-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--ink-plum);
  background: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--hard-shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.mood-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink-plum);
}

.mood-btn.is-active {
  background: var(--bubblegum);
  box-shadow: 0 0 0 3px var(--laser-teal), var(--hard-shadow-sm);
}

.mood-caption {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grape);
  margin-top: 8px;
}

/* ---------- Quick action row ---------- */
.action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.action-btn {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #fff 0%, var(--cotton-candy) 100%);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--hard-shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.action-btn span.emoji { font-size: 1.4rem; }

.action-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink-plum);
}

/* ---------- Progesterone card ---------- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 4px;
}

.stepper__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--ink-plum);
  background: var(--bubblegum);
  color: var(--white);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: var(--hard-shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.stepper__btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink-plum);
}

.stepper__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--hard-shadow-sm);
}

.stepper__value {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  min-width: 64px;
  text-align: center;
}

.stepper__unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grape);
  text-align: center;
  margin: 0 0 16px;
}

.countdown-note {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grape);
  margin-top: 10px;
}

/* ---------- Progesterone "Applied" button ---------- */
.prog-btn {
  width: 100%;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--twilight-purple), var(--midnight-blue));
  color: var(--white);
  padding: 14px;
  box-shadow: var(--hard-shadow);
  margin-bottom: 10px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.prog-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink-plum);
}

.prog-btn.did-log {
  animation: logPop 0.35s ease;
}

.prog-last {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grape);
  margin: 0 0 16px;
}

.prog-last strong { color: var(--ink-plum); }

/* ---------- Iron card ---------- */
.iron-btn {
  width: 100%;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--bubblegum), var(--grape));
  color: var(--white);
  padding: 14px;
  box-shadow: var(--hard-shadow);
  margin-bottom: 16px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.iron-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink-plum);
}

.iron-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grape);
  margin-bottom: 12px;
}

.iron-meta strong { color: var(--ink-plum); }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ===================================
   Food Log page — additions
   =================================== */

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar__title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink-plum);
  margin: 0;
}

.icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 3px solid var(--ink-plum);
  background: var(--white);
  box-shadow: var(--hard-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.icon-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink-plum);
}

.icon-btn--primary {
  background: linear-gradient(180deg, var(--bubblegum) 0%, var(--grape) 100%);
  color: var(--white);
  font-size: 1.5rem;
}

.icon-btn--ghost {
  box-shadow: none;
  border-width: 2px;
}

/* ---------- Search ---------- */
.search-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  padding: 13px 18px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: var(--white);
  box-shadow: var(--hard-shadow-sm);
}

.search-input::placeholder {
  color: rgba(43, 27, 61, 0.4);
}

.search-input:focus {
  outline: 3px solid var(--laser-teal);
  outline-offset: 2px;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-md);
  box-shadow: var(--hard-shadow);
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
}

.search-result-item {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 2px dashed var(--lilac-mist);
  cursor: pointer;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:active {
  background: var(--cotton-candy);
}

.search-result-item__name {
  font-weight: 700;
  font-size: 0.92rem;
}

.search-result-item__cals {
  font-size: 0.75rem;
  color: var(--grape);
  font-weight: 700;
  white-space: nowrap;
}

.search-empty {
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--grape);
  font-weight: 600;
}

/* ---------- Selected food + amount entry ---------- */
.selected-card {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed var(--lilac-mist);
}

.selected-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.selected-card__name {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.selected-card__macros {
  font-size: 0.78rem;
  color: var(--grape);
  font-weight: 600;
  margin: 4px 0 0;
}

.clear-btn {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--grape);
  font-weight: 700;
  padding: 2px 6px;
}

.field-label {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grape);
  margin: 16px 0 8px;
}

.unit-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.unit-pill {
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  background: var(--white);
  box-shadow: var(--hard-shadow-sm);
  transition: transform 0.1s ease, background 0.1s ease;
}

.unit-pill:active {
  transform: translate(2px, 2px);
}

.unit-pill.is-active {
  background: var(--grape);
  color: var(--white);
}

.amount-input {
  width: 100%;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  text-align: center;
  background: var(--white);
}

.amount-preview {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grape);
  margin-top: 8px;
}

.time-toggle {
  display: flex;
  gap: 8px;
}

.time-pill {
  flex: 1;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  padding: 10px 8px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  background: var(--white);
  box-shadow: var(--hard-shadow-sm);
  text-align: center;
}

.time-pill.is-active {
  background: var(--laser-teal);
}

.time-fields {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.time-fields input {
  flex: 1;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-md);
  padding: 10px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--white);
}

.log-btn {
  width: 100%;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--bubblegum), var(--grape));
  color: var(--white);
  padding: 15px;
  box-shadow: var(--hard-shadow);
  margin-top: 18px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.log-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink-plum);
}

@keyframes logPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.log-btn.did-log {
  animation: logPop 0.35s ease;
}

/* ---------- Today's entries ---------- */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--lilac-mist);
  border: 2px solid var(--ink-plum);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  gap: 10px;
}

.entry-row__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.entry-row__food {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-row__meta {
  font-size: 0.7rem;
  color: var(--grape);
  font-weight: 600;
}

.entry-row__end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entry-row__cals {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
}

.entry-remove {
  color: var(--ink-plum);
  opacity: 0.45;
  font-size: 1.2rem;
  line-height: 1;
  padding: 2px 4px;
}

.entry-empty {
  text-align: center;
  font-size: 0.85rem;
  color: var(--grape);
  font-weight: 600;
  padding: 8px 0 4px;
}

/* ---------- Add Food form ---------- */
.form-field {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--grape);
  margin-bottom: 6px;
}

.form-input,
.form-select {
  width: 100%;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: var(--white);
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row .form-field {
  flex: 1;
}

.save-btn {
  width: 100%;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--laser-teal), var(--grape));
  color: var(--white);
  padding: 15px;
  box-shadow: var(--hard-shadow);
  margin-top: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.save-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink-plum);
}

.hint-text {
  font-size: 0.76rem;
  color: var(--grape);
  font-weight: 600;
  margin: -6px 0 14px;
}

.view { display: none; }
.view.is-visible { display: block; }

/* ===================================
   Petal & Bloom branding
   =================================== */

.page {
  position: relative;
  z-index: 1;
}

/* ---------- Ambient floating petals ---------- */
.petal-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-petal {
  position: absolute;
  opacity: 0.45;
  animation: petalFloat 14s ease-in-out infinite;
}

@keyframes petalFloat {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-22px) rotate(12deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-petal { animation: none !important; }
}

/* ---------- Brand wordmark ---------- */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 0;
}

.brand-title {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 2.7rem;
  line-height: 1;
  margin: 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bubblegum) 0%, var(--neon-purple) 55%, var(--grape) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 3px rgba(43, 27, 61, 0.35));
}

.brand-header__decor {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 2px rgba(43, 27, 61, 0.25));
}

/* ---------- Card corner watermark ---------- */
.card::after {
  content: '🌸';
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.3rem;
  opacity: 0.14;
  pointer-events: none;
}

/* ===================================
   Hgb tracker — additions
   =================================== */

/* ---------- LCD value color states ---------- */
.lcd-screen__value--danger { color: var(--cherry-red); text-shadow: 0 0 6px rgba(255,59,92,0.75), 0 0 14px rgba(255,59,92,0.4); }
.lcd-screen__label--danger { color: rgba(255,59,92,0.65); }

.lcd-screen__value--warning { color: var(--marigold); text-shadow: 0 0 6px rgba(255,182,39,0.75), 0 0 14px rgba(255,182,39,0.4); }
.lcd-screen__label--warning { color: rgba(255,182,39,0.65); }

.lcd-screen__value--rebuilding { color: var(--laser-teal); text-shadow: 0 0 6px rgba(0,224,198,0.75), 0 0 14px rgba(0,224,198,0.4); }
.lcd-screen__label--rebuilding { color: rgba(0,224,198,0.65); }

.lcd-screen__value--normal { color: var(--bloom-green); text-shadow: 0 0 6px rgba(76,217,123,0.75), 0 0 14px rgba(76,217,123,0.4); }
.lcd-screen__label--normal { color: rgba(76,217,123,0.65); }

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid var(--ink-plum);
  box-shadow: var(--hard-shadow-sm);
}
.status-pill--danger { background: var(--cherry-red); color: var(--white); }
.status-pill--warning { background: var(--marigold); color: var(--ink-plum); }
.status-pill--rebuilding { background: var(--laser-teal); color: var(--ink-plum); }
.status-pill--normal { background: var(--bloom-green); color: var(--ink-plum); }

/* ---------- Hgb range bar ---------- */
.hgb-bar {
  position: relative;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 14px;
}
.hgb-bar__zone { position: absolute; top: 0; bottom: 0; }
.hgb-bar__zone--red { left: 0; width: 64%; background: rgba(255,59,92,0.16); border-right: 1px solid rgba(255,59,92,0.4); }
.hgb-bar__zone--yellow { left: 64%; width: 8%; background: rgba(255,182,39,0.18); border-right: 1px solid rgba(255,182,39,0.4); }
.hgb-bar__zone--rebuild { left: 72%; width: 20%; background: rgba(0,224,198,0.16); border-right: 1px solid rgba(0,224,198,0.4); }
.hgb-bar__fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  border-radius: var(--radius-pill);
  transition: width 0.4s ease, background 0.3s ease;
}
.hgb-bar__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--grape);
  margin-top: 5px;
}

/* ---------- Build rate slider ---------- */
.rate-value {
  text-align: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--grape);
  margin-bottom: 10px;
}
.rate-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--laser-teal), var(--bubblegum), var(--grape));
  border: 2px solid var(--ink-plum);
}
.rate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ink-plum);
  box-shadow: var(--hard-shadow-sm);
  cursor: pointer;
}
.rate-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ink-plum);
  box-shadow: var(--hard-shadow-sm);
  cursor: pointer;
}
.rate-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--grape);
  margin-top: 8px;
}

/* ---------- Suggested rate banner ---------- */
.suggestion-box {
  background: var(--lilac-mist);
  border: 2px solid var(--grape);
  border-radius: var(--radius-md);
  padding: 14px;
}
.suggestion-box__text {
  font-size: 0.85rem;
  color: var(--ink-plum);
  font-weight: 600;
  margin: 0 0 12px;
}
.suggestion-actions { display: flex; gap: 8px; }
.suggestion-btn {
  flex: 1;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  border: 2px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  padding: 9px 6px;
  background: var(--white);
  box-shadow: var(--hard-shadow-sm);
}
.suggestion-btn--primary { background: var(--grape); color: var(--white); }

/* ---------- Projection cards ---------- */
.projection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.projection-card {
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--hard-shadow-sm);
  background: var(--white);
}
.projection-card__label {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--ink-plum);
}
.projection-card__days { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.5rem; }
.projection-card__date { font-size: 0.72rem; color: var(--grape); font-weight: 600; margin-top: 2px; }
.projection-card--danger { border-color: var(--cherry-red); }
.projection-card--danger .projection-card__label,
.projection-card--danger .projection-card__days { color: var(--cherry-red); }
.projection-card--warning { border-color: var(--marigold-deep); }
.projection-card--warning .projection-card__label,
.projection-card--warning .projection-card__days { color: var(--marigold-deep); }
.projection-card--safe { border-color: var(--bloom-green); }
.projection-card--safe .projection-card__label,
.projection-card--safe .projection-card__days { color: var(--bloom-green); }

/* ---------- Action row width variants ---------- */
.action-row--2 { grid-template-columns: 1fr 1fr; }
.action-row--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Multi-delta stepper (mL / Hgb quick adjust) ---------- */
.delta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.delta-row .stepper__btn { font-size: 1rem; }
.delta-row .stepper__value { min-width: 56px; font-size: 1.6rem; }

/* ---------- Entry row inline mL adjuster ---------- */
.entry-adjust { display: flex; align-items: center; gap: 5px; }
.entry-adjust button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--ink-plum);
  background: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- Archive accordion ---------- */
.archive-toggle {
  width: 100%;
  text-align: left;
  background: var(--lilac-mist);
  border: 2px solid var(--ink-plum);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.archive-toggle__title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 0.85rem; }
.archive-toggle__meta { font-size: 0.7rem; color: var(--grape); font-weight: 600; margin-top: 3px; }
.archive-toggle__chevron { font-size: 0.85rem; color: var(--grape); flex-shrink: 0; }
.archive-detail { padding: 2px 4px 12px; display: flex; flex-direction: column; gap: 6px; }
.archive-empty { font-size: 0.78rem; color: var(--grape); text-align: center; padding: 8px 0; font-weight: 600; }

/* ---------- Plain text button (reset, etc.) ---------- */
.text-btn {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--grape);
  text-decoration: underline;
}

/* ===================================
   Fluids page — additions
   =================================== */

/* ---------- Amount input with inline unit suffix (e.g. "fl oz") ---------- */
.amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.amount-row .amount-input {
  flex: 1;
}

.amount-row__unit {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--grape);
}

/* ===================================
   Dashboard — Symptoms card + Iron shortcut additions
   =================================== */

/* ---------- Small secondary pill link (e.g. Hgb shortcut inside a card) ---------- */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  background: var(--white);
  box-shadow: var(--hard-shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pill-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink-plum);
}

/* ---------- Symptom grid (multi-select emoji buttons, reuses .mood-btn) ---------- */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  row-gap: 14px;
  margin-top: 4px;
}

/* ---------- Severity pills (single-select, gradient by intensity) ---------- */
.severity-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.severity-pill {
  flex: 1;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-pill);
  padding: 10px 6px;
  text-align: center;
  box-shadow: var(--hard-shadow-sm);
  opacity: 0.55;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.severity-pill:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink-plum);
}

.severity-pill.is-active {
  opacity: 1;
  box-shadow: 0 0 0 3px var(--laser-teal), var(--hard-shadow-sm);
}

.severity-pill--mild { background: linear-gradient(90deg, var(--laser-teal), var(--bloom-green)); color: var(--ink-plum); }
.severity-pill--moderate { background: linear-gradient(90deg, var(--marigold), var(--bubblegum)); color: var(--ink-plum); }
.severity-pill--severe { background: linear-gradient(90deg, var(--bubblegum), var(--cherry-red)); color: var(--white); }

/* ---------- Notes textarea ---------- */
.form-textarea {
  width: 100%;
  border: 3px solid var(--ink-plum);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--white);
  resize: vertical;
  min-height: 80px;
}

.form-textarea::placeholder {
  color: rgba(43, 27, 61, 0.4);
}

.form-textarea:focus {
  outline: 3px solid var(--laser-teal);
  outline-offset: 2px;
}

/* ===================================
   Supplements page — additions
   =================================== */

/* ---------- Pill grid (single-select emoji picker, reuses .mood-btn) ---------- */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  row-gap: 14px;
  margin-top: 4px;
}

/* ---------- Pink entry rows (children nested inside a purple day accordion) ---------- */
.entry-row--pink {
  background: var(--cotton-candy);
}
