/* Chatbot styles */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0084ff;
  color: white;
  border-radius: 50%;
  padding: 15px;
  cursor: pointer;
  font-size: 24px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chat-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
.tooltip-text {
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  bottom: 120%;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
  white-space: nowrap;
}

#chat-toggle:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

#chat-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  flex-direction: column;
}

#chat-header {
  background-color: #0084ff;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbox {
  height: 250px;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

.user-bubble {
  background-color: #0084ff;
  color: white;
  padding: 8px 12px;
  border-radius: 16px 16px 0 16px;
  max-width: 80%;
  margin: 5px 0;
  align-self: flex-end;
  text-align: left;
  /* change to left for proper wrapping */
  margin-left: auto;
  word-wrap: break-word;
  white-space: pre-wrap;
  /* allows line breaks and wrapping */
  line-height: 1.4;
}

.bot-bubble {
  background-color: #f1f0f0;
  color: #333;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 0;
  max-width: 80%;
  margin: 5px 0;
  align-self: flex-start;
  text-align: left;
  margin-right: auto;
  word-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.4;
}


#userInput {
  resize: none;
  border: none;
  padding: 10px;
  /* width: 70%; */
  border-top: 1px solid #eee;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  max-height: 120px;
  /* Optional: prevent it from growing too tall */
  overflow-y: auto;
}


#chat-container button {
  border: none;
  background: #0084ff;
  color: white;
  padding: 10px;
  width: 30%;
  cursor: pointer;
}

#chat-container button:hover {
  background: #006bbf;
}