/* Chatbot Container */
.chatbot-container {
  position: fixed;
  bottom: 45px;
  right: -5px;
  z-index: 1000;
}

/* Chat Button */
.chat-button {
  width: 60px;
  height: 60px;
  background-color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  scale: 0.7;
}

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

.chat-button i {
  color: white;
  font-size: 24px;
}

/* Chat Interface */
.chat-interface {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 350px;
  height: 500px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-interface.active {
  display: flex;
}

/* Chat Header */
.chat-header {
  background-color: #000;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

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

.close-chat {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 20px;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  margin-bottom: 10px;
}

.user-message {
  background-color: #f0f0f0;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.bot-message {
  background-color: #000;
  color: white;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

/* Chat Input */
.chat-input {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

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

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

.send-button i {
  font-size: 18px;
}

/* Loading Animation */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 10px 15px;
  background-color: #f0f0f0;
  border-radius: 15px;
  align-self: flex-start;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: #999;
  border-radius: 50%;
  animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

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