/* Modern Enterprise Copilot Stylesheet */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(14, 132, 241, 0.4);
    border-color: rgba(56, 163, 248, 0.7);
  }
  50% {
    box-shadow: 0 0 25px rgba(14, 132, 241, 0.7);
    border-color: rgba(56, 163, 248, 1);
  }
}

@keyframes waveBar {
  0%, 100% { height: 6px; }
  50% { height: 28px; }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.wave-bar-1 { animation: waveBar 1.2s infinite ease-in-out 0.1s; }
.wave-bar-2 { animation: waveBar 1.2s infinite ease-in-out 0.3s; }
.wave-bar-3 { animation: waveBar 1.2s infinite ease-in-out 0.5s; }
.wave-bar-4 { animation: waveBar 1.2s infinite ease-in-out 0.2s; }
.wave-bar-5 { animation: waveBar 1.2s infinite ease-in-out 0.4s; }

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.7);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.9);
}

/* Glass Panels */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-elevated {
  background: rgba(21, 31, 50, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 163, 248, 0.2);
}

/* Copilot Gradient Highlights */
.copilot-gradient {
  background: linear-gradient(135deg, #0E84F1 0%, #38A3F8 50%, #7CC4FA 100%);
}

.copilot-text-gradient {
  background: linear-gradient(135deg, #7CC4FA 0%, #38A3F8 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Transition utility */
.smooth-transition {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── LIGHT THEME COMPREHENSIVE STYLING ───────────────────────────────────── */
html.light,
html.light body {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

html.light ::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8) !important;
}
html.light ::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.9) !important;
}
html.light ::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.9) !important;
}

/* Backgrounds in Light Mode */
html.light .bg-slate-950 {
  background-color: #F8FAFC !important;
}
html.light .bg-slate-950\/80,
html.light .bg-slate-950\/60,
html.light .bg-slate-950\/40 {
  background-color: #F1F5F9 !important;
}

html.light .bg-slate-900 {
  background-color: #FFFFFF !important;
}
html.light .bg-slate-900\/90,
html.light .bg-slate-900\/80,
html.light .bg-slate-900\/60,
html.light .bg-slate-900\/40 {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

html.light .bg-slate-850 {
  background-color: #F1F5F9 !important;
}

html.light .bg-slate-800 {
  background-color: #F1F5F9 !important;
}
html.light .bg-slate-800\/80,
html.light .bg-slate-800\/60 {
  background-color: #F8FAFC !important;
}

html.light .hover\:bg-slate-800:hover,
html.light .hover\:bg-slate-700:hover {
  background-color: #E2E8F0 !important;
}

/* Borders in Light Mode */
html.light .border-slate-800,
html.light .border-slate-800\/80,
html.light .border-slate-800\/60,
html.light .border-slate-700,
html.light .border-slate-700\/60 {
  border-color: #E2E8F0 !important;
}

/* Typography in Light Mode */
html.light .text-white {
  color: #0F172A !important;
}
html.light .text-slate-100,
html.light .text-slate-200 {
  color: #1E293B !important;
}
html.light .text-slate-300 {
  color: #334155 !important;
}
html.light .text-slate-400 {
  color: #64748B !important;
}
html.light .text-slate-500 {
  color: #64748B !important;
}

/* Glass Panels in Light Mode */
html.light .glass-panel {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 1px 3px 0 rgba(0, 0, 0, 0.02) !important;
}

html.light .glass-panel-elevated {
  background: #FFFFFF !important;
  border: 1px solid rgba(14, 132, 241, 0.3) !important;
  box-shadow: 0 10px 25px -4px rgba(14, 132, 241, 0.08) !important;
}

/* Headers & Navigation in Light Mode */
html.light header {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border-bottom-color: #E2E8F0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
}

/* Inputs, Textareas, Forms */
html.light input,
html.light textarea,
html.light select {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}
html.light input:focus,
html.light textarea:focus {
  border-color: #0E84F1 !important;
  background-color: #FFFFFF !important;
}
html.light input::placeholder,
html.light textarea::placeholder {
  color: #94A3B8 !important;
}

/* Ensure vibrant colored badges & pills remain crisp and readable in Light Mode */
html.light .bg-copilot-500\/20,
html.light .bg-copilot-500\/10,
html.light .bg-copilot-950\/40,
html.light .bg-copilot-950\/60 {
  background-color: #E0EEFF !important;
}
html.light .text-copilot-300,
html.light .text-copilot-400 {
  color: #0066D6 !important;
}
html.light .border-copilot-500\/30,
html.light .border-copilot-500\/50,
html.light .border-copilot-500\/60 {
  border-color: #BAE0FF !important;
}

html.light .bg-amber-500\/20,
html.light .bg-amber-500\/10,
html.light .bg-amber-950\/40,
html.light .bg-amber-950\/60 {
  background-color: #FEF3C7 !important;
}
html.light .text-amber-300,
html.light .text-amber-400 {
  color: #B45309 !important;
}
html.light .border-amber-500\/30 {
  border-color: #FDE68A !important;
}

html.light .bg-emerald-500\/10,
html.light .bg-emerald-500\/15,
html.light .bg-emerald-500\/20,
html.light .bg-emerald-950\/40,
html.light .bg-emerald-950\/60 {
  background-color: #ECFDF5 !important;
}
html.light .text-emerald-300,
html.light .text-emerald-400 {
  color: #047857 !important;
}
html.light .border-emerald-500\/30,
html.light .border-emerald-500\/40 {
  border-color: #A7F3D0 !important;
}

html.light .bg-purple-500\/20,
html.light .bg-purple-500\/10,
html.light .bg-purple-950\/40,
html.light .bg-purple-950\/60 {
  background-color: #F3E8FF !important;
}
html.light .text-purple-300,
html.light .text-purple-400 {
  color: #7E22CE !important;
}
html.light .border-purple-500\/30,
html.light .border-purple-500\/50 {
  border-color: #E9D5FF !important;
}

html.light .bg-rose-500\/20,
html.light .bg-rose-500\/10,
html.light .bg-rose-950\/40 {
  background-color: #FFE4E6 !important;
}
html.light .text-rose-300,
html.light .text-rose-400 {
  color: #BE123C !important;
}
html.light .border-rose-500\/30 {
  border-color: #FECDD3 !important;
}

html.light .bg-sky-500\/20,
html.light .bg-sky-500\/10 {
  background-color: #E0F2FE !important;
}
html.light .text-sky-300,
html.light .text-sky-400 {
  color: #0369A1 !important;
}
html.light .border-sky-500\/30 {
  border-color: #BAE6FD !important;
}

html.light .bg-pink-500\/20 {
  background-color: #FCE7F3 !important;
}
html.light .text-pink-300 {
  color: #BE185D !important;
}
html.light .border-pink-500\/30 {
  border-color: #FBCFE8 !important;
}

/* Gradient and Primary Action Buttons in Light Mode: ensure text remains white */
html.light .copilot-gradient,
html.light .bg-copilot-600,
html.light .bg-purple-600,
html.light .bg-rose-600,
html.light .bg-emerald-600 {
  color: #FFFFFF !important;
}
html.light .copilot-gradient *,
html.light .bg-copilot-600 *,
html.light .bg-purple-600 *,
html.light .bg-rose-600 *,
html.light .bg-emerald-600 * {
  color: #FFFFFF !important;
}

/* Chat bubble styling for user vs assistant in Light Mode */
html.light .bg-copilot-600 {
  background-color: #0E84F1 !important;
}
