/* onboarding-chatbot.css */

:root {
  --chatbot-bg-light: rgba(255, 255, 255, 0.75);
  --chatbot-bg-dark: rgba(15, 23, 42, 0.82);
  --chatbot-border: rgba(255, 255, 255, 0.2);
  --chatbot-accent: #0c8de4;
}

/* FAB (Floating Action Button) Premium Styling */
#onboarding-ai-btn {
  background: linear-gradient(135deg, #0c8de4, #4f46e5) !important;
  color: white !important;
  width: 56px !important;
  height: 56px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px rgba(12, 141, 228, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  animation: pulse-glow 3s infinite !important;
}

#onboarding-ai-btn:hover {
  transform: scale(1.1) rotate(5deg) !important;
  box-shadow: 0 12px 48px rgba(12, 141, 228, 0.6) !important;
}

#onboarding-ai-btn i {
  font-size: 22px !important;
  color: white !important;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(12, 141, 228, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(12, 141, 228, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 141, 228, 0); }
}

/* Assistant Panel Styling */
#onboarding-chatbot {
  position: fixed !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 10000 !important;
  display: none;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  padding: 24px !important;
  opacity: 0;
  transition: opacity 0.3s ease !important;
}

#onboarding-chatbot.flex {
  display: flex !important;
  opacity: 1;
}

#chatbot-modal {
  width: 400px !important;
  max-width: 100% !important;
  max-height: 80vh !important;
  background: var(--chatbot-bg-light) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transform: translateY(40px) scale(0.95) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.dark #chatbot-modal {
  background: var(--chatbot-bg-dark) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6) !important;
}

#onboarding-chatbot.flex #chatbot-modal {
  transform: translateY(0) scale(1) !important;
}

/* Chat Header */
.chatbot-header {
  padding: 20px 24px !important;
  background: linear-gradient(to right, rgba(12, 141, 228, 0.05), rgba(79, 70, 229, 0.05)) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.dark .chatbot-header {
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.chatbot-header h3 {
  font-size: 16px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #0c8de4, #6366f1) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: -0.01em !important;
}

/* Messages Area */
#chatbot-messages {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  max-height: 400px !important;
}

.bot-message {
  align-self: flex-start !important;
  max-width: 85% !important;
  background: white !important;
  padding: 12px 16px !important;
  border-radius: 4px 16px 16px 16px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #1e293b !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  animation: message-fade 0.4s ease forwards !important;
}

.dark .bot-message {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

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

/* Actions Area */
#chatbot-actions {
  padding: 20px 24px 32px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.chatbot-btn {
  width: 100% !important;
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  text-align: left !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.dark .chatbot-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

.chatbot-btn:hover {
  background: #f8fafc !important;
  border-color: #0c8de4 !important;
  color: #0c8de4 !important;
  transform: translateX(4px) !important;
}

.dark .chatbot-btn:hover {
  background: rgba(12, 141, 228, 0.1) !important;
}

.chatbot-btn::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  opacity: 0.5;
}

.chatbot-btn.primary {
  background: linear-gradient(135deg, #0c8de4, #4f46e5) !important;
  color: white !important;
  border: none !important;
  justify-content: center !important;
}

.chatbot-btn.primary:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(12, 141, 228, 0.3) !important;
}

.chatbot-btn.primary::after {
  display: none !important;
}

/* Form Styling */
.chatbot-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}

.chatbot-input-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.chatbot-input-group label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
}

.chatbot-input {
  background: #f1f5f9 !important;
  border: 1px solid transparent !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: #1e293b !important;
  transition: all 0.2s ease !important;
}

.dark .chatbot-input {
  background: rgba(0, 0, 0, 0.2) !important;
  color: white !important;
}

.chatbot-input:focus {
  background: white !important;
  border-color: #0c8de4 !important;
  box-shadow: 0 0 0 4px rgba(12, 141, 228, 0.1) !important;
  outline: none !important;
}

.dark .chatbot-input:focus {
  background: rgba(0, 0, 0, 0.4) !important;
}
