/* Custom CSS for TPI World Superadmin White Theme */

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

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --bg-main: #f8fafc;
  --sidebar-bg: #ffffff;
  --card-bg: #ffffff;
  --primary-accent: #4f46e5;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

/* Glass & Card Animations */
.white-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(226, 232, 240, 0.6), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  border-radius: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.white-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(79, 70, 229, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  border-color: #cbd5e1;
}

.stat-card-gradient-1 {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.stat-card-gradient-2 {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.stat-card-gradient-3 {
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.stat-card-gradient-4 {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

/* Sidebar Animations */
.sidebar-transition {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-active {
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.35);
}

.nav-item-active svg {
  color: #ffffff !important;
}

.nav-item-idle {
  color: #334155 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}

.nav-item-idle:hover {
  color: #4338ca !important;
  background-color: #e0e7ff !important;
  transform: translateX(4px);
}

.nav-item-idle svg {
  color: #475569;
  transition: color 0.2s ease;
}

.nav-item-idle:hover svg {
  color: #4338ca;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-pulse-slow {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
