/* Animation élastique pour le bouton flottant */
@keyframes blablawise-elastic {
  0%, 20%, 40%, 60%, 80%, 100% {
    transform: scale(1);
  }
  30%,  70%{
    transform: scale(1.2); /* Le bouton s'agrandit légèrement */
  }

  10%, 50%, 90% {
    transform: scale(1.1); /* Le bouton s'agrandit légèrement */
  }

  50% {
    transform: scale(1.3); /* Le bouton s'agrandit légèrement */
  }
}
#blablawise-floating-button.bounce {
  animation: blablawise-elastic 2s;
}

/* Style du bouton flottant */
#blablawise-floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 5px 15px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  z-index: 99990;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  font-family: inherit;
}

#blablawise-floating-button img {
  vertical-align: middle;
  margin-right: 4px;
  width: 35px;
  height: 35px;
}

#blablawise-floating-button:hover {
  background-color: #0056B3;
}

/* Style du fond de la boîte de dialogue */
#blablawise-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: right;
  align-items: end;
  z-index: 99999;
  padding: 0px 20px 20px 0px;
}

#blablawise-dialog-overlay * {
    font-size: 1em;
    font-family: inherit;
}

/* Style de la boîte de dialogue */
#blablawise-dialog-box {
  background-color: white;
  border-radius: 8px;
  width: 380px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Conteneur de la conversation */
#blablawise-conversation-container {
  flex-grow: 1;
  height: 400px;
  overflow-y: auto;
  margin: 10px;
}

/* Conteneur d'entrée de texte */
#blablawise-input-container {
  display: flex;
  margin: 10px;
}

#blablawise-input-field {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
}


#blablawise-input-field:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

#blablawise-send-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#blablawise-send-button {
  padding: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#blablawise-send-button:hover {
    background-color: #0056B3;
}

/* Style des bulles de message */
.blablawise-message-bubble {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  clear: both;
}

.blablawise-message-bubble p{
    padding: 0px;
    margin: 0px
}

/* Bulles de l'utilisateur */
.blablawise-user {
  background-color: #007BFF;
  color: white;
  float: right;
}

/* Bulles de réponse */
.blablawise-bot {
  background-color: #f1f1f1;
  color: #333;
  float: left;
}

.blablawise-bot a {
    color: #007BFF;
}

.blablawise-bot a:hover {
    color: #0056B3;
}

/* Style de la bulle de "typing" avec les points alignés horizontalement */
.blablawise-typing {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 24px;
}

.blablawise-typing span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background-color: #333;
  border-radius: 50%;
  animation: blablawise-bounce 1s infinite ease-in-out;
}

.blablawise-typing span:nth-child(1) {
  animation-delay: 0s;
}

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

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

/* Animation des petits points qui rebondissent */
@keyframes blablawise-bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
  }
  40% {
    transform: scale(1);
  }
}

/* Style de l'en-tête */
#blablawise-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #007BFF; /* Couleur bleu similaire à Bootstrap */
  padding: 10px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  color: white;
}

/* Style de l'image dans l'en-tête */
#blablawise-header-image {
  height: 40px; /* Hauteur de l'image */
  margin-right: 10px;
}

/* Style du texte dans l'en-tête */
#blablawise-header-text {
  font-size: 16px;
  font-weight: bold;
  flex-grow: 1;
  text-align: right;
  align-self: end;
}


/* Style du pied de page */
#blablawise-footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 5px 10px;
  border-top: 1px solid #ddd;
  background-color: #f9f9f9;
  text-align: right;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Style du lien dans le pied de page */
#blablawise-footer a {
  color: #007BFF; /* Bleu similaire à Bootstrap */
  text-decoration: none;
}

#blablawise-footer a:hover {
  text-decoration: underline;
}