body {
  font-family: "Roboto", sans-serif;
  background-color: #e9ecef;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
#chat {
  width: 100%;
  max-width: 420px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box; /* Inclui padding e border na largura total */
}

#messages {
  flex-grow: 1;
  max-height: 400px; /* Define uma altura máxima para o chat */
  padding: 20px;
  overflow-y: auto;
  border-bottom: 1px solid #ddd;
  scroll-behavior: smooth; /* Adiciona rolagem suave */
  box-sizing: border-box; /* Inclui padding na altura total */
}
/* Estilização da barra de rolagem */
#messages::-webkit-scrollbar {
  width: 8px;
}
#messages::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 4px;
}
#messages::-webkit-scrollbar-track {
  background-color: #f1f3f4;
}
.message {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.message b {
  margin-bottom: 5px;
  font-weight: 500;
}
.message.you {
  align-items: flex-end;
}
.message.you b {
  color: #007bff;
}
.message.you {
  align-items: flex-end;
  background-color: #e3f2fd;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  align-self: flex-end;
}

.message.tibita {
  align-items: flex-start;
}
.message.tibita b {
  color: #ff0000;
}
.message.tibita {
  align-items: flex-start;
  background-color: #fde3e3;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  align-self: flex-start;
}
#inputContainer {
  display: flex;
  border-top: 1px solid #ddd;
  background-color: #fff;
  padding: 10px;
}
#messageInput {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 50px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s;
}
#messageInput:focus {
  border-color: #007bff;
}
button {
  padding: 0 15px;
  margin-left: 10px;
  background: #007bff;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
button:hover {
  background: #0056b3;
}
button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
button svg {
  width: 20px;
  height: 20px;
}
#endMessage {
  padding: 20px;
  text-align: center;
}

#endMessage p {
  margin: 0; /* Remove margens para o alinhamento mais preciso */
}

#endMessage button {
  display: inline-block; /* Garante que o botão fique centralizado */
  margin-top: 10px;
  background-color: #28a745; /* Verde para o botão de reinício */
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 16px;
  color: white; /* Adiciona cor ao texto do botão */
  text-decoration: none; /* Remove sublinhado */
  border: none; /* Remove bordas padrão do botão */
}

#endMessage button:hover {
  background-color: #218838; /* Verde escuro no hover */
}

.hidden {
  display: none;
}

#inputHelpText {
  font-size: 12px;
  color: #888;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.no-select {
  user-select: none; /* Para navegadores modernos */
  -webkit-user-select: none; /* Para Safari */
  -moz-user-select: none; /* Para Firefox */
  -ms-user-select: none; /* Para Internet Explorer/Edge */
  pointer-events: none; /* Opcional: impede que o texto seja clicado */
}
