/* Floating button */
.chatbot-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 24px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  z-index: 9999;
}

.chatbot-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.05);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
}

/* Chat window */
.chatbot-container {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 360px;
  max-height: 520px;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(18px);
  z-index: 9999;
}

.chatbot-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.9),
    rgba(22, 163, 74, 0.9)
  );
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.chatbot-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot-green {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.35);
}

.chatbot-header button {
  border: none;
  background: transparent;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chatbot-messages {
  padding: 12px 14px 10px;
  flex: 1;
  overflow-y: auto;
  font-size: 13px;
  background: radial-gradient(
    circle at top,
    rgba(79, 70, 229, 0.16),
    transparent
  );
}

.chatbot-message {
  margin-bottom: 8px;
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 14px;
  line-height: 1.3;
}

.chatbot-message.user {
  margin-left: auto;
  background: rgba(37, 99, 235, 0.9);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-message.bot {
  margin-right: auto;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e5e7eb;
  border-bottom-left-radius: 4px;
}

.chatbot-input {
  padding: 10px;
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(51, 65, 85, 0.85);
  background: rgba(15, 23, 42, 0.98);
}

.chatbot-input input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 13px;
  outline: none;
}

.chatbot-input input::placeholder {
  color: #6b7280;
}

.chatbot-input button {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.chatbot-input button:hover {
  filter: brightness(1.05);
}
