/* Chatbot container */
.chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-height: 400px;
  background: #1f1f1f;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  display: none; /* chiusa all'inizio */
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
  z-index: 9999;
  transition: all 0.3s ease;
}

/* Mostra chat */
.chatbot-container.open {
  display: flex;
}

/* Header */
.chatbot-header {
  background: linear-gradient(90deg, #f54ea2, #ff7676);
  color: white;
  padding: 12px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  border-bottom: 1px solid #ff7676;
}

/* Messaggi */
.chatbot-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.message {
  margin: 4px 0;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
}

.message.bot {
  background-color: #2a2a2a;
  color: white;
  align-self: flex-start;
}

.message.user {
  background-color: #ff7676;
  color: white;
  align-self: flex-end;
}

/* Pulsanti opzioni */
.options button {
  background: linear-gradient(135deg, #f54ea2, #ff7676);
  color: white;
  border: none;
  padding: 6px 14px;
  margin: 4px 4px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.options button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #ff7676aa;
}

/* Link nel bot */
.chat-link-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #f54ea2, #ff7676);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.chat-link-btn:hover {
  color: black;
  transform: scale(1.05);
  box-shadow: 0 0 10px #ff7676aa;
}

/* Bottone chat sempre visibile */
.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #f54ea2, #ff7676);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 10000;
}
