/* Sticky page-level action bar sits just below the navbar */
#pageBar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 575px) {
  .card-body {
    padding: 1rem;
  }
}

/* Subtle section-number badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  font-weight: lighter;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.card-title,
.form-label {
  font-weight: lighter;
}

/* ── Form control overrides ────────────────────────────────────────────────── */
#mortgageForm .form-control,
#mortgageForm .form-select {
  color: var(--primary-text, #fff);
}

#mortgageForm .form-control::placeholder {
  color: var(--secondary-text, #b4b4b4);
  opacity: 1;
}

/* ── Result stat blocks ────────────────────────────────────────────────────── */
.result-stat {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  text-align: center;
}

.result-label {
  font-size: 0.75rem;
  color: var(--secondary-text, #b4b4b4);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.result-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-text, #fff);
}

/* ── Amortization table ────────────────────────────────────────────────────── */
#scheduleSection .table th {
  font-weight: lighter;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

#scheduleSection .table td {
  font-size: 0.875rem;
  white-space: nowrap;
}
