* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f0f4f8;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 8px;
  color: #1e293b;
}

p.subtitle {
  font-size: 0.9rem;
  text-align: center;
  color: #64748b;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #334155;
}

input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="number"]:focus {
  border-color: #3b82f6;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

button {
  flex: 1;
  padding: 11px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-submit {
  background: #2563eb;
  color: #fff;
}

.btn-submit:hover {
  background: #1d4ed8;
}

.btn-reset {
  background: #e2e8f0;
  color: #475569;
}

.btn-reset:hover {
  background: #cbd5e1;
}

/* Hasil Perhitungan */
.result-box {
  margin-top: 24px;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  display: none;
}

.result-box.kurang {
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #0369a1;
}

.result-box.normal {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
}

.result-box.lebih {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #b45309;
}

.result-box.obesitas {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.score {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 6px 0;
}

.category {
  font-size: 1.1rem;
  font-weight: 700;
}

.info-desc {
  font-size: 0.85rem;
  margin-top: 6px;
}

/* Tabel Referensi */
.table-section {
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.table-section h2 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #475569;
  text-align: center;
}

table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
}

th {
  color: #64748b;
  font-weight: 600;
}

td:last-child {
  text-align: right;
}
