/* ==========================================================================
   AuraBMI Style System — Design Tokens & Modern Glassmorphic CSS
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  /* Common System Colors */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --underweight-color: hsl(195, 85%, 50%);
  --healthy-color: hsl(145, 75%, 45%);
  --overweight-color: hsl(35, 90%, 55%);
  --obese-color: hsl(0, 85%, 60%);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
  --bg-app: hsl(222, 47%, 8%);
  --bg-panel: rgba(15, 23, 42, 0.55);
  --border-panel: rgba(255, 255, 255, 0.08);
  
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 72%);
  --text-muted: hsl(215, 15%, 55%);
  
  --accent-primary: hsl(263, 90%, 65%);
  --accent-primary-rgb: 139, 92, 246;
  --accent-hover: hsl(263, 95%, 70%);
  --accent-light: rgba(139, 92, 246, 0.15);
  
  --bg-input: rgba(30, 41, 59, 0.6);
  --border-input: rgba(255, 255, 255, 0.1);
  --border-input-focus: hsl(263, 90%, 65%);
  
  --bg-button-sec: rgba(255, 255, 255, 0.05);
  --bg-button-sec-hover: rgba(255, 255, 255, 0.1);
  
  --orb-color-1: rgba(139, 92, 246, 0.3); /* Violet */
  --orb-color-2: rgba(56, 189, 248, 0.25); /* Sky blue */
  --orb-color-3: rgba(236, 72, 153, 0.2);  /* Pink */
  
  --card-gradient-start: rgba(30, 41, 59, 0.4);
  --card-gradient-end: rgba(15, 23, 42, 0.4);
}

/* --- Light Theme Variables --- */
[data-theme="light"] {
  --bg-app: hsl(225, 25%, 95%);
  --bg-panel: rgba(255, 255, 255, 0.65);
  --border-panel: rgba(15, 23, 42, 0.06);
  
  --text-primary: hsl(222, 47%, 12%);
  --text-secondary: hsl(215, 25%, 35%);
  --text-muted: hsl(215, 15%, 50%);
  
  --accent-primary: hsl(262, 80%, 52%);
  --accent-primary-rgb: 99, 102, 241;
  --accent-hover: hsl(262, 85%, 46%);
  --accent-light: rgba(99, 102, 241, 0.08);
  
  --bg-input: rgba(255, 255, 255, 0.9);
  --border-input: rgba(15, 23, 42, 0.08);
  --border-input-focus: hsl(262, 80%, 52%);
  
  --bg-button-sec: rgba(15, 23, 42, 0.05);
  --bg-button-sec-hover: rgba(15, 23, 42, 0.08);
  
  --orb-color-1: rgba(139, 92, 246, 0.15);
  --orb-color-2: rgba(56, 189, 248, 0.12);
  --orb-color-3: rgba(236, 72, 153, 0.1);
  
  --card-gradient-start: rgba(255, 255, 255, 0.6);
  --card-gradient-end: rgba(243, 244, 246, 0.6);
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Floating background decoration */
.glass-bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  animation: floatOrb 20s infinite alternate ease-in-out;
  transition: background var(--transition-slow);
}

.orb-1 {
  top: -10%;
  left: 10%;
  width: 50vw;
  height: 50vw;
  background: var(--orb-color-1);
  animation-duration: 25s;
}

.orb-2 {
  bottom: 10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: var(--orb-color-2);
  animation-duration: 20s;
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  left: 45%;
  width: 35vw;
  height: 35vw;
  background: var(--orb-color-3);
  animation-duration: 18s;
  animation-delay: -8s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(8%, 12%) scale(1.15);
  }
}

/* --- Layout Container --- */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100vh;
}

/* --- Header --- */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-panel);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-primary), hsl(290, 85%, 60%));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.4);
}

