/* Floating Chatbot styles */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(124,58,237,0.15);
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.chatbot-container.minimized {
  width: 60px;
  height: 60px !important;
  border-radius: 30px;
}

.chatbot-container.minimized .chat-body,
.chatbot-container.minimized .chat-input {
  display: none;
}

.chat-header {
  background: linear-gradient(90deg,var(--violet-500),var(--violet-700));
  color: white;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.minimize-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}

.chat-body {
  height: 300px;
  overflow-y: auto;
  padding: 15px;
  background: #f8f7ff;
}

.message {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 12px;
  width: fit-content;
  max-width: 85%;
  animation: messageSlide 0.3s ease;
  line-height: 1.4;
}

.message.user {
  background: linear-gradient(90deg,var(--violet-500),var(--violet-700));
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message.bot {
  background: white;
  border: 1px solid rgba(124,58,237,0.1);
  color: #444;
  border-bottom-left-radius: 4px;
}

.chat-input {
  display: flex;
  border-top: 1px solid rgba(124,58,237,0.1);
  background: white;
}

.chat-input input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  outline: none;
  font-size: 14px;
}

.chat-input button {
  background: var(--violet-500);
  color: white;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-input button:hover {
  background: var(--violet-700);
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive chatbot */
@media (max-width: 600px) {
  .chatbot-container {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  .chat-body {
    height: calc(100vh - 120px);
  }
  .chatbot-container.minimized {
    width: 60px;
    height: 60px !important;
    bottom: 20px;
    right: 20px;
    border-radius: 30px;
  }
}