/* KrishEducation LMS - Design System v2.0 */
/* Premium Dark Theme with Advanced Animations */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Core Colors */
  --bg-primary: #060a14;
  --bg-secondary: #0c1222;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(20, 30, 55, 0.85);
  --bg-input: rgba(15, 23, 42, 0.6);
  --bg-sidebar: rgba(8, 14, 28, 0.95);

  /* Accent Colors */
  --accent-blue: #3B82F6;
  --accent-blue-hover: #2563EB;
  --accent-purple: #8B5CF6;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;
  --accent-cyan: #06B6D4;

  /* Text */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Border */
  --border-color: rgba(71, 85, 105, 0.25);
  --border-glow: rgba(59, 130, 246, 0.3);

  /* Gradients */
  --gradient-blue: linear-gradient(135deg, #3B82F6, #8B5CF6);
  --gradient-emerald: linear-gradient(135deg, #10B981, #06B6D4);
  --gradient-amber: linear-gradient(135deg, #F59E0B, #EF4444);
  --gradient-card: linear-gradient(145deg, rgba(15,23,42,0.8), rgba(30,41,59,0.4));
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  --gradient-mesh: radial-gradient(at 40% 20%, rgba(59,130,246,0.08) 0%, transparent 50%),
                   radial-gradient(at 80% 0%, rgba(139,92,246,0.06) 0%, transparent 50%),
                   radial-gradient(at 0% 50%, rgba(16,185,129,0.04) 0%, transparent 50%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(59,130,246,0.12), 0 0 60px rgba(139,92,246,0.06);
  --shadow-glow-emerald: 0 0 20px rgba(16,185,129,0.15);
  --shadow-glow-amber: 0 0 20px rgba(245,158,11,0.15);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
}

a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-purple); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInFromBottom {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(59,130,246,0.2); box-shadow: 0 0 15px rgba(59,130,246,0.05); }
  50% { border-color: rgba(139,92,246,0.3); box-shadow: 0 0 25px rgba(139,92,246,0.1); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

.animate-in { animation: fadeInUp 0.6s ease-out both; }
.animate-in-delay-1 { animation: fadeInUp 0.6s ease-out 0.1s both; }
.animate-in-delay-2 { animation: fadeInUp 0.6s ease-out 0.2s both; }
.animate-in-delay-3 { animation: fadeInUp 0.6s ease-out 0.3s both; }
.animate-in-delay-4 { animation: fadeInUp 0.6s ease-out 0.4s both; }
.animate-scale { animation: scaleIn 0.5s ease-out both; }
.animate-left { animation: fadeInLeft 0.5s ease-out both; }
.animate-right { animation: fadeInRight 0.5s ease-out both; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== SELECTION ===== */
::selection { background: rgba(59,130,246,0.3); color: #fff; }
