/* ============================================================
   Baby Mission HQ — Style Sheet
   ADHD-optimized dark theme, mobile-first
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --bg: #0F1117;
  --card: #1C1E26;
  --card2: #22252F;
  --primary: #4361EE;
  --primary-dim: rgba(67, 97, 238, 0.15);
  --urgent: #FF6B6B;
  --urgent-dim: rgba(255, 107, 107, 0.15);
  --success: #2DD4BF;
  --success-dim: rgba(45, 212, 191, 0.15);
  --warn: #F59E0B;
  --warn-dim: rgba(245, 158, 11, 0.15);
  --text: #F0F2F5;
  --muted: #7C8495;
  --border: rgba(255,255,255,0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --nav-height: 72px;
  --header-height: 60px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}
textarea { resize: vertical; min-height: 80px; }

/* ---- App Shell ---- */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* ---- Top Bar ---- */
#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  height: var(--header-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

#date-display {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

#baby-age {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-dim);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

#settings-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background var(--transition);
}
#settings-btn:active { background: var(--card2); }

/* ---- Main Content ---- */
#content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  scroll-behavior: smooth;
}

/* Scrollbar hide */
#content::-webkit-scrollbar { display: none; }
#content { scrollbar-width: none; }

/* ---- Tab Sections ---- */
.tab-section {
  padding: 16px 16px calc(16px + var(--nav-height));
  min-height: 100%;
  animation: fadeIn 200ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Bottom Nav ---- */
#bottom-nav {
  display: flex;
  align-items: stretch;
  height: var(--nav-height);
  background: var(--card);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-btn .nav-icon {
  font-size: 22px;
  line-height: 1;
}

.nav-btn.active {
  color: var(--primary);
}

.nav-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}

.nav-badge {
  position: absolute;
  top: 6px;
  right: 16px;
  width: 16px;
  height: 16px;
  background: var(--urgent);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ---- Cards ---- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
}

/* Alert cards */
.alert-card {
  border-left: 4px solid var(--urgent);
}
.alert-card.warn { border-left-color: var(--warn); }
.alert-card.success { border-left-color: var(--success); }
.alert-card.primary { border-left-color: var(--primary); }

/* ---- Buttons ---- */
.btn-primary {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:active { opacity: 0.8; transform: scale(0.98); }

.btn-ghost {
  background: var(--card2);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background var(--transition);
}
.btn-ghost:active { background: var(--border); }

.btn-danger {
  background: var(--urgent-dim);
  color: var(--urgent);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,107,107,0.2);
}
.btn-danger:active { opacity: 0.8; }

.btn-success {
  background: var(--success-dim);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(45,212,191,0.2);
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-row > * { flex: 1; min-width: 0; }

/* ---- Checklist Items ---- */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity var(--transition);
}
.checklist-item:last-child { border-bottom: none; padding-bottom: 0; }
.checklist-item:first-child { padding-top: 0; }

.check-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  font-size: 14px;
}

.checklist-item.done .check-circle {
  background: var(--success);
  border-color: var(--success);
  animation: checkPop 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.check-label {
  flex: 1;
}
.check-label .check-title {
  font-size: 15px;
  font-weight: 600;
}
.check-label .check-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.checklist-item.done .check-title {
  text-decoration: line-through;
  color: var(--muted);
}

/* ---- Streak Badge ---- */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--warn-dim);
  color: var(--warn);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}

/* ---- Progress Ring ---- */
.progress-ring-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-ring {
  flex-shrink: 0;
}

.progress-ring-bg {
  stroke: var(--card2);
}

