/* AskLLM247 Ultra-Aesthetic Stylesheet with WhatsApp-Style Quote Reply */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #06070a;
  --bg-sidebar: #0a0d14;
  --bg-card: #0f131d;
  --bg-elevated: #151a27;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(99, 102, 241, 0.4);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-magenta: #ec4899;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* App Root Grid with Sliding Transition */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Left Sidebar Dialog Box (Sliding Drawer) */
.left-sidebar {
  width: 280px;
  min-width: 280px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  z-index: 40;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Collapsed Sidebar State */
.sidebar-collapsed .left-sidebar {
  margin-left: -280px;
  transform: translateX(-100%);
  pointer-events: none;
  opacity: 0;
}

@media (max-width: 768px) {
  .left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    margin-left: -280px;
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  }
  .sidebar-mobile-open .left-sidebar {
    margin-left: 0;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Main Canvas Content Area */
.main-canvas {
  flex: 1;
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: margin-left 0.3s ease;
}

/* Clean Panels */
.clean-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.875rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Message Bubble */
.message-card {
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.message-card:hover .message-action-bar {
  opacity: 1;
  pointer-events: auto;
}

/* Message Action Bar (WhatsApp-style quote button) */
.message-action-bar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

@media (max-width: 768px) {
  .message-action-bar {
    opacity: 1;
    pointer-events: auto;
  }
}

/* WhatsApp-Style Quote Reply Box inside chat bubble */
.reply-quote-box {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--accent-indigo);
  border-radius: 0.375rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

/* Composer WhatsApp-Style Reply Preview Banner */
.composer-reply-preview {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--accent-indigo);
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.5rem;
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Starred Paid Community Badge */
.star-badge {
  color: #f59e0b;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.paid-community-glow {
  border-color: rgba(245, 158, 11, 0.35) !important;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 70%);
}

/* 20-Min Timer Pulsing */
.timer-pulse {
  animation: timerGlow 2s infinite ease-in-out;
}

@keyframes timerGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* Synaptic Resonance Orb */
.resonance-orb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ec4899, #6366f1 60%, #06b6d4 100%);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.45), 0 0 28px rgba(99, 102, 241, 0.25);
  animation: orbPulse 3s infinite alternate ease-in-out;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.resonance-orb:hover {
  transform: scale(1.15) rotate(15deg);
}

@keyframes orbPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 12px rgba(99, 102, 241, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 22px rgba(236, 72, 153, 0.65), 0 0 35px rgba(6, 182, 212, 0.35); }
}

/* Dreamscape Aura */
.dreamscape-panel {
  background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), rgba(15, 19, 29, 0.95) 70%);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Social OAuth Buttons */
.btn-google {
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-google:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.btn-facebook {
  background: #1877f2;
  color: #ffffff;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-facebook:hover {
  background: #166fe5;
  transform: translateY(-1px);
}

/* Avatar Option */
.avatar-option {
  cursor: pointer;
  transition: all 0.15s ease;
}

.avatar-option:hover {
  transform: scale(1.15);
}

.avatar-option.selected {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 2px;
  border-radius: 9999px;
}

/* Animated Toast */
.toast-item {
  animation: toastFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastFade {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Polymarket Progress */
.poly-prob-bar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.poly-prob-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Typing Indicator — "Bot is thinking..." animation */
.typing-indicator-bubble {
  animation: typingPulse 1.5s infinite ease-in-out;
}

@keyframes typingPulse {
  0%, 100% { border-color: rgba(99, 102, 241, 0.3); }
  50% { border-color: rgba(99, 102, 241, 0.6); box-shadow: 0 0 12px rgba(99, 102, 241, 0.15); }
}

.typing-dots .dot {
  display: inline-block;
  font-size: 8px;
  animation: dotBounce 1.4s infinite ease-in-out;
  margin: 0 1px;
}

.typing-dots .dot:nth-child(1) { animation-delay: 0s; }
.typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* ================= BILLING & CHECKOUT MODAL STYLES (X PREMIUM STYLE) ================= */
.btn-apple-pay {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}
.btn-apple-pay:hover {
  background-color: #111111;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-stripe-link {
  background-color: #00D66F;
  color: #000000;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-stripe-link:hover {
  background-color: #00c063;
  box-shadow: 0 4px 14px rgba(0, 214, 111, 0.3);
}

.payment-method-card {
  transition: all 0.2s ease;
  cursor: pointer;
}
.payment-method-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background-color: rgba(15, 23, 42, 0.8);
}
.payment-method-card.active {
  border-color: #6366f1;
  background-color: rgba(99, 102, 241, 0.1);
}

