body {
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}


.container {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  padding: 1.2rem 1rem;
  max-width: 600px;
  width: 100%;
  margin: 2rem;
  text-align: center;
}
header {
  margin-bottom: 1rem;
}
h1 {
  font-size: 1.5rem;
  color: #2196f3;
  margin: 0;
}
form#prediction-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.form-group {
  flex: 1 1 45%;
  min-width: 220px;
  margin-bottom: 0.5rem;
  text-align: left;
}
.gender-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.gender-group label {
  margin-bottom: 0;
}
select, input[type="radio"] {
  font-size: 1rem;
  padding: 0.3rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  margin-bottom: 0.2rem;
}
button[type="submit"] {
  width: 100%;
  background: linear-gradient(90deg, #f6d365 0%, #fda085 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
  background: linear-gradient(90deg, #fda085 0%, #f6d365 100%);
  transform: translateY(-2px) scale(1.03);
}
.spinner {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2196f3;
  font-weight: bold;
  font-size: 1.1rem;
}
.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #2196f3;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin-bottom: 0.5rem;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
.result {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  display: none;
  transition: background 0.5s, color 0.5s;
}
.result.low { background: #ffe0e0; color: #b71c1c; }
.result.medium { background: #fff8e1; color: #fbc02d; }
.result.high { background: #e0ffe0; color: #388e3c; }
.result.excellent {
  background: #2196f3; /* Azul brillante */
  color: #fff;
  animation: pop 0.7s;
  box-shadow: 0 0 16px #2196f3, 0 0 32px #6dd5ed;
}
@keyframes pop {
  0% { transform: scale(0.7);}
  70% { transform: scale(1.1);}
  100% { transform: scale(1);}
}
@media (max-width: 600px) {
  form#prediction-form {
    flex-direction: column;
    gap: 0.5rem;
  }
  .form-group {
    min-width: 100%;
  }
}