#chatbotToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: none;
  transition: all 0.5s;
  padding-bottom: 40px;
}
#chatbotToggle.hidden {
  transform: translateY(calc(100% - 60px));
}
#chatbotIcon {
  background-color: #21b24b;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
#chatbotContainer {
  display: flex;
  flex-direction: column;
  width: 600px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 10px;
  max-height: 80vh;
  overflow-y: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: 'Poppins', sans-serif;
  color: #6f7775;
}
#chatbotContainer label {
  font-weight: bold;
  color: #6f7775;
  /* Brand color */
}
#chatbotContainer input,
#chatbotContainer button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
}
#chatbotContainer input {
  border-color: #21b24b;
  /* Brand color */
}
#chatbotContainer button {
  background-color: #21b24b;
  /* Brand color */
  color: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
#chatbotContainer button:hover {
  background-color: #881d55;
  /* Complimentary color */
}
#responseOutput {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin-top: 20px;
  color: #6f7775;
  /* Brand color */
}
#responseOutput p {
  margin-bottom: 1em;
}
#responseOutput h4 {
  margin-top: 1.5em;
  font-size: 1.2em;
  color: #6f7775;
  /* Brand color */
}
#responseOutput ul {
  list-style-type: none;
  padding: 0;
}
#responseOutput li {
  margin-bottom: 0.5em;
}
#responseOutput li a {
  color: #1a73e8;
  text-decoration: none;
}
#responseOutput li a:hover {
  text-decoration: underline;
}
.source-score {
  font-size: 0.9em;
  color: #666;
}
/* Spinner styles */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.loading-spinner {
  display: inline-block;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073e6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}
.chat-bubble {
  max-width: 70%;
  padding: 10px;
  border-radius: 15px;
  margin: 5px 0;
  position: relative;
  word-wrap: break-word;
}
.user-bubble {
  background-color: #881d55;
  /* Light green for user */
  align-self: flex-end;
  /* Align to the right */
  margin-left: auto;
  /* Push to the right */
  color: white;
}
.ai-bubble {
  background-color: #21b24b10;
  /* Light red for AI */
  align-self: flex-start;
  /* Align to the left */
  margin-right: auto;
  /* Push to the left */
  color: #21b24b;
  border: 1px solid currentColor;
}
.header {
  color: #21b24b;
  font-family: 'Poppins', sans-serif;
  font-size: 23px;
  font-weight: 700;
}
.hidden {
  display: none;
}
#responseOutput h4 {
  color: inherit;
  /* Change the color of the sources title to white */
}
#responseOutput ul li a {
  color: inherit;
  /* Change the color of the links to white */
}
#responseOutput ul li a:hover {
  text-decoration: underline;
  /* Optional: Add underline on hover */
  color: #881d55;
  /* Optional: Change color on hover for better visibility */
}
.source-score {
  color: white;
}
.chatbot-search {
  --col-primary: #21b24b;
}
.chatbot-search button.chat-search-close {
  background: var(--col-secondary);
  position: absolute;
  top: 10px;
  right: 10px;
  aspect-ratio: 1 / 1;
  min-width: 3em;
  padding: 0;
  display: block;
  border-radius: 50%;
}
.chatbot-search form {
  display: flex;
  flex-direction: row;
  gap: 1em;
}
.chatbot-search form > * {
  border-radius: 5em !important;
}
.chatbot-search .results {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  transition: all 0.5s;
  pointer-events: none;
  overflow: none;
  padding: 100% 0 0 0;
}
.chatbot-search.active .results {
  opacity: 1;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  background: #000000E0;
  padding: 5em;
  gap: 2em;
}
.chatbot-search.active .results > ul {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 0 1em 0 0;
  margin: 0;
  list-style-type: none;
  overflow-y: auto;
}
.chatbot-search.active .results > ul > li {
  background: white;
  color: black;
  padding: 1em;
  border-radius: 1em;
  margin-left: 20%;
}
.chatbot-search.active .results > ul > li[data-message-type="user"] {
  margin-left: 0;
  margin-right: 20%;
  background: var(--col-primary);
  color: white;
}
.chatbot-search.active .results > ul > li.loading {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}
.chatbot-search.active .results > ul > li.loading .loading-dot {
  aspect-ratio: 1 / 1;
  width: 1em;
  font-size: 0.5em;
  background: currentColor;
  border-radius: 50%;
  margin-top: 1em;
  animation: bounce ease-in-out infinite 2s;
  animation-delay: calc(0.5s * var(--i));
}
@keyframes bounce {
  0% {
    translate: 0 0;
  }
  25% {
    translate: 0 -1em;
  }
  50% {
    translate: 0 0;
  }
}
