/* ============================================================
   TOOLSPOT — WATER INTAKE CALCULATOR STYLESHEET
   ============================================================ */

:root {
  --tool-blue: #0ea5e9;
  --tool-blue-soft: rgba(14, 165, 233, 0.12);
  --tool-blue-glow: rgba(14, 165, 233, 0.25);
  --tool-blue-hover: #0284c7;
}

body.light {
  --tool-blue: #0284c7;
  --tool-blue-soft: rgba(2, 132, 199, 0.08);
  --tool-blue-glow: rgba(2, 132, 199, 0.15);
  --tool-blue-hover: #0369a1;
}

/* ── GOAL HIGHLIGHT CARD ── */
.goal-highlight-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

body.light .goal-highlight-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.goal-highlight-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, var(--tool-blue-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.goal-highlight-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  z-index: 1;
  position: relative;
}

.goal-highlight-value {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--tool-blue);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--tool-blue-glow);
  z-index: 1;
  position: relative;
}

body.light .goal-highlight-value {
  color: var(--tool-blue-hover);
  text-shadow: none;
}

.goal-highlight-subtitle {
  font-size: 12px;
  color: var(--text-2);
  z-index: 1;
  position: relative;
}

/* ── ANALYSIS & OUTCOME HERO ── */
.result-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.light .result-hero {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.result-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.result-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: var(--tool-blue-soft);
  border: 1px solid var(--tool-blue-glow);
  color: var(--tool-blue);
}

body.light .status-badge {
  box-shadow: none;
}

/* ── WATER LIQUID PROGRESS CARD ── */
.radial-progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  position: relative;
}

.radial-ring-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
}

.radial-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 12;
}

body.light .ring-bg {
  stroke: rgba(0, 0, 0, 0.04);
}

.ring-fill {
  fill: none;
  stroke: url(#blueGradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502.6; /* 2 * PI * r (r=80) */
  stroke-dashoffset: 502.6;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Liquid Wave Bubble inside Radial Ring */
.radial-ring-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.liquid-pct {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.liquid-target-desc {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ── QUICK LOGGING CONTROLS ── */
.log-actions-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-log-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.log-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-2);
}

.log-btn:hover {
  background: var(--tool-blue-soft);
  border-color: var(--tool-blue-glow);
  color: var(--text);
  transform: translateY(-2px);
}

.log-btn svg {
  color: var(--tool-blue);
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.log-btn:hover svg {
  transform: scale(1.15);
  opacity: 1;
}

.log-btn-amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.log-btn-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 600;
}

.reset-log-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 12.5px;
}

.logged-summary-text {
  color: var(--text-2);
  font-weight: 500;
}

.logged-summary-text strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--tool-blue);
}

.reset-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.reset-btn:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* ── DYNAMIC CUP GRID ── */
.cup-grid-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.cups-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  padding: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

body.light .cups-wrap {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.02);
}

.cup-icon {
  width: 32px;
  height: 38px;
  position: relative;
  opacity: 0.25;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.cup-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.5;
}

.cup-icon.filled {
  opacity: 1;
  transform: scale(1.05);
}

.cup-icon.filled svg {
  fill: var(--tool-blue);
  stroke: var(--tool-blue);
  filter: drop-shadow(0 0 6px var(--tool-blue-glow));
}

.cup-grid-summary {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  font-weight: 500;
}

/* ── HOURLY HYDRATION SCHEDULE ── */
.schedule-panel {
  width: 100%;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.schedule-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.schedule-card:hover {
  border-color: var(--tool-blue-glow);
  background: var(--tool-blue-soft);
  transform: translateY(-2px);
}

.schedule-time {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--tool-blue);
  margin-bottom: 4px;
}

.schedule-icon-wrapper {
  margin: 6px 0;
  color: var(--text-3);
  transition: color 0.2s ease;
}

.schedule-card:hover .schedule-icon-wrapper {
  color: var(--tool-blue);
}

.schedule-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
}

