/* Mensajes generales */
#chat-messages {
  flex: 1;                  /* ocupa todo el espacio disponible */
  overflow-y: auto;          /* scroll vertical */
  padding: 10px;
  box-sizing: border-box;
}
/* Mensajes del usuario (derecha) */
.user-message {
  align-self: flex-end;
  background: #123263;
  color: #fff;
  border-radius: 12px 12px 0 12px;
  padding: 8px 12px;
  max-width: 75%;        /* que no ocupe todo el ancho */
  margin-right: 5px;     /* separación del borde */
}
/* Mensajes del bot (izquierda) */
.bot-message {
  align-self: flex-start;
  background: #e1f5fe;
  color: #000;
  border-radius: 12px 12px 12px 0;
  padding: 8px 12px 8px 32px;  /* espacio para radar */
  max-width: 75%;
  margin-left: 5px;      /* separación del borde */
  position: relative;
}
/* Icono robot en mensaje bot */
.bot-message::before {
  position: absolute;
  left: 8px;
  top: 6px;
  font-size: 16px;
}

/* Radar del bot */
.bot-message .pulse,
.bot-message .radar {
  position: absolute;
  left: -16px;             /* siempre pegado al inicio de la burbuja */
  top: 14%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #4CAF50;
  border-radius: 50%;
  /* animation: pulse-animation 1.5s infinite; */
}

/* Mensaje de Andrea */
.andrea-message {
    align-self: flex-start;
    background: #e1f5fe; /* mismo color que bot */
    color: #000;
    border-radius: 12px 12px 12px 0;
    padding: 8px 12px 8px 32px;
    max-width: 75%;
    margin-left: 5px;
    position: relative;
}

/* Radar de Andrea */
.andrea-message .radar {
    position: absolute;
    left: -16px;
    top: 14%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ff69b4;     /* Rosa fuerte */
    border-radius: 50%;
    /* animation: pulse-animation 1.5s infinite; */
    box-shadow: 0 0 5px 2px #ff69b4; /* brillo rosa */
}
.bot-message {
  align-self: flex-start;
  background: #e1f5fe;
  color: #000;
  border-radius: 12px 12px 12px 0;
  padding: 8px 12px 8px 32px;  /* <- este 32px da espacio para el radar */
  max-width: 75%;
  margin-left: 5px;
  position: relative;
}

/* Indicador chat online */
#chat-online-indicator {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

#chat-online-indicator .pulse {
  width: 16px;
  height: 16px;
  background: #4CAF50;
  border-radius: 50%;
  animation: pulse-animation 1.5s infinite;
}


.chat-message {
  max-width: 70%;
  margin: 5px;
  padding: 8px 15px;
  border-radius: 12px;
  position: relative;
  display: inline-block;
  word-wrap: break-word;
  left:10px;
}

.message-time {
  font-size: 0.7rem;
  color: gray;
  display: block;
  text-align: right;
  margin-top: 3px;
}

.typing-indicator {
  display: inline-block;
  font-size: 16px;
  color: #888;
  padding-left: 4px;
}

.typing-indicator span {
  animation: blink 1.4s infinite;
}

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

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

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


