/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Tier C Design System CSS Variables */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace;

  /* Tier C Master Palette */
  --bg-slate-ice: #F8FAFC;
  --color-electric-indigo: #4F46E5;
  --color-royal-violet: #7C3AED;

  --bg-glass-card: rgba(255, 255, 255, 0.85);
  --border-glass-card: rgba(226, 232, 240, 0.8);
  --shadow-glow-indigo: 0 10px 25px -5px rgba(99, 102, 241, 0.25);
}

/* Global Reset & Base Body */
body {
  background-color: var(--bg-slate-ice);
  color: #0f172a;
  font-family: var(--font-sans);
}

/* Ambient Radial Blurs */
.ambient-bg-blur {
  background: radial-gradient(circle at 50% 0%, #eef2ff 0%, #f3e8ff 50%, rgba(248, 250, 252, 0) 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Tier C Glassmorphism Specification (16px blur) */
.glass-nav {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

/* Custom White Input Styling */
.white-input {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease-in-out;
}

.white-input:hover {
  border-color: #94a3b8;
}

.white-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Electric Indigo to Royal Violet Gradients */
.bg-indigo-violet {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}

.shadow-glow-indigo {
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.25);
}

.shadow-glow-indigo:hover {
  box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.35);
}

/* Code Container Dark & Light Themes */
.code-dark {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.code-light {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Utility Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.animate-in {
  animation: fadeIn 0.15s ease-out forwards;
}

/* Line Clamp helper */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button micro-animations */
button {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
  transform: scale(0.97);
}

/* Code pre formatting */
#output-code {
  tab-size: 2;
  -moz-tab-size: 2;
}
