/**
 * health.css - Glassmorphism Styles for Health Intelligence Section
 * High-end dark theme with CSS variables, micro-interactions,
 * and responsive grid layouts.
 */

/* ============================================
   CSS VARIABLES - Glassmorphism Theme
   ============================================ */

:root {
  /* Glass effect variables - Sleek & Professional */
  --health-glass-bg: rgba(255, 255, 255, 0.04);
  --health-glass-bg-hover: rgba(255, 255, 255, 0.07);
  --health-glass-border: rgba(255, 255, 255, 0.08);
  --health-glass-border-hover: rgba(255, 255, 255, 0.12);
  --health-glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --health-glass-blur: blur(16px);

  /* Accent colors */
  --health-accent-green: #4ade80;
  --health-accent-lime: #a3e635;
  --health-accent-amber: #fbbf24;
  --health-accent-orange: #fb923c;
  --health-accent-red: #ef4444;
  --health-accent-blue: #3b82f6;
  --health-accent-purple: #a855f7;

  /* Text colors */
  --health-text-primary: rgba(255, 255, 255, 0.92);
  --health-text-secondary: rgba(255, 255, 255, 0.6);
  --health-text-muted: rgba(255, 255, 255, 0.4);

  /* Spacing - Compact */
  --health-spacing-xs: 4px;
  --health-spacing-sm: 6px;
  --health-spacing-md: 12px;
  --health-spacing-lg: 18px;
  --health-spacing-xl: 24px;

  /* Border radius - More refined */
  --health-radius-sm: 6px;
  --health-radius-md: 10px;
  --health-radius-lg: 12px;
  --health-radius-xl: 14px;

  /* Transitions */
  --health-transition-fast: 150ms ease;
  --health-transition-normal: 250ms ease;
  --health-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   COLOR UTILITY CLASSES
   ============================================ */

.color--green {
  color: var(--health-accent-green) !important;
}
.color--lime {
  color: var(--health-accent-lime) !important;
}
.color--amber {
  color: var(--health-accent-amber) !important;
}
.color--orange {
  color: var(--health-accent-orange) !important;
}
.color--red {
  color: var(--health-accent-red) !important;
}
.color--blue {
  color: var(--health-accent-blue) !important;
}

/* ============================================
   HEALTH SECTION CONTAINER
   ============================================ */

.health-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: var(--health-spacing-md);
  padding-bottom: 100px;
  max-width: 100%;
}

/* Subsection spacing */
.health-section__quick-checks,
.health-section__bio-insights,
.health-section__alerts {
  display: flex;
  flex-direction: column;
  gap: var(--health-spacing-md);
}

.health-section--empty {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.health-empty-state {
  text-align: center;
  color: var(--health-text-muted);
}

.health-empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: var(--health-spacing-md);
  opacity: 0.5;
}

/* ============================================
   HEALTH CARD - Base Glassmorphism Style
   ============================================ */

.health-card {
  background: var(--health-glass-bg);
  backdrop-filter: var(--health-glass-blur);
  -webkit-backdrop-filter: var(--health-glass-blur);
  border: 1px solid var(--health-glass-border);
  border-radius: var(--health-radius-lg);
  padding: var(--health-spacing-md);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.08);
  transition:
    transform var(--health-transition-normal),
    opacity var(--health-transition-normal),
    border-color var(--health-transition-fast),
    box-shadow var(--health-transition-fast);

  /* Visible by default */
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Animation classes for scroll reveal */
.health-card--animate-in {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
}

.health-card--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.health-card:hover {
  border-color: var(--health-glass-border-hover);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.health-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--health-spacing-md);
}

.health-card__title-group {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-sm);
}

.health-card__icon {
  font-size: 20px;
}

.health-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--health-text-primary);
  margin: 0;
}

.health-card__subtitle {
  font-size: 12px;
  color: var(--health-text-muted);
}

/* ============================================
   OUTDOOR QUALITY CARD
   ============================================ */

.outdoor-quality-card {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.1) 0%,
    var(--health-glass-bg) 50%,
    rgba(59, 130, 246, 0.08) 100%
  );
}

.outdoor-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--health-spacing-lg);
}

/* Score Header Row - Grid Layout to prevent collision */
.outdoor-card__score-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 20px; /* Increased from 16px to prevent collision */
  column-gap: 20px;
}

.outdoor-card__score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--health-spacing-xs);
  flex-shrink: 0;
}

