/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100vh;
  background-color: #f9fafb;
  color: #111827;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== CONTAINER ===== */
.app-container {
  background: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  transition: box-shadow 0.3s ease;
}

.app-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

h2 {
  text-align: center;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #111827;
}

/* ===== INPUTS COM SÍMBOLO $ ===== */
.input-group {
  margin-bottom: 1.25rem;
}

.currency-field {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  color: #6b7280;
  font-size: 1rem;
  pointer-events: none; /* evita interferir no clique */
}

.currency-field input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2rem; /* espaço à esquerda para o símbolo $ */
  font-size: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.currency-field input:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.4);
}

/* ===== BOTÃO ===== */
button {
  width: 100%;
  background-color: #6366f1;
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.1s ease;
}

button:hover {
  background-color: #4f46e5;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}


/* ===== RESULTADO ===== */
#result-container {
  text-align: center;
  margin-top: 1.5rem;
}

#total {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111827;
  background-color: #eef2ff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

#total.show {
  opacity: 1;
  transform: translateY(0);
}
