
/* .KnightBot .chat-button {
    position: absolute;
    bottom: 10rem;
    right: 0;
    background: #001f4d;
    color: white;
    height: 4rem;
    width: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    font-size: 1.5rem;
}

.KnightBot .chat-button:hover {
    transform: scale(1.1);
    background: #002766;
} */

@keyframes chatheadshake {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(-5deg); }
    20% { transform: rotate(5deg); }
    30% { transform: rotate(-4deg); }
    40% { transform: rotate(4deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.KnightBot .chat-button {
    position: absolute;
    bottom: 10rem;
    right: 0;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.KnightBot .chat-button img {
    height: auto;
    width: 4rem;
    display: block;
    animation: chatheadshake 3s infinite ease-in-out;
}

.KnightBot .chat-button:hover {
    transform: scale(1.1);
}



.KnightBot .chat-window {
    position: fixed;
    bottom: 5%;
    right: 1.5%;
    width: 100%;
    max-width: 25rem;
    height: 100%;
    max-height: 35rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    z-index: 99999;
}

.KnightBot .chat-window.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.KnightBot .chat-header {
    background: #001f4d;
    color: white;
    padding: 2.5% 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-family: 'Georgia', serif;
}

.KnightBot .chat-header h4{
    margin: 0;
}

.KnightBot .close-chat {
    cursor: pointer;
}
  .KnightBot .chat-content {
    flex: 1;
    padding: 5%;
    font-family: 'Arial', sans-serif;
    overflow-y: auto;
  }
  .KnightBot .chat-message {
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.5rem;
  }

  .KnightBot .chat-message p{
    margin: 0; 
  }



  /* .KnightBot .bot-message {
    background: #e5e7eb;
    padding: 2%;
    border-radius: 10px;
    max-width: 100%;
    word-wrap: break-word;
  } */

  .KnightBot .bot-message p {
    background: #e5e7eb;
    padding: 2% 5% 2% 5%;
    border-radius: 10px;
    max-width: 100%;
    word-wrap: break-word;
  }

  .KnightBot .user-message{
    display: flex;
    justify-content: end;
  }

  .KnightBot .user-message p {
    background: #12234E;
    color: white;
    padding: 2% 5% 2% 5%;
    border-radius: 10px;
    word-wrap: break-word;
  }

  .KnightBot .chat-input-container {
    display: flex;
    padding: 2%;
    border-top: 1px solid #ddd;
  }
  .KnightBot .chat-input {
    flex: 1;
    padding: 2%;
    border: none;
    border-radius: 5px;
    outline: none;
    resize: none;
  }
  .KnightBot .send-button {
    background: #001f4d;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
  }
  .KnightBot .send-button:hover {
    background: #002766;
  }

/* Ensure lists and headings look good */
.KnightBot .bot-message ul,
.KnightBot .bot-message ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.KnightBot .bot-message li {
  margin: 0.25rem 0;
}

.KnightBot .bot-message a {
  color: #1a0dab;
  text-decoration: underline;
  font-size: 1rem; /* or adjust to 0.875rem, 0.95rem, etc. */
}



.typing-indicator {
  display: flex;
  padding: 2% 5% 2% 5%;
  align-items: center;
  gap: 8px;
  font-style: italic;
  color: #555;
  font-size: 14px;
}

.dots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 5px;
  height: 5px;
  background-color: #8c8f99;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
}


.quick-replies-scroll {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
}

.quick-replies-inner button {
  display: inline-block;
  background-color: #e9e9e9;
  margin: 0;
  color: rgb(41, 41, 41);
  border: none;
  border-radius: 10rem;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s ease; /* smooth hover transition */
}

.quick-replies-inner button:hover {
  background-color: #12234E;
  color: white;
}

@keyframes knightBotSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes knightBotfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Animation classes */
.KnightBot .chat-message.user-message {
  animation: knightBotSlideUp 0.3s ease-out;
}

.KnightBot .chat-message.bot-message {
  animation: knightBotfadeIn 0.4s ease-in;
}
