/* BMI Calculator specific styles */

.bmi-category {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: -0.75rem;
}

.bmi-category.under {
  color: #2563eb;
}

.bmi-category.normal {
  color: #059669;
}

.bmi-category.over {
  color: #d97706;
}

.bmi-category.obese {
  color: #dc2626;
}

/* Scale from IMC 15 to 40: segment widths follow the category ranges */
.bmi-scale {
  position: relative;
  display: grid;
  grid-template-columns: 14fr 26fr 20fr 40fr;
  margin: 1.5rem 0 1rem;
  border-radius: 0.5rem;
  overflow: visible;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  text-align: center;
}

.bmi-segment {
  padding: 0.4rem 0.1rem;
  white-space: nowrap;
  overflow: hidden;
}

.bmi-segment.under {
  background: #3b82f6;
  border-radius: 0.5rem 0 0 0.5rem;
}

.bmi-segment.normal {
  background: #10b981;
}

.bmi-segment.over {
  background: #f59e0b;
}

.bmi-segment.obese {
  background: #ef4444;
  border-radius: 0 0.5rem 0.5rem 0;
}

.bmi-marker {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 4px;
  margin-left: -2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: left 0.4s;
}