/* Info Badges Container */
.outdoor-card__info-badges {
  display: flex;
  flex-direction: column;
  gap: var(--health-spacing-sm);
  min-width: 0; /* Allow text truncation */
  overflow: hidden;
}

/* Score Circle */
.score-circle {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.score-circle__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 8px var(--score-color));
}

.score-circle__bg {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 6;
}

.score-circle__progress {
  fill: transparent;
  stroke: var(--score-color, var(--health-accent-green));
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dashoffset: 0;
  transition: stroke-dasharray var(--health-transition-slow);
}

/* SVG Text Elements - Centered in circle */
.score-circle__text {
  fill: var(--score-color, var(--health-text-primary));
  font-size: 24px;
  font-weight: 700;
  font-family: inherit;
  /* Reset rotation since SVG is rotated */
  transform: rotate(90deg);
  transform-origin: center;
}

.score-circle__label-text {
  fill: var(--health-text-secondary);
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: inherit;
  /* Reset rotation since SVG is rotated */
  transform: rotate(90deg);
  transform-origin: center;
}

/* Legacy positioned value (kept for compatibility) */
.score-circle__value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.score-number {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--score-color, var(--health-text-primary));
  line-height: 1;
}

.score-label {
  display: block;
  font-size: 9px;
  color: var(--health-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Capped Indicator Badge */
.outdoor-card__capped {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--health-accent-amber);
  background: rgba(251, 191, 36, 0.12);
  padding: 8px 12px;
  border-radius: var(--health-radius-md);
  border: 1px solid rgba(251, 191, 36, 0.2);
  line-height: 1.3;
}

.outdoor-card__capped .capped-icon {
  flex-shrink: 0;
}

.outdoor-card__capped .capped-text {
  flex: 1;
}

/* Reasoning Badge */
.outdoor-card__reasoning {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--health-text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: var(--health-radius-md);
  border: 1px solid var(--health-glass-border);
}

/* Timeline */
.outdoor-card__timeline {
  width: 100%;
  overflow: hidden;
}

.timeline-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  height: 80px;
  align-items: end;
}

.timeline-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.timeline-bar__fill {
  width: 100%;
  height: var(--bar-height, 50%);
  background: var(--bar-color, var(--health-accent-green));
  border-radius: 4px 4px 0 0;
  transition: height var(--health-transition-normal);
  min-height: 4px;
  opacity: 0.8;
}

.timeline-bar:hover .timeline-bar__fill {
  opacity: 1;
  transform: scaleY(1.05);
}

.timeline-bar__label {
  font-size: 9px;
  color: var(--health-text-muted);
  margin-top: 4px;
  text-align: center;
}

/* Best Time Badge */
.outdoor-card__best-time {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-sm);
  margin-top: var(--health-spacing-md);
  padding: var(--health-spacing-sm) var(--health-spacing-md);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--health-radius-md);
}

.best-time__icon {
  font-size: 16px;
}

.best-time__label {
  font-size: 12px;
  color: var(--health-text-secondary);
}

.best-time__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--health-text-primary);
}

.best-time__score {
  font-size: 14px;
  font-weight: 700;
  margin-left: auto;
}

/* ============================================
   QUICK CHECK SECTION
   ============================================ */

.health-section__quick-checks {
  display: flex;
  flex-direction: column;
  gap: var(--health-spacing-md);
}

.health-section__header {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-sm);
  padding: 0 var(--health-spacing-sm);
}

.health-section__icon {
  font-size: 18px;
}

.health-section__title-group {
  display: flex;
  flex-direction: column;
}

.health-section__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--health-text-primary);
  margin: 0;
}

.health-section__subtitle {
  font-size: 12px;
  color: var(--health-text-muted);
}

/* Quick Check Grid - Fixed overflow */
.quick-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

@media (min-width: 480px) {
  .quick-check-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (min-width: 768px) {
  .quick-check-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Quick Check Card - Compact & Sleek */
.quick-check-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all var(--health-transition-fast);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  border: 0.5px solid var(--health-glass-border);
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.quick-check-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  border-color: var(--health-glass-border-hover);
}

.quick-check-card__icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.quick-check-card__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.quick-check-card__question {
  font-size: 9px;
  color: var(--health-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 500;
}

.quick-check-card__answer {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.quick-check-card__detail {
  font-size: 11px;
  color: var(--health-text-secondary);
  line-height: 1.3;
}

/* ============================================
   BIO INSIGHTS SECTION
   ============================================ */

.health-section__bio-insights {
  display: flex;
  flex-direction: column;
  gap: var(--health-spacing-md);
}

.bio-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--health-spacing-sm);
}

@media (max-width: 400px) {
  .bio-insights-grid {
    grid-template-columns: 1fr;
  }
}

/* Bio Card */
.bio-card {
  padding: var(--health-spacing-md);
}

.bio-card__header {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-sm);
  margin-bottom: var(--health-spacing-sm);
}

