:root {
  --verde: #00fc0d;
  --fundo-modal: #1c1c1c;
  --borda: #f1ee04;
  --texto: #ffffff;
  --fonte: 'Inter', sans-serif;
}

/* Ícone de olho (mostrar senha) */
#passwordclasse {
  font-size: 1.5rem;
  cursor: pointer;
  animation: tremida 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
}

/* Botão de fechar (X) */
#fecharconfig {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  background-color: #ff1744;
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  animation: pulse 3s infinite ease-in-out;
}

/* Título da seção */
#configapititle {
  color: var(--verde);
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

/* Rótulo da API */
#configapilabel {
  color: #f1f1f1;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Ícone de engrenagem no topo */
#configuracao {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  animation: girar 4s infinite linear;
  color: var(--verde);
}

/* Container do painel de configurações */
#configuracoes {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 480px;
  background-color: var(--fundo-modal);
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid var(--verde);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  z-index: 1001;
  display: none;
  gap: 1rem;
}

/* Campo da APIKEY */
.input-configAPIKEY {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  background-color: #e9fae0;
  color: #000;
  font-weight: bold;
  text-align: center;
}

.input-configAPIKEY:hover {
  background-color: var(--verde);
  color: #000;
  box-shadow: 0 0 12px rgba(2, 125, 240, 0.5);
}

/* Link de ajuda */
#configuracoes a {
  color: var(--verde);
  font-weight: bold;
  margin-left: 6px;
  text-decoration: underline;
}

/* Animações */
@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes tremida {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(2px); }
  50% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Responsivo */
@media screen and (max-width: 480px) {
  #fecharconfig {
    font-size: 1.2rem;
    padding: 4px 8px;
  }

  #configapititle {
    font-size: 1.4rem;
  }

  #configapilabel {
    font-size: 1rem;
  }

  .input-configAPIKEY {
    font-size: 0.95rem;
  }
}