.progress-ring-fill {
  stroke: var(--primary);
  stroke-linecap: round;
  transition: stroke-dashoffset 600ms ease;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* ---- Tags / Chips ---- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.tag-blue { background: var(--primary-dim); color: var(--primary); }
.tag-red { background: var(--urgent-dim); color: var(--urgent); }
.tag-green { background: var(--success-dim); color: var(--success); }
.tag-yellow { background: var(--warn-dim); color: var(--warn); }
.tag-muted { background: rgba(124,132,149,0.15); color: var(--muted); }

/* ---- Status Dots ---- */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.active {
  background: var(--success);
  animation: pulse-dot 1.5s infinite;
}
.status-dot.idle { background: var(--muted); }
.status-dot.urgent { background: var(--urgent); animation: pulse-dot 1s infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ---- Feed Timer ---- */
.feed-timer-display {
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 700;
  color: var(--success);
  text-align: center;
  letter-spacing: 0.04em;
  padding: 8px 0;
}

.feed-timer-label {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---- Quick Action Row ---- */
.quick-action-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.quick-action-btn {
  flex: 1;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  transition: background var(--transition), transform var(--transition);
}
.quick-action-btn span:last-child {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.quick-action-btn:active { background: var(--border); transform: scale(0.96); }

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: modalIn 250ms ease;
}

.modal.hidden {
  display: none;
}

@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-sheet {
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 430px;
  max-height: 90dvh;
  overflow-y: auto;
  animation: sheetUp 300ms cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes sheetUp {
  from { transform: translateY(40px); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 800;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}
.modal-close:active { background: var(--border); }

/* ---- Form Labels ---- */
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  margin-top: 16px;
}
.form-label:first-child { margin-top: 0; }

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

/* ---- Section headers ---- */
.section-header {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.section-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---- Sub-tabs ---- */
.sub-tabs {
  display: flex;
  background: var(--card2);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 16px;
  gap: 2px;
}

.sub-tab {
  flex: 1;
  padding: 9px 4px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  transition: all var(--transition);
}

.sub-tab.active {
  background: var(--primary);
  color: white;
}

/* ---- Stat grid ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.stat-box {
  background: var(--card2);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

/* ---- Log list entries ---- */
.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.log-entry:last-child { border-bottom: none; }

.log-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  min-width: 48px;
  padding-top: 1px;
}

.log-detail {
  flex: 1;
}
.log-detail .log-type {
  font-size: 14px;
  font-weight: 600;
}
.log-detail .log-meta {
  font-size: 12px;
  color: var(--muted);
}

.log-delete {
  color: var(--muted);
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
}
.log-delete:active { background: var(--urgent-dim); color: var(--urgent); }

/* ---- Collapsible ---- */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 4px 0;
}
.collapsible-arrow {
  font-size: 12px;
  color: var(--muted);
  transition: transform var(--transition);
}
.collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
.collapsible-body.open { max-height: 1000px; }
.collapsible-header.open .collapsible-arrow { transform: rotate(180deg); }

/* ---- HALT Buttons ---- */
.halt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.halt-btn {
  background: var(--card2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
}

.halt-btn.active {
  border-color: var(--urgent);
  background: var(--urgent-dim);
}

.halt-btn .halt-emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
}

.halt-btn .halt-label {
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.halt-btn .halt-advice {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---- Breathing Animation ---- */
.breathing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.breathing-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-dim), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin: 20px auto;
  transition: transform 1s ease;
}

.breathing-circle.inhale {
  animation: breatheIn 4s ease forwards;
}
.breathing-circle.hold {
  animation: none;
  transform: scale(1.4);
}
.breathing-circle.exhale {
  animation: breatheOut 6s ease forwards;
}

@keyframes breatheIn {
  from { transform: scale(1); }
  to { transform: scale(1.4); }
}

@keyframes breatheOut {
  from { transform: scale(1.4); }
  to { transform: scale(1); }
}

.breathing-phase {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-top: 12px;
}

.breathing-count {
  font-size: 40px;
  font-weight: 900;
  font-family: var(--mono);
  color: var(--primary);
  min-height: 56px;
  text-align: center;
  margin: 4px 0;
}

/* ---- Milestone cards ---- */
.milestone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.milestone-item:last-child { border-bottom: none; }

.milestone-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  transition: all var(--transition);
}
.milestone-item.done .milestone-check {
  background: var(--success);
  border-color: var(--success);
}

.milestone-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}
.milestone-item.done .milestone-label {
  color: var(--muted);
  text-decoration: line-through;
}

/* ---- Vaccine cards ---- */
.vaccine-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.vaccine-item:last-child { border-bottom: none; }

.vaccine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.vaccine-name {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  margin-right: 10px;
}

.vaccine-timing {
  font-size: 12px;
  color: var(--muted);
}

/* ---- SOS cards ---- */
.sos-call-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sos-call-row:last-child { border-bottom: none; }

.sos-call-label {
  flex: 1;
}
.sos-call-name {
  font-size: 14px;
  font-weight: 700;
}
.sos-call-number {
  font-size: 13px;
  color: var(--muted);
}

.sos-call-btn {
  background: var(--success);
  color: #000;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}
.sos-call-btn:active { opacity: 0.8; }

/* ---- Safe sleep list ---- */
.safe-sleep-list {
  list-style: none;
}

.safe-sleep-list li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.safe-sleep-list li:last-child { border-bottom: none; }

/* ---- Weight table ---- */
.weight-table {
  width: 100%;
  border-collapse: collapse;
}

.weight-table th {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--border);
}

.weight-table td {
  font-size: 13px;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.weight-table tr:last-child td { border-bottom: none; }

.weight-gain { color: var(--success); font-weight: 700; font-size: 12px; }
.weight-loss { color: var(--urgent); font-weight: 700; font-size: 12px; }

/* ---- Misc helpers ---- */
.muted-text { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-urgent { color: var(--urgent); }
.text-primary { color: var(--primary); }
.text-warn { color: var(--warn); }
.text-muted { color: var(--muted); }
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ---- Step buttons (type selectors) ---- */
.type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.type-btn {
  background: var(--card2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
}

.type-btn .type-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.type-btn.selected { border-color: var(--primary); background: var(--primary-dim); color: var(--primary); }

/* ---- Grounding steps ---- */
.grounding-step {
  text-align: center;
  padding: 16px 0;
}
.grounding-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.grounding-prompt {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 16px;
}

/* ---- Setup steps ---- */
.setup-step {
  padding: 20px;
}

.setup-emoji {
  font-size: 64px;
  text-align: center;
  display: block;
  margin-bottom: 16px;
}

.setup-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.setup-subtitle {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}

.setup-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
}

.setup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.setup-dot.active { background: var(--primary); }
.setup-dot.done { background: var(--success); }

/* ---- Wins list ---- */
.win-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.win-item:last-child { border-bottom: none; }
.win-item::before { content: '⭐'; font-size: 14px; }

/* ---- Day counter pill ---- */
.day-counter {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-dim), var(--card));
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--primary);
}

.day-number {
  font-size: 56px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.day-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---- Aarti mood rating ---- */
.mood-rating {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}

.mood-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card2);
  border: 2px solid var(--border);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.mood-btn.selected {
  border-color: var(--primary);
  background: var(--primary-dim);
  transform: scale(1.15);
}

/* ---- Dose calculator ---- */
.dose-display {
  background: var(--primary-dim);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-top: 12px;
}
.dose-display .dose-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
}
.dose-display .dose-label { font-size: 12px; color: var(--muted); }

/* ---- Countdown display ---- */
.countdown-display {
  text-align: center;
  padding: 32px 16px;
}
.countdown-number {
  font-size: 72px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.countdown-label {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---- NEXT UP vaccine card ---- */
.next-up-card {
  background: linear-gradient(135deg, var(--warn-dim), var(--card));
  border: 1px solid var(--warn);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

/* ---- Desktop centering ---- */
@media (min-width: 600px) {
  body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #080A0E;
  }

  #app {
    height: 100dvh;
    box-shadow: 0 0 60px rgba(0,0,0,0.6);
  }

  .modal-sheet {
    margin-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

/* ---- Animations ---- */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin { animation: spin 1s linear infinite; }