.bio-card__icon {
  font-size: 18px;
}

.bio-card__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--health-text-secondary);
}

.bio-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--health-spacing-xs);
}

.bio-card__risk-indicator {
  display: flex;
  gap: 4px;
  margin-bottom: var(--health-spacing-xs);
}

.risk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background var(--health-transition-fast);
}

.risk-dot--active {
  background: var(--dot-color, var(--health-accent-green));
  box-shadow: 0 0 8px var(--dot-color, var(--health-accent-green));
}

.bio-card__value {
  font-size: 13px;
  font-weight: 500;
}

.bio-card__value--muted {
  color: var(--health-text-muted);
}

.bio-card__detail {
  font-size: 11px;
  color: var(--health-text-muted);
}

/* Vitamin D Timer */
.vitamin-d-timer {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.vitamin-d-timer__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--health-accent-amber);
  line-height: 1;
}

.vitamin-d-timer__unit {
  font-size: 14px;
  color: var(--health-text-secondary);
}

/* ============================================
   SAFETY ALERTS SECTION
   ============================================ */

.health-section__safety {
  display: flex;
  flex-direction: column;
  gap: var(--health-spacing-md);
}

.safety-alerts-list {
  display: flex;
  flex-direction: column;
  gap: var(--health-spacing-sm);
}

/* Safety Alert Card */
.safety-alert {
  padding: var(--health-spacing-md);
  border-left: 3px solid var(--alert-color, var(--health-accent-amber));
  background: linear-gradient(
    90deg,
    rgba(var(--alert-color-rgb, 251, 191, 36), 0.1) 0%,
    var(--health-glass-bg) 100%
  );
}

.safety-alert--critical {
  --alert-color-rgb: 239, 68, 68;
  animation: pulse-alert 2s ease-in-out infinite;
}

.safety-alert--warning {
  --alert-color-rgb: 251, 191, 36;
}

.safety-alert--info {
  --alert-color-rgb: 59, 130, 246;
}

@keyframes pulse-alert {
  0%,
  100% {
    border-left-color: var(--alert-color);
  }
  50% {
    border-left-color: transparent;
  }
}

.safety-alert__header {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-sm);
  margin-bottom: var(--health-spacing-xs);
}

.safety-alert__icon {
  font-size: 18px;
}

.safety-alert__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--health-text-primary);
}

.safety-alert__message {
  font-size: 13px;
  color: var(--health-text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Safety Clear State */
.health-card--success {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.1) 0%,
    var(--health-glass-bg) 100%
  );
  border-color: rgba(74, 222, 128, 0.2);
}

.safety-clear {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-md);
}

.safety-clear__icon {
  font-size: 28px;
}

.safety-clear__text {
  display: flex;
  flex-direction: column;
}

.safety-clear__text strong {
  font-size: 15px;
  color: var(--health-accent-green);
}

.safety-clear__text span {
  font-size: 13px;
  color: var(--health-text-secondary);
}

/* ============================================
   FOOTER / LAST UPDATED
   ============================================ */

.health-section__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--health-spacing-md);
  padding: var(--health-spacing-sm) var(--health-spacing-md);
}

.last-updated {
  font-size: 11px;
  color: var(--health-text-muted);
}