.schedule-label {
  font-size: 9.5px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* ── MODE TABS (Hydro Blue Style) ── */
.mode-toggle {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  z-index: 1;
}

body.light .mode-toggle {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.mode-toggle::before {
  content: '';
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  border-radius: 8px;
  background: var(--tool-blue-soft);
  border: 1px solid var(--tool-blue-glow);
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), background 0.28s, border-color 0.28s;
  z-index: 0;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

body.light .mode-toggle::before {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 2-Option Toggles */
#unit-toggle.mode-toggle::before,
#climate-toggle.mode-toggle::before {
  width: calc(50% - 6px);
}
#unit-toggle.mode-toggle.active-metric::before,
#climate-toggle.mode-toggle.active-normal::before {
  transform: translateX(0);
}
#unit-toggle.mode-toggle.active-imperial::before,
#climate-toggle.mode-toggle.active-humid::before {
  transform: translateX(calc(100% + 4px));
}

/* 3-Option Toggle */
#stage-toggle.mode-toggle::before {
  width: calc(33.333% - 6px);
}
#stage-toggle.mode-toggle.active-standard::before {
  transform: translateX(0);
}
#stage-toggle.mode-toggle.active-pregnancy::before {
  transform: translateX(calc(100% + 4px));
}
#stage-toggle.mode-toggle.active-lactation::before {
  transform: translateX(calc(200% + 8px));
}

.mode-btn {
  flex: 1;
  position: relative;
  background: transparent !important;
  border: none;
  padding: 8px 12px;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.28s ease, transform 0.2s;
  z-index: 1;
  box-shadow: none !important;
  text-align: center;
}

.mode-btn:hover {
  color: var(--text-2);
}

body.light .mode-btn {
  color: #556b82;
}

body.light .mode-btn:hover {
  color: #0f172a;
}

.mode-btn.active {
  background: transparent !important;
  color: var(--tool-blue) !important;
  font-weight: 700;
  box-shadow: none !important;
}

body.light .mode-btn.active {
  color: var(--tool-blue-hover) !important;
}

.mode-btn:active {
  transform: scale(0.97);
}

/* ── LIQUID PROGRESS CARD BACKGROUND GLOW ── */
.result-hero.blue-glow::after {
  background: radial-gradient(circle at 70% 30%, var(--tool-blue-soft) 0%, transparent 60%);
}

/* ── DYNAMIC TEMPERATURE SLIDER ── */
.blue-slider::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #3b82f6 0%, #10b981 35%, #f59e0b 70%, #ef4444 100%) !important;
  height: 6px !important;
  border-radius: 10px !important;
}

.blue-slider::-moz-range-track {
  background: linear-gradient(to right, #3b82f6 0%, #10b981 35%, #f59e0b 70%, #ef4444 100%) !important;
  height: 6px !important;
  border-radius: 10px !important;
}

.blue-slider::-webkit-slider-thumb {
  margin-top: -8px !important;
}

/* Custom Blue Range Sliders */
.range-slider:not(.blue-slider) {
  background: linear-gradient(to right, var(--tool-blue) 0%, var(--tool-blue) var(--fill, 40%), 
    rgba(255, 255, 255, 0.1) var(--fill, 40%), rgba(255, 255, 255, 0.1) 100%) !important;
}

body.light .range-slider:not(.blue-slider) {
  background: linear-gradient(to right, var(--tool-blue) 0%, var(--tool-blue) var(--fill, 40%), 
    rgba(0, 0, 0, 0.08) var(--fill, 40%), rgba(0, 0, 0, 0.08) 100%) !important;
}

.blue-slider {
  background: transparent !important;
}

.range-slider::-webkit-slider-thumb {
  border-color: var(--tool-blue) !important;
  box-shadow: 0 0 0 4px var(--tool-blue-soft), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2) !important;
}

.range-slider::-moz-range-thumb {
  border-color: var(--tool-blue) !important;
  box-shadow: 0 0 0 4px var(--tool-blue-soft) !important;
}

/* ── INPUT BOXES (.inp-box) & FOCUS OVERRIDES ── */
.input-header .inp-box {
  width: 110px;
  height: 32px;
  border-radius: 8px;
}