.logo-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.logo-area h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-area h1 span {
  color: var(--accent-primary);
  background: linear-gradient(to right, var(--accent-primary), hsl(290, 85%, 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Icon Buttons (Theme toggle, etc) */
.icon-btn {
  background: var(--bg-button-sec);
  border: 1px solid var(--border-panel);
  color: var(--text-primary);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
  background: var(--bg-button-sec-hover);
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Show/Hide Theme icons based on system state */
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* --- Glassmorphic Panels --- */
.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-panel);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

/* --- Workspace Grid --- */
.workspace-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

/* Panel Header styling */
.panel-header {
  margin-bottom: 1.75rem;
}

.panel-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.35rem;
}

.panel-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Unit Switch Tabs --- */
.unit-tabs-container {
  display: flex;
  background: var(--bg-button-sec);
  border: 1px solid var(--border-panel);
  border-radius: 14px;
  padding: 4px;
  position: relative;
  margin-bottom: 2rem;
}

.unit-tab {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  cursor: pointer;
  z-index: 1;
  border-radius: 10px;
  transition: color var(--transition-normal);
}

.unit-tab.active {
  color: #fff;
}

[data-theme="light"] .unit-tab.active {
  color: #fff;
}

/* Sliding active pill indicator */
.tab-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--accent-primary);
  border-radius: 10px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 10px rgba(var(--accent-primary-rgb), 0.3);
}

/* Shift active slider */
#tab-imperial.active ~ .tab-slider {
  transform: translateX(100%);
}

/* --- Form Input Fields --- */
.input-group {
  margin-bottom: 2rem;
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.input-header label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.value-display {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-primary);
  background: var(--accent-light);
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
}

.input-field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.input-with-unit input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 0.9rem 3.5rem 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
  transition: all var(--transition-fast);
}

.input-with-unit input:focus {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.input-suffix {
  position: absolute;
  right: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

/* Dual layout for Imperial Feet/Inches */
.dual-inputs {
  display: flex;
  gap: 1rem;
}

/* Unit switching classes */
.hidden-system {
  display: none !important;
}

.active-system {
  display: flex !important;
}

/* --- Range Slider Styling --- */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-button-sec);
  outline: none;
  margin: 0.5rem 0;
  cursor: pointer;
}

/* Track background gradient logic */
.range-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-primary);
  cursor: pointer;
  margin-top: -7px; /* Align vertical alignment in standard tracks */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  border-color: var(--accent-hover);
}

.range-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast);
}

.range-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* --- Buttons --- */
.action-row {
  display: flex;
  gap: 1rem;
  margin-top: 2.25rem;
}

.primary-btn, .secondary-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-primary), hsl(290, 85%, 60%));
  color: #fff;
  flex: 2;
  box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.45);
  filter: brightness(1.05);
}

.primary-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform var(--transition-fast);
}

.primary-btn:hover svg {
  transform: translateX(3px);
}

.secondary-btn {
  background: var(--bg-button-sec);
  border: 1px solid var(--border-panel);
  color: var(--text-primary);
  flex: 1;
}

.secondary-btn:hover {
  background: var(--bg-button-sec-hover);
  transform: translateY(-2px);
}

.secondary-btn svg {
  width: 1rem;
  height: 1rem;
}

.text-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.text-btn.danger-hover:hover {
  color: var(--obese-color);
}

/* --- Results Section --- */
.results-card {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  color: var(--text-secondary);
}

.pulse-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
  animation: heartbeat 2.5s infinite ease-in-out;
}

.pulse-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}

@keyframes heartbeat {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb), 0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(var(--accent-primary-rgb), 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb), 0); }
}

.result-placeholder h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.result-placeholder p {
  font-size: 0.9rem;
  max-width: 280px;
}

/* --- Active Results Display --- */
.result-display {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInUp 0.5s ease-out;
}

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

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

.result-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.badge {
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-normal);
}

/* Badge colors categories */
.badge.underweight { background: rgba(56, 189, 248, 0.15); color: var(--underweight-color); }
.badge.healthy { background: rgba(34, 197, 94, 0.15); color: var(--healthy-color); }
.badge.overweight { background: rgba(245, 158, 11, 0.15); color: var(--overweight-color); }
.badge.obese { background: rgba(239, 68, 68, 0.15); color: var(--obese-color); }

/* SVG Progress Ring */
.score-circle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0.5rem 0;
}