.offline-badge {
  font-size: 11px;
  color: var(--health-accent-amber);
  background: rgba(251, 191, 36, 0.15);
  padding: 2px 8px;
  border-radius: var(--health-radius-sm);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 480px) {
  .health-section {
    padding: var(--health-spacing-sm);
    gap: var(--health-spacing-md);
  }

  .health-card {
    padding: var(--health-spacing-md);
    border-radius: var(--health-radius-md);
  }

  .outdoor-card__content {
    grid-template-columns: 1fr;
    gap: var(--health-spacing-md);
  }

  .outdoor-card__score-display {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .score-circle {
    width: 80px;
    height: 80px;
  }

  .score-number {
    font-size: 24px;
  }

  .timeline-chart {
    height: 60px;
  }

  .quick-check-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-check-card__icon {
    font-size: 20px;
  }

  .quick-check-card__answer {
    font-size: 13px;
  }
}

/* ============================================
   DARK MODE ENHANCEMENTS
   ============================================ */

@media (prefers-color-scheme: dark) {
  .health-card {
    background: rgba(0, 0, 0, 0.3);
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .health-card {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .timeline-bar__fill {
    transition: none;
  }

  .safety-alert--critical {
    animation: none;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .health-section {
    background: white;
    color: black;
  }

  .health-card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
    backdrop-filter: none;
  }

  .health-card__title,
  .score-number,
  .quick-check-card__answer {
    color: black;
  }
}

/* ============================================
   INTERACTIVE TIMELINE (New 24h Scroll View)
   ============================================ */

.outdoor-card__timeline-wrapper {
  width: 100%;
  margin-top: var(--health-spacing-md);
}

.timeline-interactive {
  display: flex;
  flex-direction: column;
  gap: var(--health-spacing-sm);
}

/* Best Time Indicator Bar */
.timeline-best-indicator {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-sm);
  padding: var(--health-spacing-sm) var(--health-spacing-md);
  background: linear-gradient(
    90deg,
    rgba(74, 222, 128, 0.15) 0%,
    rgba(74, 222, 128, 0.05) 100%
  );
  border: 1px solid var(--best-color, var(--health-accent-green));
  border-radius: var(--health-radius-md);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.15);
  }
  50% {
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.3);
  }
}

.timeline-best-indicator__icon {
  font-size: 16px;
}

.timeline-best-indicator__text {
  font-size: 13px;
  font-weight: 500;
  color: var(--health-text-primary);
  flex: 1;
}

.timeline-best-indicator__score {
  font-size: 14px;
  font-weight: 700;
  color: var(--best-color, var(--health-accent-green));
}

/* Scrollable Timeline Container */
.timeline-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  padding-bottom: var(--health-spacing-sm);
  margin: 0 calc(var(--health-spacing-md) * -1);
  padding-left: var(--health-spacing-md);
  padding-right: var(--health-spacing-md);
}

.timeline-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.timeline-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* Timeline Slots Grid */
.timeline-slots {
  display: flex;
  gap: 4px;
  min-width: max-content;
  padding: var(--health-spacing-sm) 0;
  align-items: flex-end;
}

/* Individual Timeline Slot */
.timeline-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 32px;
  flex-shrink: 0;
  cursor: default;
  transition: transform var(--health-transition-fast);
  position: relative;
  padding-top: 24px;
}

.timeline-slot:hover {
  transform: translateY(-2px);
}

.timeline-slot--now {
  width: 40px;
}

