/* styles.css */

/* Fonte moderna do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

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

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  color: #222;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: background 0.3s, color 0.3s;
}

/* Modo escuro */
body.dark-mode {
  background: #121212;
  color: #f1f1f1;
}

/* Container do formulário */
section#form {
  background-color: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  transition: background-color 0.3s, color 0.3s;
}

/* Dark mode para container */
body.dark-mode section#form {
  background-color: #1e1e1e;
}

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

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

label {
  font-weight: bold;
  margin-bottom: 5px;
}

/* Inputs */
input[type="text"] {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background-color: #fff;
  color: #000;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

input[type="text"]:focus {
  border-color: #007BFF;
  outline: none;
}

/* Dark mode para inputs */
body.dark-mode input[type="text"] {
  background-color: #2a2a2a;
  color: #f1f1f1;
  border-color: #444;
}

span {
  font-size: 14px;
  color: #555;
}

/* Botões */
button {
  padding: 12px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #0056b3;
  transform: scale(1.03);
}

/* Área de resultado */
#calcImc {
  margin-top: 20px;
  padding: 15px;
  background-color: #f1f5f9;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

/* Modo escuro para resultado */
body.dark-mode #calcImc {
  background-color: #2a2a2a;
  color: #e0e0e0;
}
