/* Área de rolagem do chat */

.chat-container {
  height: calc(80vh - 118px);
  overflow-y: auto;
  background-color: #f5f6fa;
}

/* Estilo base dos balões de mensagem */

.msg-bubble {
  max-width: 75%;
  padding: 10px 15px;
  border-radius: 15px;
  word-wrap: break-word;
}

/* Mensagem enviada pelo usuário (alinhada à direita) */

.msg-sent {
  background-color: #0d6efd;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

/* Mensagem recebida (alinhada à esquerda) */

.msg-received {
  background-color: #ffffff;
  color: #212529;
  align-self: flex-start;
  border-bottom-left-radius: 0;
  border: 1px solid #dee2e6;
}

/* Ocultar barra de rolagem (opcional para um visual mais limpo) */

.chat-container::-webkit-scrollbar {
  width: 6px;
}

.chat-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

/* Garantindo a cor azul (background e borda) na mensagem do usuário */

.msg-sent {
  background-color: #0d6efd;
  border: 1px solid #0d6efd;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

/* Animação de Digitação (3 pontinhos) */

.typing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  padding: 0 5px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: #adb5bd;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

/* Atraso na animação para criar o efeito de onda */

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

/* Keyframes da animação */

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Estilo para as miniaturas de vídeo genéricas */

.video-thumbnail {
  width: 80px;
  height: 50px;
  background-color: #343a40;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.video-thumbnail:hover {
  opacity: 0.8;
  color: white;
}

.attachment-section {
  font-size: 0.85rem;
}