.timeline-slot--now .timeline-slot__fill {
  /* Use --slot-color to respect the actual score's color, not always green */
  background: var(--slot-color, var(--health-accent-green));
  box-shadow: 0 0 12px
    color-mix(in srgb, var(--slot-color, #4ade80) 50%, transparent);
  animation: pulse-now 2s ease-in-out infinite;
}

@keyframes pulse-now {
  0%,
  100% {
    box-shadow: 0 0 8px
      color-mix(in srgb, var(--slot-color, #4ade80) 40%, transparent);
  }
  50% {
    box-shadow: 0 0 16px
      color-mix(in srgb, var(--slot-color, #4ade80) 60%, transparent);
  }
}

.timeline-slot--now .timeline-slot__time {
  font-weight: 700;
  color: var(--slot-color, var(--health-accent-green));
}

/* Best Window Highlight */
.timeline-slot--best {
  background: linear-gradient(
    180deg,
    rgba(74, 222, 128, 0.15) 0%,
    transparent 100%
  );
  border-radius: var(--health-radius-sm) var(--health-radius-sm) 0 0;
  margin-top: -8px;
  padding-top: 8px;
}

.timeline-slot--best::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--health-accent-green);
  border-radius: 50%;
}

/* Best Window Badge */
.timeline-slot__badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 600;
  color: var(--health-accent-green);
  background: rgba(74, 222, 128, 0.2);
  padding: 2px 6px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Timeline Bar */
.timeline-slot__bar {
  height: 60px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.timeline-slot__fill {
  width: 100%;
  height: var(--slot-height, 50%);
  background: var(--slot-color, var(--health-accent-green));
  border-radius: 3px;
  transition:
    height var(--health-transition-normal),
    opacity var(--health-transition-fast),
    background-color var(--health-transition-normal);
  min-height: 6px;
  opacity: 0.85;
}

/* CRITICAL: Force slot colors based on score ranges via CSS custom property */
/* The --slot-color is set via inline style from getScoreColor() in JS */

.timeline-slot:hover .timeline-slot__fill {
  opacity: 1;
  transform: scaleX(1.1);
}

/* Pulsing animation for current hour ("Jetzt") slot */
.timeline-slot--now .timeline-slot__fill {
  opacity: 1;
  animation: pulse-current-slot 2s ease-in-out infinite;
}

@keyframes pulse-current-slot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px var(--slot-color, var(--health-accent-green));
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 16px var(--slot-color, var(--health-accent-green));
  }
}

.timeline-slot__score {
  position: absolute;
  top: -16px;
  font-size: 10px;
  font-weight: 600;
  /* Use the slot color for the score text */
  color: var(--slot-color, var(--health-text-secondary));
  opacity: 0;
  transition: opacity var(--health-transition-fast);
}

.timeline-slot:hover .timeline-slot__score {
  opacity: 1;
}

/* Time Label - centered below bar */
.timeline-slot__time {
  font-size: 10px;
  color: var(--health-text-muted);
  margin-top: 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.timeline-slot--now .timeline-slot__time {
  font-weight: 700;
  color: var(--health-accent-green);
  font-size: 11px;
}

.timeline-slot:hover .timeline-slot__score {
  opacity: 1;
}

.timeline-slot__time {
  font-size: 10px;
  color: var(--health-text-muted);
  margin-top: 4px;
}

/* Scroll Hint */
.timeline-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--health-spacing-sm);
  font-size: 10px;
  color: var(--health-text-muted);
  opacity: 0.7;
  margin-top: var(--health-spacing-xs);
}

.timeline-scroll-hint__arrow {
  font-size: 12px;
  animation: hint-bounce 1.5s ease-in-out infinite;
}

.timeline-scroll-hint__arrow:first-child {
  animation-direction: reverse;
}

@keyframes hint-bounce {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}

/* Hide scroll hint after user has scrolled */
.timeline-scroll-container:hover + .timeline-scroll-hint,
.timeline-scroll-container:focus-within + .timeline-scroll-hint {
  opacity: 0;
}

/* ============================================
   SCORE REASONING
   ============================================ */

.outdoor-card__reasoning {
  font-size: 12px;
  font-weight: 500;
  color: var(--health-text-secondary);
  margin-top: var(--health-spacing-sm);
  padding: var(--health-spacing-xs) var(--health-spacing-sm);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--health-radius-sm);
  text-align: center;
}

/* ============================================
   HEALTH VIEW CONTAINER
   ============================================ */

.health-view {
  display: flex;
  flex-direction: column;
  gap: var(--health-spacing-lg);
}

.health-view--loading {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.health-view--error {
  min-height: 200px;
}

/* ============================================
   WEATHER ALERTS SECTION (New Styling)
   ============================================ */

.weather-alerts-section {
  cursor: pointer;
  transition: transform var(--health-transition-fast);
}

.weather-alerts-section:hover {
  transform: translateY(-2px);
}

.weather-alerts-header {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-sm);
  margin-bottom: var(--health-spacing-md);
}

.weather-alerts-icon {
  font-size: 20px;
}

.weather-alerts-title {
  flex: 1;
}

.weather-alerts-title h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--health-text-primary);
  margin: 0;
}

.weather-alerts-subtitle {
  font-size: 12px;
  color: var(--health-text-muted);
}

.weather-alerts-badge {
  font-size: 11px;
  font-weight: 700;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* Alert Pills */
.weather-alerts-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--health-spacing-xs);
  margin-bottom: var(--health-spacing-md);
}

.weather-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pill-color, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  font-size: 12px;
}

.weather-alert-pill__icon {
  font-size: 12px;
}

.weather-alert-pill__label {
  color: var(--health-text-secondary);
}

.weather-alert-pill__count {
  background: var(--pill-color, rgba(255, 255, 255, 0.2));
  color: white;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 600;
}

