/* Estilos generales */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Estilos para el contenedor del chat */
#chatContainer {
  background-color: #f8f9fa;
  min-height: 0;
}

/* Estilos para los mensajes */
.message-content {
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Estilos para el indicador de "escribiendo" */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  height: 17px;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #6c757d;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
  animation: typingAnimation 1s infinite;
}

.typing-indicator span:nth-child(2) {
  animation: typingAnimation 1s infinite 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation: typingAnimation 1s infinite 0.4s;
}

@keyframes typingAnimation {
  0% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
}

/* Estilos para el historial de chats */
.chat-history-item {
  transition: background-color 0.2s;
}

.chat-history-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos para el textarea de mensaje */
#messageInput {
  resize: none;
  max-height: 150px;
}

/* Estilos para las cards de productos */
.card {
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para archivos adjuntos */
.file-preview-item {
  max-width: 100%;
}