﻿/* Stile coerente con i colori REALHELP */
#chatbot .card-header {
  background: linear-gradient(90deg, #F97B2A 0%, #FF9E3c 100%);
  color: #fff;
}

#sendBtn {
  background: linear-gradient(90deg, #F97B2A 0%, #FF9E3C 100%);
  border: none;
  color: #fff;
}

#sendBtn:hover {
  opacity: 0.9;
}

.msg.bot .badge {
  background: linear-gradient(90deg, #FFA14C 0%, #FFC47A 100%);
  color: #5A3E1A; /* Testo bruno chiaro per contrasto ottimale */
  font-weight: 500;
}


.msg.user .badge {
  background: #6c757d; /* Grigio per messaggi dell'utente */
   margin-bottom: 0.5rem; color: #fff;
}
#chatbot {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
/* Forza il colore del bot su tutto ciò che usa bg-primary */
.badge.bg-primary {
  background: linear-gradient(90deg, #F97B2A 0%, #FF9E3C 100%) !important;
  color: #fff !important;
  border: none !important;
}
.badge a {
  color: #F97B2A !important;
  text-decoration: underline;
  font-weight: 600;
}

.badge a:hover {
  color: #d45d00 !important;
  text-decoration: none;
}


/* Animazione "Assistente sta cercando..." */
.bot-loading {
  background: #f4f4f4;
  color: #333;
  border: 1px solid #ddd;
  font-style: italic;
  padding: 6px 10px;
}

.dot {
  height: 6px;
  width: 6px;
  background-color: #F97B2A;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: blink 1.2s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}