/* Alert Preview */
.weather-alert-preview {
  padding: var(--health-spacing-sm) var(--health-spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid;
  border-radius: var(--health-radius-sm);
  margin-bottom: var(--health-spacing-sm);
}

.weather-alert-preview__content strong {
  display: block;
  font-size: 13px;
  color: var(--health-text-primary);
  margin-bottom: 4px;
}

.weather-alert-preview__content p {
  font-size: 12px;
  color: var(--health-text-secondary);
  margin: 0;
  line-height: 1.4;
}

.weather-alert-preview__time {
  font-size: 11px;
  color: var(--health-text-muted);
  display: block;
  margin-top: 4px;
}

/* Good Status */
.weather-alerts-status--good {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-md);
  padding: var(--health-spacing-md);
  background: rgba(74, 222, 128, 0.1);
  border-radius: var(--health-radius-md);
}

.weather-alerts-status__icon {
  font-size: 24px;
}

.weather-alerts-status__text {
  display: flex;
  flex-direction: column;
}

.weather-alerts-status__text strong {
  font-size: 14px;
  color: var(--health-accent-green);
}

.weather-alerts-status__text p {
  font-size: 12px;
  color: var(--health-text-secondary);
  margin: 0;
}

/* Alerts Footer */
.weather-alerts-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--health-spacing-sm);
}

.weather-alerts-more {
  font-size: 11px;
  color: var(--health-text-muted);
  opacity: 0.7;
}

/* ============================================
   MODAL STYLES (Health Detail Sheets)
   ============================================ */

.health-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--health-glass-blur);
  -webkit-backdrop-filter: var(--health-glass-blur);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--health-transition-normal),
    visibility var(--health-transition-normal);
  pointer-events: none;
}

.health-modal-overlay--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.health-modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  background: var(--health-glass-bg);
  backdrop-filter: var(--health-glass-blur) var(--health-glass-saturate);
  -webkit-backdrop-filter: var(--health-glass-blur) var(--health-glass-saturate);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--health-border-radius) var(--health-border-radius) 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform var(--health-transition-slow);
}

.health-modal-overlay--visible .health-modal-sheet {
  transform: translateY(0);
}

/* Detail Cards in Modals - Compact */
.detail-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--health-radius-md);
  padding: var(--health-spacing-md);
  margin-bottom: var(--health-spacing-md);
  box-sizing: border-box;
  width: 100%;
}

.detail-card:last-child {
  margin-bottom: 0;
}

.detail-card h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--health-text-secondary);
  margin: 0 0 var(--health-spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-card__hero {
  text-align: center;
  padding: var(--health-spacing-sm) 0;
}

.detail-card__value {
  font-size: 28px;
  font-weight: 700;
  display: block;
}

.detail-card__label {
  font-size: 12px;
  display: block;
  margin-top: 2px;
  color: var(--health-text-secondary);
}

.detail-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--health-spacing-xs) 0;
  font-size: 12px;
  color: var(--health-text-secondary);
}

.detail-card__warning {
  padding: var(--health-spacing-sm);
  background: rgba(251, 191, 36, 0.15);
  border-radius: var(--health-radius-sm);
  font-size: 12px;
  color: var(--health-accent-amber);
  margin-top: var(--health-spacing-sm);
}

.detail-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-card__list li {
  padding: var(--health-spacing-xs) 0;
  font-size: 13px;
  color: var(--health-text-secondary);
}

.detail-text--muted {
  color: var(--health-text-muted);
}

/* Factor Detail List */
.factor-detail-list {
  display: flex;
  flex-direction: column;
  gap: var(--health-spacing-sm);
}

.factor-detail-row {
  display: grid;
  grid-template-columns: 24px 1fr 60px 32px;
  gap: var(--health-spacing-sm);
  align-items: center;
  font-size: 12px;
}

.factor-detail-icon {
  font-size: 14px;
}

.factor-detail-label {
  color: var(--health-text-secondary);
}

.factor-detail-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.factor-detail-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--health-transition-normal);
}

.factor-detail-score {
  font-weight: 600;
  text-align: right;
}

/* Health Chart in Modals */
.health-chart-barlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.health-chart-row {
  display: grid;
  grid-template-columns: 48px 32px 1fr;
  gap: var(--health-spacing-sm);
  align-items: center;
  font-size: 12px;
}

.health-chart-row__time {
  color: var(--health-text-muted);
}

.health-chart-row__score {
  font-weight: 600;
  text-align: right;
}

