/* Pulsante per attivare il chatbot */
#chat-toggle {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #fff; /* Teal */
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

#chat-toggle svg {
  display: block;
  margin: auto;
}

/* Chatbox principale */
#chatbox {
  position: fixed;
  bottom: 150px;
  right: 20px;
  width: 400px;
  max-height: 500px;
  background: #fff;
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  font-family: "dunbar-tall",
    Sans-serif !important;
}

/* Header della chat con titolo e sottotitolo */
#chatbox-header {
  background-color: #fff; /* Teal */
  color: white;
  padding: 20px;
  text-align: left;
    border-bottom: 1px solid #e5e7eb;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

#chatbox-header h3 {
  margin: 0;
  font-size: 30px;
  font-weight: normal;
  color: #134E75;
font-family: "dunbar-tall", Sans-serif !important;
}

#chatbox-header p {
  margin: 0;
  font-size: 12px;
color: #134E75;
}

/* Area dei messaggi */
#messages {
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  background-color: #fff;
}

/* Stile bolle messaggio utente */
.msg.user {
  background-color: #134E75;
  color: #fff;
  margin: 12px 0;
  padding: 8px 12px;
  border-radius: 15px;
  align-self: flex-end !important;
  max-width: 80%;
letter-spacing: 0.8px;
    font-size: 16px;
}

/* Stile bolle messaggio bot / staff */
.msg.bot {
background: #f3f4f6;
    color: #134E75;
  margin: 12px 0;
  padding: 8px 12px;
  border-radius: 15px;
  align-self: flex-start;
  max-width: 80%;
letter-spacing: 0.8px;
    font-size: 16px;
}

/* Footer con campo di input e pulsante di invio */
#chatbox-footer {
  display: flex;
  align-items: center;
  border-top: 1px solid #ddd;
  padding: 12px;
  background-color: #fff;
}

#userInput {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
}

#sendBtn {
  background-color: #134E75;;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sendBtn svg {
  fill: white;
  width: 20px;
  height: 20px;
}

.evidenziata {
    color:#0bdedf;
}
