.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 345px;
  max-height: 500px;
  background: #1f1f1f;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  font-family: 'Segoe UI', sans-serif;
  z-index: 9999;
  overflow: hidden;
  display: none;
  border: 1px solid #333;
  color: #eaeaea;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chatbot-header {
  background: #272727;
  color: #eee;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
}

#langToggle {
  cursor: pointer;
  background: #111;
  color: #eee;
  border: none;
  padding: 3px 5px;
  font-size: 14px;
  border-radius: 6px;
}

.langToggle-btn {
    all: unset;
    cursor: pointer;
    background: #111;
    border: none;
}

.langToggle-btn:hover {
  color: #222;
}

.chatbot-close {
  cursor: pointer;
  font-size: 16px;
  color: #bbb;
  transition: color 0.2s;
  border: none;
}

.chatbot-close:hover {
  color: #fff;
}

.chatbot-messages {
  padding: 12px;
  height: 200px;
  overflow-y: auto;
  font-size: 14px;
  background: #2c2c2c;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  overflow: hidden;
}

.chatbot-footer {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: #242424;
  border-top: 1px solid #333;
}

.chatbot-footer input {
  flex: 1;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #1c1c1c;
  color: #eee;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.chatbot-footer input:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 4px #4a90e280;
}

.chatbot-footer button {
  padding: 6px 10px;
  font-size: 14px;
  border: none;
  background: #4a90e2;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.chatbot-footer button:hover {
  background: #3b78c2;
}

/* Estilo para as mensagens do usuário */
.user-message {
  color: #add8e6;
  background-color: #111; /* Cor azul para a mensagem do usuário */
  padding: 8px;
  border-radius: 5px;
  margin-bottom: 10px;
  margin-left: 10px;
  max-width: 85%;
  word-wrap: break-word;
  font-size: 16px;
  text-align: left;
}

/* Estilo para as mensagens do bot */
.bot-message {
  color: white;
  background-color: #222; /* Cor de fundo suave para o bot */
  padding: 8px;
  border-radius: 5px;
  margin-bottom: 10px;
  max-width: 100%;
  word-wrap: break-word;
  font-size: 14px;
  text-align: center;
  overflow: hidden;
}

#mic-icon {
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

#mic-icon.listening {
  color: red;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
