﻿/* Loader puntini per messaggio in attesa */
.loading::after {
  content: '';
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1s steps(5, end) infinite;
}

/* Keyframes animazione loader */
@keyframes dots {
  0%, 20% {
    content: '';
  }

  40% {
    content: '.';
  }

  60% {
    content: '..';
  }

  80%, 100% {
    content: '...';
  }
}

/* Chat messages */
.chat-message.user {
  background-color: #DCF8C6;
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 5px;
}

.chat-message.assistant {
  background-color: #F1F0F0;
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 5px;
}

/* Icona flottante */
#chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #007bff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Finestra chat popup (icona flottante) */
#chat-window {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 400px; /* nuova larghezza */
  height: 500px; /* nuova altezza */
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
}
