/* Chatbot styles */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #2c3e50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.chatbot-container.open {
  width: 350px;
  height: 500px;
  border-radius: 10px;
  overflow-y: auto; /* Enable vertical scrolling */
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #2c3e50;
  color: white;
  border-bottom: 1px solid #34495e;
}

.chatbot-title {
  display: flex;
}

.open .chatbot-title {
  opacity: 1;
}

.chatbot-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.chatbot-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.open .chatbot-toggle {
  width: 40px;
  height: 40px;
  top: 5px;
  right: 5px;
}

.chatbot-toggle button {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chatbot-toggle .close-icon {
  display: none;
  font-size: 18px;
}

.open .chatbot-toggle .open-icon {
  display: none;
}

.open .chatbot-toggle .close-icon {
  display: block;
}

.chatbot-body {
  height: 0;
  background-color: #f5f5f5;
  transition: height 0.3s ease;
}

.open .chatbot-body {
  height: calc(100% - 120px);
}

.chatbot-messages {
  height: 100%;
  overflow-y: auto;
  padding: 15px;
}

.message {
  margin-bottom: 15px;
  max-width: 80%;
  display: flex;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  margin-left: auto;
  justify-content: flex-end;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  overflow: hidden;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-content {
  padding: 10px 15px;
  border-radius: 15px;
  max-width: calc(100% - 40px);
}

.bot-message .message-content {
  background-color: #e2e8f0;
  color: #2d3748;
}

.user-message .message-content {
  background-color: #2c3e50;
  color: white;
}

.chatbot-input {
  height: 0;
  background-color: white;
  border-top: 1px solid #e2e8f0;
  padding: 0;
  display: flex;
  transition: all 0.3s ease;
}

.open .chatbot-input {
  height: 60px;
  padding: 10px 15px;
}

.chatbot-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 5px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.open .chatbot-input input {
  opacity: 1;
}

.chatbot-input button {
  border: none;
  background-color: #2c3e50;
  color: white;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.open .chatbot-input button {
  opacity: 1;
}

.chatbot-input button:hover {
  background-color: #1a252f;
}

/* Responsive design for smaller screens */
@media (max-width: 480px) {
  .chatbot-container.open {
    width: 90%;
    right: 5%;
    bottom: 10px;
  }
}
/* Adjust avatar size in chatbot messages */
.message-avatar img {
  width: 32px;    /* Change to your preferred size */
  height: 32px;   /* Change to your preferred size */
  border-radius: 50%;
  object-fit: cover;
}