.input-header .inp-box input {
  padding: 6px 10px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  -moz-appearance: textfield;
}

.input-header .inp-box input::-webkit-outer-spin-button,
.input-header .inp-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-header .inp-box .inp-suf {
  padding-right: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  white-space: nowrap;
}

/* Blue Focus Ring Overrides */
.inp-box:focus-within {
  border-color: rgba(14, 165, 233, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
}

body.light .inp-box:focus-within {
  border-color: rgba(14, 165, 233, 0.55) !important;
  background: rgba(14, 165, 233, 0.04) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.10) !important;
}

/* Switch styling overrides for Blue theme */
.switch input:checked + .switch-slider {
  background-color: var(--tool-blue);
}

/* ── HISTORY LOGGER ── */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light .table-responsive {
  border-color: rgba(0, 0, 0, 0.06);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.history-table th {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}

.history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  vertical-align: middle;
}

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

.history-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.history-table td strong {
  color: var(--text);
  font-family: 'Outfit', sans-serif;
}

body.light .history-table th {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
  background: rgba(0, 0, 0, 0.01);
}

body.light .history-table td {
  border-bottom-color: rgba(0, 0, 0, 0.04);
  color: #334155;
}

body.light .history-table tr:hover td {
  background: rgba(0, 0, 0, 0.01);
}

body.light .history-table td strong {
  color: #0f172a;
}

/* Mobile responsive collapse for log table */
@media (max-width: 768px) {
  .table-responsive {
    background: transparent !important;
    border: none !important;
    overflow-x: visible !important;
  }
  
  .history-table, 
  .history-table tbody, 
  .history-table tr, 
  .history-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .history-table thead {
    display: none !important;
  }
  
  .history-table tr {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  body.light .history-table tr {
    background: rgba(0, 0, 0, 0.015) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
  }
  
  .history-table td {
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: right !important;
  }
  
  .history-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
  }
}

.delete-entry-btn {
  background: transparent !important;
  border: none !important;
  color: #ef4444 !important;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.2s;
  box-shadow: none !important;
}

.delete-entry-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

body.light .delete-entry-btn {
  color: #dc2626 !important;
}

body.light .delete-entry-btn:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}

/* Light Mode Overrides for Cards & Logging Controls */
body.light .log-btn {
  background: rgba(0, 0, 0, 0.015) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  color: #475569 !important;
}

body.light .log-btn:hover {
  background: var(--tool-blue-soft) !important;
  border-color: var(--tool-blue-glow) !important;
  color: var(--tool-blue) !important;
}

body.light .log-btn-amount {
  color: #0f172a !important;
}

