@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

/* BODY — não responsivo, apenas centraliza */
body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CONTAINER — conversor */
.container {
  background: rgba(255, 255, 255, 0.95);
  width: 420px;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  animation: fadeIn 0.6s ease;
  transition: width 0.3s ease, padding 0.3s ease;
}

/* Título */
h1 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 25px;
  color: #333;
}

/* Inputs e selects */
select,
input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  transition: all 0.3s ease;
}

select:focus,
input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102,126,234,0.2);
  animation: focusPulse 0.3s ease;
}

/* Botão de troca */
.swap {
  width: 48px;
  height: 48px;
  margin: 10px auto;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  cursor: pointer;
  background: #f0f2ff;
  color: #555;
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swap:hover {
  background: #667eea;
  color: #fff;
  transform: rotate(180deg);
}

.swap:active {
  transform: scale(0.9) rotate(180deg);
}

/* Botões */
button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

button:active {
  transform: scale(0.97);
}

/* Resultado */
#resultado {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  background: #f4f6ff;
  color: #333;
  font-weight: 600;
  text-align: center;
  min-height: 45px;
  transition: all 0.3s ease;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes focusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102,126,234,0.4);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(102,126,234,0);
  }
}

.result-anim {
  animation: pop 0.4s ease;
}

@keyframes pop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  60% {
    transform: scale(1.03);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* RESPONSIVIDADE — apenas o conversor */

/* Tablet */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 26px;
  }
}

/* Celular */
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 28px;
    border-radius: 0;
  }

  h1 {
    font-size: 20px;
  }

  select,
  input,
  button {
    font-size: 14px;
    padding: 12px;
  }

  #resultado {
    font-size: 14px;
  }
}

/* Telas grandes */
@media (min-width: 1200px) {
  .container {
    width: 460px;
  }
}




