/* ============================================================
   TOOLSPOT — STEP COUNTER TO CALORIES STYLESHEET
   ============================================================ */

:root {
  --tool-cyan: #06b6d4;
  --tool-cyan-soft: rgba(6, 182, 212, 0.12);
  --tool-cyan-glow: rgba(6, 182, 212, 0.25);
  --tool-cyan-hover: #0891b2;
}

body.light {
  --tool-cyan: #0891b2;
  --tool-cyan-soft: rgba(8, 145, 178, 0.08);
  --tool-cyan-glow: rgba(8, 145, 178, 0.15);
  --tool-cyan-hover: #0e7490;
}

/* ── Container Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 100px;
  position: relative;
  z-index: 1;
}

/* ── Mode & Unit Toggles (Glassmorphic) ── */
.mode-toggle {
  position: relative;
  display: flex !important;
  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;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  margin-bottom: 24px;
  width: 100%;
}

.mode-toggle::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 6px);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 8px;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Unit Toggle (2 choices) */
#unit-toggle.mode-toggle::before {
  width: calc(50% - 6px);
}
#unit-toggle.mode-toggle.active-metric::before {
  transform: translateX(0);
}
#unit-toggle.mode-toggle.active-imperial::before {
  transform: translateX(calc(100% + 4px));
}

/* Sex Toggle (2 choices) */
#sex-toggle.mode-toggle::before {
  width: calc(50% - 6px);
}
#sex-toggle.mode-toggle.active-male::before {
  transform: translateX(0);
}
#sex-toggle.mode-toggle.active-female::before {
  transform: translateX(calc(100% + 4px));
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.06) 100%);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

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

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

.mode-btn.active {
  color: var(--tool-cyan) !important;
  text-shadow: 0 0 10px var(--tool-cyan-glow);
}

#sex-toggle.active-female .mode-btn.active {
  color: #f472b6 !important;
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}

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

/* Light mode overrides for toggles */
body.light .mode-toggle {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

body.light .mode-toggle::before {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.12) 0%, rgba(8, 145, 178, 0.04) 100%);
  border-color: rgba(8, 145, 178, 0.2);
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.06);
}

body.light #sex-toggle.active-female::before {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.12) 0%, rgba(219, 39, 119, 0.04) 100%);
  border-color: rgba(219, 39, 119, 0.2);
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.06);
}

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

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

body.light .mode-btn.active {
  color: var(--tool-cyan) !important;
  text-shadow: none;
}

body.light #sex-toggle.active-female .mode-btn.active {
  color: #db2777 !important;
}

/* ── Grid Select Form Fields ── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.input-group {
  margin-bottom: 24px;
}

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

.input-header label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

body.light .input-header label {
  color: #64748b;
}

.value-badge {
  background: var(--tool-cyan-soft);
  color: var(--tool-cyan);
  border: 1px solid var(--tool-cyan-glow);
  padding: 4px 10px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

/* ── Custom Range Sliders ── */
.slider-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--tool-cyan) 0%, var(--tool-cyan) var(--fill, 50%), 
    rgba(255, 255, 255, 0.08) var(--fill, 50%), rgba(255, 255, 255, 0.08) 100%) !important;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #fff !important;
  border: 3px solid var(--tool-cyan) !important;
  border-radius: 50% !important;
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--tool-cyan-glow), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

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

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff !important;
  border: 3px solid var(--tool-cyan) !important;
  border-radius: 50% !important;
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--tool-cyan-glow) !important;
}

body.light .range-slider {
  background: linear-gradient(to right, var(--tool-cyan) 0%, var(--tool-cyan) var(--fill, 50%), 
    rgba(15, 23, 42, 0.08) var(--fill, 50%), rgba(15, 23, 42, 0.08) 100%) !important;
}

body.light .range-slider::-webkit-slider-thumb {
  border-color: var(--tool-cyan) !important;
  box-shadow: 0 0 0 4px var(--tool-cyan-soft), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

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

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}

/* ── Result Hero Panel ── */
.result-hero {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.02) 100%);
  border: 1px solid var(--tool-cyan-glow);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.08), inset 0 1px 0 rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

body.light .result-hero {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.06) 0%, rgba(8, 145, 178, 0.01) 100%);
  border-color: rgba(8, 145, 178, 0.2);
}

.result-hero-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.result-hero-calories {
  font-family: 'Outfit', sans-serif;
  font-size: 54px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.result-hero-calories span {
  font-size: 20px;
  font-weight: 700;
  color: var(--tool-cyan);
  margin-left: 4px;
}

.result-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 18px;
  margin-top: 12px;
}

