/* assets/css/style-weight.css */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #2c3e50;
  direction: rtl;
  line-height: 1.6;
}

main {
  max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
    background: #ffffff;
    border: 2px solid #3a997a;
    border-radius: 8px;
}

h1 {
  color: #3a997a;
  text-align: center;
  margin-bottom: 1rem;
}

form {
  background-color: white;
  border-radius: 8px;
  padding: 1rem 1.5rem 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(58, 153, 122, 0.15);
}

label {
  display: block;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
}

input[type="number"],
select {
  width: 100%;
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #cadad6;
  font-family: inherit;
  direction: rtl;
}
input[type="number"]:focus,
select:focus {
  border-color: #3a997a;
  outline: none;
}

.form-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

button {
  background-color: #3a997a;
  border: none;
  padding: 0.6rem 1.5rem;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2a735b;
}

#results {
  margin-top: 2rem;
  background: white;
  padding: 1rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 4px 9px rgba(58, 153, 122, 0.1);
  color: #284a3b;
  font-weight: 600;
  font-size: 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.bmi-category {
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  color: white;
  user-select: none;
}
.bmi-category.underweight {
  background-color: #ff6b6b;
}
.bmi-category.normal {
  background-color: #3a997a;
}
.bmi-category.overweight {
  background-color: #f8c63b;
  color: #3a997a;
}
.bmi-category.obese {
  background-color: #d63447;
}

/* Info sections */
.info-section {
  max-width: 800px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: #194d3f;
}

.info-section h2 {
  margin-top: 0;
  color: #3a997a;
}

.info-section ul {
  margin-top: 0.6rem;
  list-style: inside disc;
  padding-right: 1.3rem;
}

.info-section dl dt {
  font-weight: 700;
  margin-top: 1rem;
}

.info-section dl dd {
  margin-right: 1rem;
  margin-left: 0;
  font-style: normal;
}

/* Responsive */
@media (max-width: 480px) {
  .form-buttons {
    flex-direction: column;
  }
}