/* chat bot Styles */
.chat-button {
  position: fixed;
  /* bottom: 30px; */
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #32CD32;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-button:hover {
  transform: scale(1.05);
  background-color: #32CD32;
}

.chat-container {
  position: fixed;
  /* bottom: 100px; */
  bottom: 170px;
  right: 30px;
  width: 360px;
  height: 500px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.chat-container.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.chat-header {
  background-color: #32CD32;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-weight: 500;
  font-size: 16px;
  margin: 0;
}

.close-button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  font-size: 20px;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #f9f9f9;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  animation: fadeIn 0.3s ease-out;
  word-wrap: break-word;
  margin-bottom: 5px;
}

.bot-message {
  background-color: white;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-message {
  background-color: #32CD32;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.option-button {
  background-color: white;
  border: 1px solid #32CD32;
  color: #32CD32;
  padding: 8px 15px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.option-button:hover {
  background-color: #32CD32;
  color: white;
}

.chat-input {
  display: flex;
  padding: 15px;
  background-color: white;
  border-top: 1px solid #eaeaea;
}

#user-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
}

#send-button {
  background-color: #32CD32;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.typing-indicator {
  display: flex;
  padding: 10px 15px;
  background-color: white;
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  align-self: flex-start;
  margin-bottom: 10px;
  width: fit-content;
}

.typing-dot {
  width: 8px;
  height: 8px;
  margin: 0 2px;
  background-color: #999;
  border-radius: 50%;
  animation: typing 1.5s infinite ease-in-out;
}

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

.typing-dot:nth-child(2) {
  animation-delay: 0.5s;
}

.typing-dot:nth-child(3) {
  animation-delay: 1s;
}

@keyframes typing {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

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

@media (max-width: 400px) {
  .chat-container {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
}
