/* --- ADVANCED DESIGN SYSTEM TOKENS --- */
:root {
  --brand-primary: #10b981; /* Emerald 500 */
  --brand-secondary: #059669; /* Emerald 600 */
  --brand-accent: #34d399; /* Emerald 400 */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* --- ANIMATIONS --- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-slide-in-right { animation: slideInRight 0.5s ease-out forwards; }
.animate-pulse-subtle { animation: pulse-subtle 3s ease-in-out infinite; }
.animate-morph { animation: morph 8s ease-in-out infinite; }

.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }

/* --- CORE UI ELEMENTS --- */
body {
  background-image: 
    radial-gradient(at 0% 0%, hsla(161, 71%, 95%, 1) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(180, 100%, 98%, 1) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(161, 71%, 95%, 1) 0, transparent 50%);
  background-attachment: fixed;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, 0.4); }

/* --- GLASSMORPHISM --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
  transform: translateY(-4px);
}

/* --- PRINT OPTIMIZATION --- */
@media print {
  body { background: white !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .no-print { display: none !important; }
  .glass { background: white !important; border: 1px solid #e2e8f0 !important; box-shadow: none !important; backdrop-filter: none !important; }
  @page { margin: 1.5cm; }
}

/* --- UTILITIES --- */
.text-gradient {
  background: linear-gradient(to right, #059669, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
