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

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --color-primary: #6366f1;
  --color-accent: #06b6d4;
  --color-bg: #090d16;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: #f1f5f9;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Code & ASCII blocks */
pre, code, .font-mono {
  font-family: var(--font-mono);
}

.ascii-box {
  background: #030712;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  color: #38bdf8;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Glow & Blur effects */
.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.05) 45%, transparent 70%);
}

.card-glow {
  position: relative;
}
.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.1), transparent 60%);
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.glass-nav {
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

/* Tab active transitions */
.tab-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
}

/* Modern <dialog> modal animations */
dialog {
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, display 0.25s allow-discrete, overlay 0.25s allow-discrete;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
}

dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
}

dialog::backdrop {
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.25s ease-out, display 0.25s allow-discrete, overlay 0.25s allow-discrete;
  opacity: 0;
}

dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog[open]::backdrop {
    opacity: 0;
  }
}

/* Subtle badge pulse */
@keyframes soft-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.animate-soft-pulse {
  animation: soft-pulse 2.5s infinite ease-in-out;
}