.health-chart-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.health-chart-bar__fill {
  height: 100%;
  border-radius: 4px;
}

/* ============================================
   SLEEK CHART SYSTEM - Health Page
   ============================================ */

/* Chart Wrapper for horizontal scroll */
.chart-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  padding-bottom: 4px;
}

.chart-wrapper::-webkit-scrollbar {
  height: 3px;
}

.chart-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Hourly Bars - Sleek Flex Layout */
.hourly-bars {
  display: flex;
  gap: 10px;
  min-width: max-content;
  padding: 12px 0;
  box-sizing: border-box;
  align-items: flex-end;
}

.hourly-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
  flex-shrink: 0;
  gap: 4px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.hourly-bar:hover {
  transform: translateY(-2px);
}

.hourly-bar:active {
  transform: scale(0.96);
}

/* Sleek Bar - Thin & Elegant */
.hourly-bar__fill {
  width: 10px;
  height: 44px;
  min-height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hourly-bar__fill::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bar-height, 0%);
  min-height: 4px;
  background: linear-gradient(
    to top,
    var(--bar-color, #4ade80),
    var(--bar-color-light, #86efac)
  );
  border-radius: 20px;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sleek Labels */
.hourly-bar__value {
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 5px;
  border-radius: 5px;
  white-space: nowrap;
  line-height: 1;
}

.hourly-bar__time {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  line-height: 1;
}

/* Alert Detail in Modal */
.alert-detail-card {
  padding: var(--health-spacing-md);
  background: var(--health-glass-bg);
  border-radius: var(--health-radius-md);
  margin-bottom: var(--health-spacing-md);
}

.alert-detail-header {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-sm);
  margin-bottom: var(--health-spacing-xs);
  flex-wrap: wrap;
}

.alert-detail-icon {
  font-size: 18px;
}

.alert-detail-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--health-text-primary);
  flex: 1;
}

.alert-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alert-detail-text {
  font-size: 13px;
  color: var(--health-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.alert-time-range {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--health-text-muted);
  margin-top: var(--health-spacing-sm);
  padding-top: var(--health-spacing-sm);
  border-top: 1px solid var(--health-glass-border);
}

.alert-time-range .material-symbols-outlined {
  font-size: 14px;
}

.alert-detail-time {
  font-size: 11px;
  color: var(--health-text-muted);
  margin-top: var(--health-spacing-xs);
  display: block;
}

/* Alert Actions / Recommendations */
.alert-actions {
  margin-top: var(--health-spacing-md);
  padding-top: var(--health-spacing-md);
  border-top: 1px solid var(--health-glass-border);
}

.alert-actions__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--health-text-primary);
  margin: 0 0 var(--health-spacing-sm) 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alert-actions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-actions__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--health-text-secondary);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--health-radius-sm);
  transition: background var(--health-transition-fast);
}

.alert-actions__list li:hover {
  background: rgba(255, 255, 255, 0.06);
}

.alert-action-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Alerts Modal Intro */
.alerts-modal-intro {
  font-size: 13px;
  color: var(--health-text-secondary);
  margin: 0 0 var(--health-spacing-md) 0;
  padding-bottom: var(--health-spacing-sm);
  border-bottom: 1px solid var(--health-glass-border);
}

/* Alerts Modal Empty State */
.alerts-modal-empty {
  text-align: center;
  padding: var(--health-spacing-xl);
}

.alerts-modal-empty__icon {
  font-size: 48px;
  display: block;
  margin-bottom: var(--health-spacing-md);
}

.alerts-modal-empty h3 {
  font-size: 18px;
  color: var(--health-text-primary);
  margin: 0 0 var(--health-spacing-sm);
}

.alerts-modal-empty p {
  font-size: 14px;
  color: var(--health-text-secondary);
  margin: 0;
}

/* ============================================
   INTERACTIVE ELEMENTS - Cursor Styles
   ============================================ */

.js-open-details,
[data-detail-type],
[data-clickable-alerts],
.health-card--outdoor,
.quick-check-card,
.bio-card,
.safety-alert {
  cursor: pointer;
  transition:
    transform var(--health-transition-fast),
    box-shadow var(--health-transition-fast);
}

.js-open-details:hover,
[data-detail-type]:hover,
.health-card--outdoor:hover,
.quick-check-card:hover,
.bio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.js-open-details:active,
[data-detail-type]:active {
  transform: translateY(0);
}

