@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Slate Dark theme */
  --bg-base: #0a0e17;
  --bg-surface: #111827;
  --bg-elevated: #1f2937;
  --bg-glass: rgba(17, 24, 39, 0.7);
  --border-subtle: #374151;
  --border-bright: #4b5563;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.15);
  
  --success: #10b981;
  --success-hover: #34d399;
  --success-glow: rgba(16, 185, 129, 0.1);
  
  --warning: #f59e0b;
  --warning-hover: #fbbf24;
  --warning-glow: rgba(245, 158, 11, 0.1);
  
  --danger: #ef4444;
  --danger-hover: #f87171;
  --danger-glow: rgba(239, 68, 68, 0.1);
  
  --purple: #8b5cf6;
  --purple-hover: #a78bfa;
  --purple-glow: rgba(139, 92, 246, 0.1);
  
  /* Font Styling */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', var(--font-sans);
  
  /* Layout and Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.35);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  --sidebar-width: 260px;
  --topbar-height: 70px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-bright);
}

/* ===== Card entrance animation ===== */
@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-content > .card,
.main-content > div > .card,
.main-content > .grid > .card {
  animation: card-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.main-content > :nth-child(1) { animation-delay: 0.04s; }
.main-content > :nth-child(2) { animation-delay: 0.10s; }
.main-content > :nth-child(3) { animation-delay: 0.16s; }
.main-content > :nth-child(4) { animation-delay: 0.22s; }
.main-content > :nth-child(5) { animation-delay: 0.28s; }

/* ===== Selection colour ===== */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
}
