/* ============================================================
   REVERSE BMI CALCULATOR — STYLESHEET
   reverse-bmi.css  |  Light Mode Only (matches shared.css)
   ============================================================ */

/* ── Custom Properties (Specific to Reverse BMI) ──────────── */
:root {
  --accent-blue:    var(--blue);
  --accent-purple:  var(--purple);
  --accent-green:   var(--green);
  --accent-orange:  var(--orange);
  --accent-red:     var(--red);
}

/* ── Body & Background ────────────────────────────────────── */
/* Handled by shared.css */

/* ── Card ─────────────────────────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
}

/* ── Forms ────────────────────────────────────────────────── */
.input-wrapper input {
  font-family: 'Inter', sans-serif;
}

/* Unit toggle override for BMI */
.unit-toggle {
  display: flex;
  background: var(--bg-switcher);
  padding: 4px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  margin-top: 6px;
}
.unit-toggle button {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: calc(var(--r-md) - 2px);
  transition: all var(--t) var(--ease);
}
.unit-toggle button.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ── Result Readout ────────────────────────────────────────── */
.bmi-readout-wrap {
  text-align: center;
  padding: 24px;
  background: var(--bg-pref);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  margin: 24px 0;
}

.bmi-val {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--text-1) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.bmi-cat-label {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Range Table ─────────────────────────────────────────── */
.bmi-range-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 12px;
}
.bmi-range-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  border-bottom: 2px solid var(--border);
}
.bmi-range-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.bmi-range-table tr:hover td {
  background: var(--bg-row-hover);
}
.bmi-range-table .row-cat {
  font-weight: 700;
  color: var(--text-1);
}
.bmi-range-table .active-cat td {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-weight: 800;
}

/* ── Reset Buttons ───────────────────────────────────────── */
.btn-reset-sm {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-3);
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
}
.btn-reset-sm:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(220, 38, 38, 0.05);
}
