#chat-container {
  position: fixed;
  display: none;
  bottom: 20px;
  right: 50%;
  translate: 50%;
  width: 300px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

#chat-header {
  /*background: #007bff;*/
  background: #367a8d;
  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: 250px;
  overflow-y: auto;
  padding: 10px;
  background: #f9f9f9;
}

#chat-input-container {
  display: block;
  padding: 10px;
  border-top: 1px solid #ccc;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#send-button {
  /*background: #007bff;*/
  background: #367a8d;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 5px;
}

#send-button:hover {
  background: #4ca1af;
}

#chat-loading {
  color: #367a8d;
  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: #0066cc;
  text-decoration: underline;
}
