#chat-container {
  position: relative;
  display: block;
  top: 0%;
  right: -5%;
  /*translate: 50%;*/
  width: 90%;
  height: 70%;
  background: white;
  /*border: 1px solid #ccc;*/
  border: none;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(250, 244, 244, 0.733);
  font-family: Arial, sans-serif;
  z-index: 9999;
}

#chat-header {
  /*background: #007bff;*/
  background: linear-gradient(135deg, #115293, #1e1e2f);
  cursor: pointer;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
}

#chat-messages {
  height: 80%;
  overflow-y: auto;
  padding: 10px;
  background: #f9f9f9;
}

#chat-input-container {
  height: 10%;
  padding: 5px;
  border-top: 1px solid #ccc;

  display: flex; /* Faz tudo ficar lado a lado */
  flex-direction: row;
  align-items: center; /* Alinha verticalmente */
  gap: 10px; /* Espaço entre textarea e botão */
}

#chat-input {
  /*flex: 1;*/
  top: 25%;
  height: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.input-multiline {
  width: 90%;
  height: 80%; /* Altura fixa como um input */
  resize: none; /* Impede o usuário de redimensionar */
  overflow-y: auto; /* Rola verticalmente */
  overflow-x: hidden; /* Esconde barra horizontal */
  white-space: pre-wrap; /* Força quebra de linha */
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: Arial, sans-serif; /* Igual ao input */
  box-sizing: border-box;
}

#send-button {
  /*background: #007bff;*/
  background: linear-gradient(135deg, #115293, #1e1e2f);
  color: white;
  border: none;
  padding: 8px 15px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 5px;
}

#send-button:hover {
  background: linear-gradient(135deg, #1576cc, #2a2a3c);
  transform: translateY(-2px);
}

#chat-loading {
  color: #073763;
  font-size: 1em;
  display: none;
  position: absolute;
  right: 40%;
}

.blink {
  animation: blink-animation 1s steps(7, start) infinite;
}

@keyframes blink-animation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/*****************************************************/

/* Balões de mensagem formatados */
.chat-bubble {
  padding: 8px;
  margin: 5px 0;
  border-radius: 5px;
  color: black;
  max-width: 100%;
  word-wrap: break-word;
  white-space: pre-wrap;
  background-color: #f1f1f1;
}

/* Alinhamento */
.user-message {
  background-color: #d1e7fd;
  align-self: flex-end;
  text-align: right;
}

.bot-message {
  background-color: #e2e2e2;
  align-self: flex-start;
}

/* Markdown formatado dentro do balão */
.chat-bubble ul,
.chat-bubble ol {
  padding-left: 20px;
  margin: 6px 0;
}

.chat-bubble li {
  margin-bottom: 4px;
}

.chat-bubble pre {
  background-color: #f4f4f4;
  padding: 10px;
  overflow-x: auto;
  border-radius: 5px;
  margin: 6px 0;
}

.chat-bubble code {
  background-color: #eee;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
}

.chat-bubble a {
  color: #073763;
  text-decoration: underline;
}
