body {
  font-family: 'Outfit', sans-serif;
  background-color: #f8fafc; /* Solid slate-50 */
  color: #0f172a; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Optimized Lightweight Glass Effect (Theme-Preserving) */
.glass {
  background: rgba(255, 255, 255, 0.98); /* Near-solid white for performance */
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.glass-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform, box-shadow; /* Hint to hardware acceleration */
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  border-color: #e2e8f0;
}

/* Sidebar & Nav Performance */
.bg-gradient-sidebar {
  background: #1e1b4b; /* Solid Navy */
}

.transition-custom {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

/* Gradient Text (Optimized) */
.text-gradient {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Simplified Layout Elements */
::selection {
  background: #0ea5e9;
  color: #fff;
}

/* Scrollbar (Lightweight) */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Toast Performance */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.toast {
  padding: 12px 20px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 0.875rem;
  color: white;
  font-weight: 600;
  min-width: 240px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  animation: slideInLite 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
.toast.info { background: #0ea5e9; }
.toast.warning { background: #f59e0b; }

@keyframes slideInLite {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.fade-out {
  opacity: 0;
  transition: opacity 0.2s ease;
}
