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

body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  width: 340px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #0f172a;
}

input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  outline: none;
}

input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 5px rgba(34,197,94,0.4);
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #22c55e;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #16a34a;
}

.erro {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}

.resultado-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  padding: 15px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
}

.resultado-total {
  background: #dcfce7;
  color: #166534;
}

.resultado-juros {
  background: #fee2e2;
  color: #991b1b;
}

.resultado-parcela {
  background: #dbeafe;
  color: #1e3a8a;
}

.btn-reset {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #334155;
  color: white;
  border: none;
  cursor: pointer;
}