body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 40px;

  background: linear-gradient(135deg, #1d6ed8, #6a9cff);

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 30px;
}

.card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  width: 350px;

  box-shadow: 0 15px 40px rgba(185, 17, 17, 0.2);
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  font-weight: bold;
}

input {
  margin-top: 5px;
  padding: 10px;

  border-radius: 6px;
  border: 1px solid #ccc;

  font-size: 16px;
}

input:focus {
  outline: none;
  border-color: #1d6ed8;
}

button {
  margin-top: 10px;
  padding: 12px;

  background: linear-gradient(135deg, #1d6ed8, #4f8cff);

  color: white;
  border: none;
  border-radius: 8px;

  font-size: 16px;
  cursor: pointer;

  transition: all 0.25s ease;
}

button:hover {
  transform: translateY(-2px) scale(1.03);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.dark {
  background: #121212;
  color: white;
}

.dark .card {
  background: #1e1e1e;
}

.dark #result {
  background: #2c2c2c;
}

#toggleTheme {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.calculadoras {
  display: flex;
  justify-content: center;
  align-items: flex-start;

  gap: 40px;

  flex-wrap: wrap;
}

.grupo-financeiro {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.result-animation {
  animation: aparecer 0.6s ease;
}

#result {
  margin-top: 20px;
  padding: 15px;

  border-radius: 8px;
  background: #f3f6ff;

  font-size: 18px;
  text-align: center;
}

#resetBtn {
  background: #e74c3c;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;

  transition: 0.3s;
}

#resetBtn:hover {
  background: #c0392b;
  transform: scale(1.03);
}

.buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.buttons button {
  flex: 1;
}

.card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);

  padding: 30px;
  border-radius: 15px;

  width: 350px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

  border: 1px solid rgba(255, 255, 255, 0.3);
}

#result:empty,
#extra:empty,
#resultadoIMC:empty,
#resultadoJuros:empty #resultadoFin:empty {
  display: none;
}


@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#resultadoIMC {
  margin-top: 20px;
  padding: 15px;

  border-radius: 8px;
  background: #f3f6ff;

  font-size: 18px;
  text-align: center;
}

.dark #resultadoIMC {
  background: #2c2c2c;
}

.dark .card {
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark input {
  background: #2c2c2c;
  color: white;
  border: 1px solid #555;
}

.barra-imc {
  width: 100%;
  height: 12px;

  background: #ddd;
  border-radius: 10px;

  margin-top: 15px;
  overflow: hidden;
}

#nivelIMC {
  height: 100%;
  width: 0%;

  transition: 0.5s;
}

#resetIMC {
  background: #e74c3c;
}

#resetIMC:hover {
  background: #c0392b;
}

#resetJuros,
#resetFin {
  background: #e74c3c;
  color: white;
}

#resetJuros:hover,
#resetFin:hover {
  background: #c0392b;
}

.fade-out {
  animation: desaparecer 0.4s ease forwards;
}

@keyframes desaparecer {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
