* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f1f5f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#formulario {
  background: #ffffff;
  width: 420px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#formulario h1 {
  text-align: center;
  font-size: 28px;
  color: #222;
  margin-bottom: 10px;
}

#formulario h2 {
  text-align: center;
  font-size: 16px;
  color: #666;
  font-weight: normal;
  margin-bottom: 25px;
}

#formulario p {
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

#formulario input[type="number"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
  transition: 0.3s;
}

#formulario input[type="number"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.3);
}

#formulario input[type="button"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#formulario input[type="button"]:hover {
  background: #1d4ed8;
}

#res {
  margin-top: 25px;
  padding: 15px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #d1d5db;
  text-align: center;
  color: #444;
  line-height: 1.5;
}
.tabela-imc {
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
}

.tabela-imc h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.tabela-imc table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tabela-imc th {
  background: #3f51b5;
  color: #fff;
  padding: 15px;
  font-size: 18px;
}

.tabela-imc td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.tabela-imc tbody tr:nth-child(even) {
  background: #f8f8f8;
}

.tabela-imc tbody tr:hover {
  background: #e8f0ff;
  transition: 0.2s;
}

.tabela-imc tbody tr:last-child td {
  border-bottom: none;
}

/* Classe para destacar o resultado */

.ativo {
  background: #4caf50 !important;
  color: white;
  font-weight: bold;
}