body.light .schedule-card {
  background: rgba(0, 0, 0, 0.015) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light .schedule-card:hover {
  background: var(--tool-blue-soft) !important;
  border-color: var(--tool-blue-glow) !important;
}

body.light .schedule-amount {
  color: #0f172a !important;
}

/* ── Primary Button Override for Blue theme ── */
.rb-btn-primary {
  background: var(--tool-blue-soft) !important;
  border-color: var(--tool-blue-glow) !important;
  color: var(--tool-blue) !important;
}

.rb-btn-primary:hover {
  background: rgba(14, 165, 233, 0.18) !important;
  border-color: rgba(14, 165, 233, 0.35) !important;
  color: var(--tool-blue-hover) !important;
}

body.light .rb-btn-primary {
  background: var(--tool-blue-soft) !important;
  border-color: var(--tool-blue-glow) !important;
  color: var(--tool-blue) !important;
}

body.light .rb-btn-primary:hover {
  background: rgba(2, 132, 199, 0.12) !important;
  color: var(--tool-blue-hover) !important;
}

/* ── DYNAMIC HEALTH SAFETY ALERTS BANNER ── */
.risk-banner {
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px dashed transparent;
  font-weight: 500;
}

.risk-banner::before {
  content: "⚠️";
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.risk-banner.risk-dehydration {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
}

body.light .risk-banner.risk-dehydration {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  color: #b91c1c !important;
}

.risk-banner.risk-overhydration {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fde047 !important;
}

body.light .risk-banner.risk-overhydration {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  color: #b45309 !important;
}

.risk-banner.risk-optimal {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #6ee7b7 !important;
}

.risk-banner.risk-optimal::before {
  content: "✓";
}

body.light .risk-banner.risk-optimal {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  color: #047857 !important;
}


/* ── BEVERAGE SELECTION GRID ── */
.beverage-selector-wrap {
  margin-bottom: 20px;
  text-align: left;
}

.beverage-selector-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.beverage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .beverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bev-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bev-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

body.light .bev-card {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light .bev-card:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

.bev-card.active {
  background: var(--tool-blue-soft) !important;
  border: 1.5px solid var(--tool-blue-glow) !important;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

body.light .bev-card.active {
  background: #ffffff !important;
  border-color: var(--tool-blue) !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.bev-icon {
  font-size: 20px;
  margin-bottom: 4px;
  transition: transform 0.2s;
}

.bev-card:hover .bev-icon {
  transform: scale(1.15);
}

.bev-name {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}

body.light .bev-name {
  color: #334155;
}

.bev-card.active .bev-name {
  color: var(--tool-blue) !important;
}

body.light .bev-card.active .bev-name {
  color: var(--tool-blue-hover) !important;
}

.bev-factor {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-3);
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1px 6px;
  border-radius: 100px;
}

body.light .bev-factor {
  background: rgba(0, 0, 0, 0.03);
}

.bev-card.active .bev-factor {
  background: var(--tool-blue-soft);
  color: var(--tool-blue) !important;
}

body.light .bev-card.active .bev-factor {
  color: var(--tool-blue-hover) !important;
}


/* ── INSIGHTS & ANALYTICS DASHBOARD ── */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

.analytics-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.analytics-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

body.light .analytics-card {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light .analytics-card:hover {
  background: rgba(0, 0, 0, 0.03);
}

.analytics-label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: block;
}

.analytics-value {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--tool-blue);
  line-height: 1.2;
}

body.light .analytics-value {
  color: var(--tool-blue-hover);
}

.analytics-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  display: block;
}

.consistency-tracker-wrap {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
  text-align: center;
}

body.light .consistency-tracker-wrap {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.consistency-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.consistency-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.consistency-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 48px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: all 0.2s ease;
}

body.light .consistency-dot {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.05);
}

.consistency-dot:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.03);
}

body.light .consistency-dot:hover {
  background: rgba(0, 0, 0, 0.025);
}

.consistency-date {
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
}

.consistency-status-ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-3);
  opacity: 0.4;
  position: relative;
}

.consistency-dot.met .consistency-status-ring {
  background: #10b981;
  border-color: #10b981;
  opacity: 1;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.consistency-dot.hydrating .consistency-status-ring {
  background: var(--tool-blue);
  border-color: var(--tool-blue);
  opacity: 1;
  box-shadow: 0 0 8px var(--tool-blue-glow);
}

.consistency-dot.neglected .consistency-status-ring {
  background: #ef4444;
  border-color: #ef4444;
  opacity: 1;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.consistency-val-text {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-2);
}

/* Screen default for print-only header */
.print-only-header {
  display: none !important;
}

/* PDF PRINT STYLES */
@media print {
  body {
    color: #111827;
  }

  .print-only-header {
    display: block !important;
    margin-bottom: 16px;
  }

  body[data-page="tool"] .bg-scene,
  body[data-page="tool"] #ts-header,
  body[data-page="tool"] #ts-footer,
  body[data-page="tool"] #ts-cookie,
  body[data-page="tool"] #ts-share,
  body[data-page="tool"] #ts-toast,
  body[data-page="tool"] .breadcrumb,
  body[data-page="tool"] .tool-header p,
  body[data-page="tool"] .tool-header h1 span,
  body[data-page="tool"] #tool-disclaimer,
  body[data-page="tool"] .tool-left,
  body[data-page="tool"] .result-hero::after,
  body[data-page="tool"] .action-panel,
  body[data-page="tool"] .log-panel,
  body[data-page="tool"] .explanatory-content,
  body[data-page="tool"] #tool-faq {
    display: none !important;
  }
}
