/* Novo estilo moderno e dark glam */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1f1c2c, #928DAB);
  color: #eaeaea;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: background 0.4s ease, color 0.4s ease;
}

body.dark-mode {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #f0f0f0;
}

/* Container do formulário */
section#form {
  background-color: rgba(33, 33, 33, 0.95);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 420px;
  width: 100%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
}

body.dark-mode section#form {
  background-color: rgba(20, 20, 30, 0.95);
}

/* Formulário */
form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-left: 20px;
}

fieldset {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  
}

label {
  font-weight: 600;
  font-size: 15px;
  color: #c5c5c5;
}

/* Inputs */
input[type="text"] {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #444;
  font-size: 15px;
  background-color: #2a2b3c;
  color: #f5f5f5;
  transition: all 0.3s ease;
}

input[type="text"]:focus {
  border-color: #7f5af0;
  outline: none;
  background-color: #35364a;
}

body.dark-mode input[type="text"] {
  background-color: #2d2f45;
  color: #e2e2e2;
  border-color: #555;
}

span {
  font-size: 13px;
  color: #999;
}

/* Botões */
button {
  padding: 14px;
  background: linear-gradient(to right, #7f5af0, #5ddcff);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
  transform: scale(1.04);
  box-shadow: 0 0 15px rgba(127, 90, 240, 0.6);
}

/* Área de resultado */
#calcImc {
  margin-top: 24px;
  padding: 18px;
  background-color: #2f2f3f;
  border-radius: 10px;
  font-size: 15px;
  color: #eaeaea;
  border-left: 4px solid #7f5af0;
  transition: all 0.3s ease;
}

body.dark-mode #calcImc {
  background-color: #262636;
  color: #f3f3f3;
}