/* ============================================
   MODAL OVERLAY - Appended to Body (Duplicate removed - using consolidated styles above)
   ============================================ */

/* Note: Primary modal styles are defined earlier in this file.
   This section contains only additional overrides if needed. */

/* Ensure modal sheet has proper styling */
.health-modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  background: var(--health-glass-bg);
  backdrop-filter: var(--health-glass-blur) var(--health-glass-saturate);
  -webkit-backdrop-filter: var(--health-glass-blur) var(--health-glass-saturate);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--health-border-radius) var(--health-border-radius) 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform var(--health-transition-slow);
}

.health-modal-overlay--visible .health-modal-sheet {
  transform: translateY(0);
}

.health-modal-sheet .bottom-sheet__header {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-sm);
  padding: var(--health-spacing-md) var(--health-spacing-md);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.health-modal-sheet .bottom-sheet__icon {
  font-size: 20px;
}

.health-modal-sheet .bottom-sheet__title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--health-text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.health-modal-sheet .bottom-sheet__close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--health-text-secondary);
  border-radius: 50%;
  transition: all var(--health-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.health-modal-sheet .bottom-sheet__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--health-text-primary);
}

.health-modal-sheet .bottom-sheet__close:active {
  transform: scale(0.95);
}

.health-modal-sheet .bottom-sheet__body {
  padding: 20px 16px 100px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(80vh - 56px);
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Detail Cards in health modals - refined spacing */
.health-modal-sheet .detail-card {
  padding: 18px 16px;
  margin: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Nested cards - subtle depth */
.health-modal-sheet .detail-card .detail-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  margin: 10px 0;
  padding: 14px;
}

/* Typography refinements - less bulky */
.health-modal-sheet h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.health-modal-sheet .detail-card p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

/* Smaller icons in quick-check style cards */
.health-modal-sheet .quick-tip-icon {
  font-size: 14px;
  margin-right: 10px;
}

/* ============================================
   PRIORITY ALERT BANNER (Official Weather Warnings)
   ============================================ */

.priority-alert-banner {
  position: relative;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--alert-color, #ef4444) 20%, transparent),
    color-mix(in srgb, var(--alert-color, #ef4444) 10%, transparent)
  );
  border: 1px solid
    color-mix(in srgb, var(--alert-color, #ef4444) 40%, transparent);
  border-left: 4px solid var(--alert-color, #ef4444);
  border-radius: var(--health-radius-lg);
  padding: var(--health-spacing-md);
  margin-bottom: var(--health-spacing-md);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform var(--health-transition-fast),
    box-shadow var(--health-transition-fast);
}

.priority-alert-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px
    color-mix(in srgb, var(--alert-color, #ef4444) 30%, transparent);
}

.priority-alert-banner:active {
  transform: translateY(0);
}

.priority-alert-banner__pulse {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 8px;
  height: 8px;
  background: var(--alert-color, #ef4444);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: alert-pulse 2s ease-in-out infinite;
}

@keyframes alert-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0
      color-mix(in srgb, var(--alert-color, #ef4444) 60%, transparent);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px transparent;
  }
}

.priority-alert-banner__content {
  display: flex;
  align-items: center;
  gap: var(--health-spacing-sm);
  padding-left: 20px;
}

.priority-alert-banner__icon {
  font-size: 28px;
  flex-shrink: 0;
}

.priority-alert-banner__text {
  flex: 1;
  min-width: 0;
}

.priority-alert-banner__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--health-text-primary);
  margin-bottom: 2px;
}

.priority-alert-banner__subtitle {
  display: block;
  font-size: 12px;
  color: var(--health-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.priority-alert-banner__arrow {
  font-size: 24px;
  color: var(--alert-color, #ef4444);
  opacity: 0.7;
  transition: transform var(--health-transition-fast);
}

.priority-alert-banner:hover .priority-alert-banner__arrow {
  transform: translateX(4px);
  opacity: 1;
}

.priority-alert-banner__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--alert-color, #ef4444);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.modal-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.modal-spinner__circle {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--health-accent-blue);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

.modal-spinner__text {
  font-size: 12px;
  color: var(--health-text-muted);
  letter-spacing: 0.3px;
}

@keyframes spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* Minimal loading state for cards */
.loading-pulse {
  animation: pulse-loading 1.5s ease-in-out infinite;
}

@keyframes pulse-loading {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}
