/* Paleta de Cores Modernas (Dark Theme) */
:root {
  --bg-color: #121212; /* Fundo quase preto */
  --surface-color: #1e1e1e; /* Cor do card */
  --primary-accent: #10b981; /* Verde esmeralda vibrante */
  --primary-accent-hover: #059669; /* Verde mais escuro para hover */
  --text-primary: #e0e0e0; /* Texto principal (branco suave) */
  --text-secondary: #a0a0a0; /* Texto secundário (cinza claro) */
  --border-color: #333333; /* Cor da borda sutil */
}

/* Reset básico e estilos globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

/* Estilos do Body */
body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  flex-direction: column; /* Para alinhar logo e main verticalmente */
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Logo */
.logo {
  width: 250px;
  display: block;
  margin-bottom: 30px; /* Espaço entre o logo e o card */
  filter: drop-shadow(
    0 0 50px rgba(138, 81, 252, 0.2)
  ); /* Sombra sutil com a cor original */
  filter: hue-rotate(-100deg);
  border-radius: 20px;  
}

/* Card Principal */
main {
  background-color: var(--surface-color);
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

/* Labels e Inputs */
label {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 8px; /* Espaçamento entre label e input */
  display: block;
}

label b {
  font-weight: 700;
  color: var(--text-primary);
}

select,
input {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 52px;
  width: 100%;
  margin-bottom: 20px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
  appearance: none;
  /* Seta customizada para o select (SVG embutido) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23A0A0A0' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

select:focus,
input:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Botão de Conversão */
button.convert-button {
  background: var(--primary-accent);
  border-radius: 8px;
  width: 100%;
  border: none;
  height: 52px;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

button.convert-button:hover {
  background: var(--primary-accent-hover);
}

button.convert-button:active {
  transform: scale(0.98);
}

/* Seção de Resultados */
section {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 30px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around; /* Distribui o espaço */
  background-color: var(--bg-color);
}

.arrow-img {
  margin: 15px 0;
}

.currency-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.currency-box img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.currency {
  color: var(--text-secondary);
  font-size: 14px;
}

.currency-value,
.currency-value-to-convert {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  word-break: break-all; /* Garante que valores longos não quebrem o layout */
}

/* Destaque para o valor convertido final */
.currency-value {
  color: var(--primary-accent);
}
