@charset "UTF-8";
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea, #764ba2);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #333;
}

.container {
  background: #fff;
  max-width: 400px;
  width: 100%;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  text-align: center;
}

h1 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #4a47a3;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #555;
}

input[type="number"] {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="number"]:focus {
  border-color: #4a47a3;
  outline: none;
  box-shadow: 0 0 8px rgba(74, 71, 163, 0.3);
}

button {
  background: #4a47a3;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.75rem 0;
  width: 100%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(74, 71, 163, 0.4);
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}

button:hover {
  background: #3a3785;
}

#resultado {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: inset 0 0 8px rgba(74, 71, 163, 0.1);
  color: #333;
  font-size: 1rem;
  text-align: left;
  min-height: 150px;
}

#resultado h3 {
  margin-bottom: 1rem;
  color: #4a47a3;
  font-weight: 700;
  font-size: 1.25rem;
}

.detalhe {
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.positivo {
  color: #2e7d32;
}

.negativo {
  color: #c62828;
}

/* Responsividade */
@media (max-width: 450px) {
  .container {
    padding: 2rem 1rem;
    max-width: 100%;
  }
}