.score-ring {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-ring-svg {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.progress-ring-circle-bg {
  fill: transparent;
  stroke: var(--bg-button-sec);
  stroke-width: 10px;
}

.progress-ring-circle {
  fill: transparent;
  stroke: var(--accent-primary);
  stroke-width: 10px;
  stroke-linecap: round;
  stroke-dasharray: 471.2; /* 2 * pi * r (r=75) */
  stroke-dashoffset: 471.2;
  transition: stroke-dashoffset 1s cubic-bezier(0.2, 0.8, 0.2, 1), stroke var(--transition-normal);
}

.score-value {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#bmi-score {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.score-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* Linear Gauge Bar */
.gauge-container {
  margin-bottom: 0.5rem;
}

.gauge-bar {
  height: 8px;
  border-radius: 4px;
  display: flex;
  position: relative;
  overflow: visible;
  background: transparent;
}

.gauge-segment {
  height: 100%;
}

.gauge-segment.underweight { width: 37%; border-radius: 4px 0 0 4px; background: var(--underweight-color); }
.gauge-segment.healthy { width: 13%; background: var(--healthy-color); }
.gauge-segment.overweight { width: 10%; background: var(--overweight-color); }
.gauge-segment.obese { width: 40%; border-radius: 0 4px 4px 0; background: var(--obese-color); }

.gauge-marker {
  position: absolute;
  top: -6px;
  left: 50%; /* JS controlled */
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--text-primary);
  transform: translateX(-50%);
  box-shadow: var(--shadow-md);
  transition: left 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gauge-labels {
  display: flex;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.gauge-labels span:nth-child(1) { margin-left: 37%; transform: translateX(-50%); }
.gauge-labels span:nth-child(2) { margin-left: 13%; transform: translateX(-50%); }
.gauge-labels span:nth-child(3) { margin-left: 10%; transform: translateX(-50%); }

/* Description Card */
.summary-card {
  background: var(--accent-light);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.1);
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all var(--transition-normal);
}

.summary-card.underweight { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.15); }
.summary-card.healthy { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.15); }
.summary-card.overweight { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.15); }
.summary-card.obese { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.15); }

/* Advice Panel */
.advice-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.5rem 0.25rem;
}

.advice-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--bg-button-sec);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.advice-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.advice-text h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.advice-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.advice-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.result-actions {
  display: flex;
  margin-top: 0.5rem;
}

.icon-only-btn {
  width: 100%;
}

/* Hide classes */
.hidden {
  display: none !important;
}

/* --- History Section --- */
.history-panel {
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.count-badge {
  background: var(--accent-light);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}

.history-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  gap: 0.75rem;
}

.history-placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.4;
}

.history-placeholder p {
  font-size: 0.85rem;
  max-width: 320px;
}

.history-list-wrapper {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom Scrollbar for history log */
.history-list-wrapper::-webkit-scrollbar {
  width: 6px;
}

.history-list-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.history-list-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-panel);
  border-radius: 3px;
}

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, var(--card-gradient-start), var(--card-gradient-end));
  border: 1px solid var(--border-panel);
  border-radius: 14px;
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all var(--transition-fast);
}

.history-item:hover {
  transform: translateX(4px);
  border-color: rgba(var(--accent-primary-rgb), 0.2);
}

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

.history-item-bmi {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.history-item-bmi.underweight { background: var(--underweight-color); box-shadow: 0 4px 10px rgba(56, 189, 248, 0.25); }
.history-item-bmi.healthy { background: var(--healthy-color); box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25); }
.history-item-bmi.overweight { background: var(--overweight-color); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25); }
.history-item-bmi.obese { background: var(--obese-color); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25); }

.history-item-details {
  display: flex;
  flex-direction: column;
}

.history-item-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.history-item-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.history-item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.history-item-date svg {
  width: 0.85rem;
  height: 0.85rem;
}

.delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--obese-color);
}

.delete-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* --- Footer --- */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-panel);
  padding: 1.5rem 0 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-footer .disclaimer {
  font-size: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.75;
}
