@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --bg-dark: #090d16;
  --card-bg: rgba(17, 24, 39, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
              #080c14;
  color: #f3f4f6;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism Card */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* SVG Gauge Transitions */
.gauge-circle {
  transition: stroke-dashoffset 0.8s ease-in-out, stroke 0.4s ease;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* Shimmer / Skeleton Animation */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}
.animate-pulse-glow {
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Markdown output formatting */
.prose-custom {
  color: #e5e7eb;
  line-height: 1.7;
}
.prose-custom h1, .prose-custom h2, .prose-custom h3 {
  color: #ffffff;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose-custom h3 {
  font-size: 1.15rem;
  color: #a5b4fc;
}
.prose-custom ul {
  list-style-type: disc;
  margin-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}
.prose-custom li {
  margin-bottom: 0.4rem;
}
.prose-custom p {
  margin-bottom: 1rem;
}
.prose-custom strong {
  color: #f9fafb;
}

/* Toast alert notification */
#toast {
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

/* Chat Drawer Transitions */
#chat-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Chat Prose Styling */
.prose-chat p {
  margin-bottom: 0.5rem;
}
.prose-chat p:last-child {
  margin-bottom: 0;
}
.prose-chat ul, .prose-chat ol {
  margin-left: 1.2rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  list-style-type: disc;
}
.prose-chat ol {
  list-style-type: decimal;
}
.prose-chat li {
  margin-bottom: 0.25rem;
}
.prose-chat strong {
  color: #ffffff;
  font-weight: 600;
}
.prose-chat code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-size: 0.8em;
  color: #a5b4fc;
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}