body.light .result-hero-stats {
  border-top-color: rgba(0, 0, 0, 0.05);
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

/* ── Activity Equivalents ── */
.equiv-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-2);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.equivalents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

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

.equiv-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 18px 10px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.equiv-card:hover {
  transform: translateY(-4px);
}

body.light .equiv-card {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}

.equiv-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.equiv-icon {
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.25s ease;
}

.equiv-card:hover .equiv-icon-wrap {
  transform: scale(1.12);
}

.equiv-card:hover .equiv-icon {
  transform: rotate(8deg) scale(1.05);
}

.equiv-val {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  transition: color 0.2s;
}

.equiv-unit {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.equiv-lbl {
  font-size: 11px;
  color: var(--text-2);
  font-weight: 600;
  margin-top: 2px;
  transition: color 0.2s;
}

/* --- Specific Card Color Schemes (Glow, Hover, Backdrops) --- */

/* Pizza (Orange) */
.equiv-pizza .equiv-icon-wrap {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.15);
}
.equiv-pizza:hover {
  border-color: rgba(249, 115, 22, 0.3) !important;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
  background: rgba(249, 115, 22, 0.02) !important;
}

/* Donut (Pink/Magenta) */
.equiv-donut .equiv-icon-wrap {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.15);
}
.equiv-donut:hover {
  border-color: rgba(236, 72, 153, 0.3) !important;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.12);
  background: rgba(236, 72, 153, 0.02) !important;
}

/* Soda (Blue) */
.equiv-soda .equiv-icon-wrap {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
}
.equiv-soda:hover {
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
  background: rgba(59, 130, 246, 0.02) !important;
}

/* Apple (Red/Green) */
.equiv-apple .equiv-icon-wrap {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.equiv-apple:hover {
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
  background: rgba(16, 185, 129, 0.02) !important;
}

/* Swimming (Cyan/Teal) */
.equiv-swim .equiv-icon-wrap {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.15);
}
.equiv-swim:hover {
  border-color: rgba(6, 182, 212, 0.3) !important;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12);
  background: rgba(6, 182, 212, 0.02) !important;
}

/* Cycling (Amber/Yellow) */
.equiv-cycle .equiv-icon-wrap {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.equiv-cycle:hover {
  border-color: rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
  background: rgba(245, 158, 11, 0.02) !important;
}

/* Yoga (Violet/Purple) */
.equiv-yoga .equiv-icon-wrap {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.15);
}
.equiv-yoga:hover {
  border-color: rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
  background: rgba(139, 92, 246, 0.02) !important;
}

/* Gym/Weights (Slate/Zinc) */
.equiv-weight .equiv-icon-wrap {
  background: rgba(100, 116, 139, 0.1);
  border: 1px solid rgba(100, 116, 139, 0.15);
}
.equiv-weight:hover {
  border-color: rgba(100, 116, 139, 0.3) !important;
  box-shadow: 0 8px 24px rgba(100, 116, 139, 0.12);
  background: rgba(100, 116, 139, 0.02) !important;
}

/* --- Light Mode Specific Adjustments --- */
body.light .equiv-val { color: #0f172a; }
body.light .equiv-unit { color: #64748b; }
body.light .equiv-lbl { color: #475569; }

body.light .equiv-pizza .equiv-icon-wrap { background: rgba(249, 115, 22, 0.06); border-color: rgba(249, 115, 22, 0.12); }
body.light .equiv-pizza:hover { box-shadow: 0 8px 20px rgba(249, 115, 22, 0.07); background: rgba(249, 115, 22, 0.01) !important; border-color: rgba(249, 115, 22, 0.25) !important; }

body.light .equiv-donut .equiv-icon-wrap { background: rgba(236, 72, 153, 0.06); border-color: rgba(236, 72, 153, 0.12); }
body.light .equiv-donut:hover { box-shadow: 0 8px 20px rgba(236, 72, 153, 0.07); background: rgba(236, 72, 153, 0.01) !important; border-color: rgba(236, 72, 153, 0.25) !important; }

body.light .equiv-soda .equiv-icon-wrap { background: rgba(59, 130, 246, 0.06); border-color: rgba(59, 130, 246, 0.12); }
body.light .equiv-soda:hover { box-shadow: 0 8px 20px rgba(59, 130, 246, 0.07); background: rgba(59, 130, 246, 0.01) !important; border-color: rgba(59, 130, 246, 0.25) !important; }

body.light .equiv-apple .equiv-icon-wrap { background: rgba(16, 185, 129, 0.06); border-color: rgba(16, 185, 129, 0.12); }
body.light .equiv-apple:hover { box-shadow: 0 8px 20px rgba(16, 185, 129, 0.07); background: rgba(16, 185, 129, 0.01) !important; border-color: rgba(16, 185, 129, 0.25) !important; }

body.light .equiv-swim .equiv-icon-wrap { background: rgba(6, 182, 212, 0.06); border-color: rgba(6, 182, 212, 0.12); }
body.light .equiv-swim:hover { box-shadow: 0 8px 20px rgba(6, 182, 212, 0.07); background: rgba(6, 182, 212, 0.01) !important; border-color: rgba(6, 182, 212, 0.25) !important; }

body.light .equiv-cycle .equiv-icon-wrap { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.12); }
body.light .equiv-cycle:hover { box-shadow: 0 8px 20px rgba(245, 158, 11, 0.07); background: rgba(245, 158, 11, 0.01) !important; border-color: rgba(245, 158, 11, 0.25) !important; }

body.light .equiv-yoga .equiv-icon-wrap { background: rgba(139, 92, 246, 0.06); border-color: rgba(139, 92, 246, 0.12); }
body.light .equiv-yoga:hover { box-shadow: 0 8px 20px rgba(139, 92, 246, 0.07); background: rgba(139, 92, 246, 0.01) !important; border-color: rgba(139, 92, 246, 0.25) !important; }

body.light .equiv-weight .equiv-icon-wrap { background: rgba(100, 116, 139, 0.06); border-color: rgba(100, 116, 139, 0.12); }
body.light .equiv-weight:hover { box-shadow: 0 8px 20px rgba(100, 116, 139, 0.07); background: rgba(100, 116, 139, 0.01) !important; border-color: rgba(100, 116, 139, 0.25) !important; }

/* ── History Controls & Average Metrics ── */
.history-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.history-average-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.light .history-average-card {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}

.history-actions {
  display: flex;
  gap: 8px;
}

.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;
}

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

/* ── Weight/Calorie Projection Card ── */
.projection-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 20px;
}

.proj-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.proj-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
}

.proj-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.proj-badge.cut {
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.proj-val {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.proj-unit {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.proj-desc {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.45;
}

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

body.light .proj-badge.cut {
  background: rgba(8, 145, 178, 0.08);
  color: #0891b2;
  border-color: rgba(8, 145, 178, 0.15);
}

body.light .proj-val {
  color: #0f172a;
}

body.light .proj-desc {
  color: #475569;
}

/* ── Theme Button Overrides ── */
.rb-btn-primary {
  background: rgba(6, 182, 212, 0.1) !important;
  border-color: rgba(6, 182, 212, 0.25) !important;
  color: var(--tool-cyan) !important;
}

.rb-btn-primary:hover {
  background: rgba(6, 182, 212, 0.16) !important;
  border-color: rgba(6, 182, 212, 0.35) !important;
  color: var(--text) !important;
}

body.light .rb-btn-primary {
  background: rgba(8, 145, 178, 0.08) !important;
  border-color: rgba(8, 145, 178, 0.2) !important;
  color: var(--tool-cyan) !important;
}

body.light .rb-btn-primary:hover {
  background: rgba(8, 145, 178, 0.12) !important;
  border-color: rgba(8, 145, 178, 0.35) !important;
  color: var(--tool-cyan-hover) !important;
}

/* ── History Table Control & Styling ── */
.history-average-card b {
  color: var(--text);
}

body.light .history-average-card b {
  color: #0f172a;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

body.light .table-wrap {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.015);
}

.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;
}

.history-table td {
  padding: 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);
}

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;
}

/* ── Interactive Tooltips ── */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-2);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  cursor: help;
  transition: all 0.2s;
  vertical-align: middle;
}

.tooltip-wrap:hover {
  background: var(--tool-cyan);
  color: #fff;
}

body.light .tooltip-wrap {
  background: rgba(0, 0, 0, 0.06);
}

.tooltip-text {
  visibility: hidden;
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 200px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-wrap:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Print Styles ── */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .page-border {
    border: none !important;
    padding: 0 !important;
  }
  .equiv-card {
    border: 1.5px solid #9ca3af !important;
    background: #fff !important;
    color: #000 !important;
    break-inside: avoid;
  }
}
