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

:root {
  /* === PREMIUM COLOR PALETTE === */
  --primary: #6366f1;          /* Indigo 500 - lifted from 600 */
  --primary-hover: #4f46e5;    /* Indigo 600 */
  --primary-dark: #3730a3;     /* Indigo 800 */
  --primary-light: #eef2ff;    /* Indigo 50 */
  --primary-glow: rgba(99, 102, 241, 0.2);
  --primary-glass: rgba(99, 102, 241, 0.08);

  --bg-body: #f0f4ff;          /* Slightly indigo-tinted bg */
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-sidebar: #1e1b4b;       /* Deep indigo sidebar */
  --bg-glass: rgba(255, 255, 255, 0.7);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-secondary: #94a3b8;
  --text-on-dark: rgba(255, 255, 255, 0.9);
  --text-on-dark-muted: rgba(255, 255, 255, 0.6);

  /* Status Colors */
  --danger-color: #ef4444;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --info-color: #06b6d4;

  /* === ACCENT SYSTEM === */
  --accent-emerald: #10b981;
  --accent-emerald-light: #d1fae5;
  --accent-emerald-glow: rgba(16, 185, 129, 0.15);
  --accent-sky: #0ea5e9;
  --accent-sky-light: #e0f2fe;
  --accent-sky-glow: rgba(14, 165, 233, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-light: #fef3c7;
  --accent-amber-glow: rgba(245, 158, 11, 0.15);
  --accent-violet: #8b5cf6;
  --accent-violet-light: #ede9fe;
  --accent-violet-glow: rgba(139, 92, 246, 0.15);
  --accent-rose: #f43f5e;
  --accent-rose-light: #ffe4e6;
  --accent-rose-glow: rgba(244, 63, 94, 0.15);
  --accent-teal: #14b8a6;
  --accent-teal-light: #ccfbf1;

  --border-color: #e2e8f0;
  --border-glass: rgba(255, 255, 255, 0.3);
  --glass-border: #e2e8f0; /* legacy */

  /* === GRADIENTS === */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #4f46e5 100%);
  --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
  --gradient-sidebar: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
  --gradient-emerald: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --gradient-sky: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  --gradient-amber: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --gradient-rose: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  --gradient-violet: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);

  /* === LAYOUT === */
  --sidebar-width: 265px;
  --header-height: 68px;

  /* === RADIUS === */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  /* === SHADOWS === */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.2);
  --shadow-emerald: 0 8px 24px rgba(16, 185, 129, 0.2);
  --shadow-sky: 0 8px 24px rgba(14, 165, 233, 0.2);
  --shadow-amber: 0 8px 24px rgba(245, 158, 11, 0.2);
  --shadow-rose: 0 8px 24px rgba(244, 63, 94, 0.2);
  --shadow-violet: 0 8px 24px rgba(139, 92, 246, 0.2);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Legacy support */
  --accent-color: var(--primary);
  --text-secondary: #64748b;
}

/* ===================
   RESET & BASE
   =================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--bg-body);
  color: var(--text-main);
  font-family: 'Outfit', 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle animated mesh background */
  background-image:
    radial-gradient(at 20% 30%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  margin-top: 0;
  letter-spacing: -0.02em;
  font-family: 'Outfit', sans-serif;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--primary-hover); }

/* ================================
   LAYOUT STRUCTURE
   ================================ */

/* --- SIDEBAR (Dark Glass Style) --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.sidebar-brand-text {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sidebar-brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

/* User Profile Mini Card in Sidebar */
.sidebar-user-card {
  margin: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

.sidebar-user-role {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0 1rem;
}

/* Nav Items — Dark Sidebar */
.nav-header {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1.25rem 1.25rem 0.4rem;
}

.sidebar .nav-item .nav-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
  border-radius: 0;
  position: relative;
  margin: 1px 0.75rem;
  border-radius: var(--radius-md);
}

.sidebar .nav-item .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar .nav-item .nav-link.active {
  background: rgba(99, 102, 241, 0.3);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.sidebar .nav-item .nav-link.active::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  width: 20px;
  text-align: center;
  margin-right: 10px;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 8px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* --- HEADER --- */
.main-wrapper {
  margin-left: var(--sidebar-width);
  transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-header {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.main-content {
  padding: 2rem;
  flex: 1;
}

/* ================================
   COMPONENTS
   ================================ */

/* Cards — Glassmorphism */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

/* Glass Card Variant */
.card-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(99,102,241,0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 4px 12px rgba(99,102,241,0.35);
  color: white;
}

.btn-primary:active { transform: translateY(0); }

.btn-danger {
  background: white;
  color: var(--danger-color);
  border-color: #fecaca;
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: var(--danger-color);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  color: var(--text-muted);
  background: transparent;
}

.btn-icon:hover {
  background: var(--bg-body);
  color: var(--text-main);
}

/* Forms */
.form-control,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"],
select, textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: white;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glass);
}

/* Tables */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: white;
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

th {
  background: #f8faff;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  color: var(--text-main);
}

tr:last-child td { border-bottom: none; }
tr:hover { background: rgba(99, 102, 241, 0.02); }

/* Utilities */
.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-success { color: var(--success-color) !important; }

/* ================================
   MOBILE & OVERLAY
   ================================ */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1035;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 991.98px) {
  :root { --sidebar-width: 280px; }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-wrapper { margin-left: 0; }
  .main-header { padding: 0 1.25rem; }
  .main-content { padding: 1.25rem; }

  /* Mobile Table Card View */
  .table-mobile-cards table, .table-mobile-cards tbody,
  .table-mobile-cards tr, .table-mobile-cards td { display: block; }
  .table-mobile-cards thead { display: none; }
  .table-mobile-cards tr {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
  }
  .table-mobile-cards td {
    padding-left: 45%;
    position: relative;
    text-align: right;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
  }
  .table-mobile-cards td::before {
    content: attr(data-label);
    position: absolute; left: 0;
    width: 45%; text-align: left;
    font-weight: 600; color: var(--text-muted);
    font-size: 0.75rem;
  }
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(-5px) rotate(-1deg); }
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

@keyframes particle-float {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.4; }
  25% { transform: translateY(-20px) translateX(10px) rotate(45deg); opacity: 0.7; }
  50% { transform: translateY(-35px) translateX(-5px) rotate(90deg); opacity: 0.5; }
  75% { transform: translateY(-15px) translateX(15px) rotate(135deg); opacity: 0.8; }
}

.animate-float { animation: float 5s ease-in-out infinite; }
.animate-fade-in { animation: fadeInUp 0.5s ease-out both; }
.animate-fade-in-delay-1 { animation: fadeInUp 0.5s ease-out 0.08s both; }
.animate-fade-in-delay-2 { animation: fadeInUp 0.5s ease-out 0.16s both; }
.animate-fade-in-delay-3 { animation: fadeInUp 0.5s ease-out 0.24s both; }
.animate-fade-in-delay-4 { animation: fadeInUp 0.5s ease-out 0.32s both; }

/* ================================
   DASHBOARD — WELCOME CARD
   ================================ */
.welcome-card {
  position: relative;
  border: none;
  overflow: hidden;
  background: var(--gradient-hero);
  color: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  padding: 0;
}

/* Animated mesh overlay */
.welcome-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.25) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.welcome-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

/* Particles */
.welcome-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.particle:nth-child(1) { width: 6px; height: 6px; top: 20%; left: 15%; animation: particle-float 6s ease-in-out infinite; }
.particle:nth-child(2) { width: 4px; height: 4px; top: 40%; left: 75%; animation: particle-float 8s ease-in-out infinite 1s; }
.particle:nth-child(3) { width: 8px; height: 8px; top: 70%; left: 45%; animation: particle-float 7s ease-in-out infinite 2s; }
.particle:nth-child(4) { width: 5px; height: 5px; top: 15%; left: 60%; animation: particle-float 9s ease-in-out infinite 0.5s; }
.particle:nth-child(5) { width: 3px; height: 3px; top: 80%; left: 25%; animation: particle-float 5s ease-in-out infinite 1.5s; }
.particle:nth-child(6) { width: 7px; height: 7px; top: 55%; left: 85%; animation: particle-float 11s ease-in-out infinite 3s; }

.welcome-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.75rem;
  position: relative;
  z-index: 2;
}

.welcome-text { position: relative; z-index: 2; max-width: 580px; }

.welcome-text h2, .welcome-text h3, .welcome-text p { color: white; }

.welcome-text .text-muted { color: rgba(255, 255, 255, 0.72) !important; }

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.welcome-image {
  position: relative;
  z-index: 2;
  height: 190px;
  display: flex;
  align-items: center;
}

.welcome-img-el {
  height: 230px;
  object-fit: contain;
  margin-right: 0.5rem;
  transform: translateY(8px);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}

/* ================================
   STAT CARDS — GLASSMORPHISM
   ================================ */
.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.9);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.stat-card:hover::before { height: 4px; }

/* Gradient variants */
.stat-card--emerald::before { background: var(--gradient-emerald); }
.stat-card--emerald .stat-icon-badge { background: var(--accent-emerald-light); color: var(--accent-emerald); }
.stat-card--emerald:hover { box-shadow: var(--shadow-lg), var(--shadow-emerald); }

.stat-card--sky::before { background: var(--gradient-sky); }
.stat-card--sky .stat-icon-badge { background: var(--accent-sky-light); color: var(--accent-sky); }
.stat-card--sky:hover { box-shadow: var(--shadow-lg), var(--shadow-sky); }

.stat-card--amber::before { background: var(--gradient-amber); }
.stat-card--amber .stat-icon-badge { background: var(--accent-amber-light); color: var(--accent-amber); }
.stat-card--amber:hover { box-shadow: var(--shadow-lg), var(--shadow-amber); }

.stat-card--violet::before { background: var(--gradient-violet); }
.stat-card--violet .stat-icon-badge { background: var(--accent-violet-light); color: var(--accent-violet); }
.stat-card--violet:hover { box-shadow: var(--shadow-lg), var(--shadow-violet); }

.stat-card--rose::before { background: var(--gradient-rose); }
.stat-card--rose .stat-icon-badge { background: var(--accent-rose-light); color: var(--accent-rose); }
.stat-card--rose:hover { box-shadow: var(--shadow-lg), var(--shadow-rose); }

.stat-card--primary::before { background: var(--gradient-primary); }
.stat-card--primary .stat-icon-badge { background: var(--primary-light); color: var(--primary); }
.stat-card--primary:hover { box-shadow: var(--shadow-lg), var(--shadow-glow); }

.stat-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  transition: var(--transition);
}

.stat-card:hover .stat-icon-badge {
  transform: scale(1.1) rotate(-5deg);
}

.stat-icon {
  font-size: 3rem;
  opacity: 0.05;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.stat-card:hover .stat-icon { opacity: 0.1; transform: translateY(-55%) scale(1.1); }

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.07em;
}

.stat-value {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-top: 0.2rem;
  font-family: 'Outfit', sans-serif;
  animation: countUp 0.6s ease-out both;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.stat-trend.up { color: var(--success-color); }
.stat-trend.down { color: var(--danger-color); }

/* Quick Access Cards */
.lift-hover {
  transition: var(--transition-bounce);
  border: 1px solid var(--border-color) !important;
}

.lift-hover:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
}

/* Quick access icon circles */
.quick-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 0.75rem;
  transition: var(--transition-bounce);
}

.lift-hover:hover .quick-icon {
  transform: scale(1.15) rotate(-8deg);
}

/* ================================
   CHART CONTAINERS
   ================================ */
.chart-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.9);
  overflow: hidden;
  transition: var(--transition);
}

.chart-card:hover { box-shadow: var(--shadow-md); }

.chart-card-header {
  padding: 1.25rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-card-body { padding: 1rem 1.5rem 1.5rem; }

/* Nav Pills — Premium */
.nav-pills .nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.nav-pills .nav-link.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

/* ================================
   EMPTY STATE
   ================================ */
.empty-state {
  text-align: center;
  padding: 4.5rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4.5rem;
  opacity: 0.2;
  margin-bottom: 1.25rem;
  display: block;
}

.empty-state-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  font-size: 0.9rem;
  max-width: 380px;
  margin: 0 auto 1.25rem;
}

/* ================================
   FOOTER
   ================================ */
.main-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.main-footer a { color: var(--primary); font-weight: 500; }

.footer-version {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  .welcome-card-content {
    flex-direction: column-reverse;
    text-align: center;
    padding: 1.75rem;
    gap: 0.5rem;
  }

  .welcome-image {
    height: auto;
    margin-bottom: 0;
    justify-content: center;
  }

  .welcome-img-el {
    height: 150px;
    margin-right: 0;
    transform: none;
    margin-bottom: -20px;
  }

  .welcome-text { width: 100%; z-index: 5; }
  .welcome-actions { justify-content: center; }
  .stat-value { font-size: 1.6rem; }
}

/* ================================
   MISC / HELPERS
   ================================ */

/* Glow Pulse for alerts */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(244, 63, 94, 0.3); }
  50% { box-shadow: 0 0 20px rgba(244, 63, 94, 0.5); }
}

.alert-glow { animation: glow-pulse 2s ease-in-out infinite; }

/* Shimmer Loading */
.shimmer {
  background: linear-gradient(90deg, #f0f4ff 25%, #e8eeff 50%, #f0f4ff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* Badge dot indicator */
.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Backdrop blur pill */
.pill-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Progress track */
.progress-track {
  height: 6px;
  background: var(--bg-body);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--gradient-primary);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section Heading */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.section-heading h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Timeline Activity */
.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.timeline-content { flex: 1; min-width: 0; }
.timeline-action { font-size: 0.82rem; font-weight: 600; }
.timeline-meta { font-size: 0.74rem; color: var(--text-muted); }

/* ===================================================
   SIWARGA 9.5 — MICRO-INTERACTIONS & TACTILE FEEDBACK
   =================================================== */
.btn {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active {
  transform: scale(0.975);
}
.stat-card, .dashboard-card, .hover-lift {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-card:hover, .dashboard-card:hover, .hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09), 0 4px 10px rgba(99, 102, 241, 0.06);
}

/* ===================================================
   SIWARGA 9.5 — SKELETON SHIMMER LOADERS
   =================================================== */
@keyframes sw-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: sw-shimmer 1.8s infinite ease-in-out;
  border-radius: var(--radius-sm, 6px);
  display: inline-block;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
.skeleton-text {
  height: 14px;
  width: 100%;
  margin-bottom: 8px;
  border-radius: 4px;
}
.skeleton-title {
  height: 22px;
  width: 60%;
  margin-bottom: 12px;
  border-radius: 6px;
}
.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.skeleton-card {
  height: 120px;
  width: 100%;
  border-radius: var(--radius-lg, 14px);
}
.skeleton-btn {
  height: 38px;
  width: 100px;
  border-radius: var(--radius-md, 10px);
}

/* ===================================================
   SIWARGA 9.5 — FLOATING GLASSMORPHIC TOAST
   =================================================== */
.sw-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 32px);
}

@media (max-width: 768px) {
  .sw-toast-container {
    top: auto;
    bottom: calc(var(--bn-total, 64px) + 16px);
    left: 16px;
    right: 16px;
    width: auto;
  }
}

.sw-toast {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(99, 102, 241, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: swToastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sw-toast.closing {
  animation: swToastOut 0.25s ease forwards;
}

@keyframes swToastIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes swToastOut {
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
}

.sw-toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.sw-toast-icon.success { background: #d1fae5; color: #059669; }
.sw-toast-icon.danger, .sw-toast-icon.error { background: #fee2e2; color: #dc2626; }
.sw-toast-icon.warning { background: #fef3c7; color: #d97706; }
.sw-toast-icon.info, .sw-toast-icon.primary { background: #e0e7ff; color: #4f46e5; }

.sw-toast-content {
  flex: 1;
  min-width: 0;
}
.sw-toast-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  margin-bottom: 2px;
  font-family: 'Outfit', sans-serif;
}
.sw-toast-body {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.35;
  word-break: break-word;
}
.sw-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: color 0.15s ease;
}
.sw-toast-close:hover {
  color: #334155;
}
.sw-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  opacity: 0.85;
}
.sw-toast-progress.success { background: #10b981; }
.sw-toast-progress.danger, .sw-toast-progress.error { background: #ef4444; }
.sw-toast-progress.warning { background: #f59e0b; }
.sw-toast-progress.info, .sw-toast-progress.primary { background: #6366f1; }

/* ===================================================
   SIWARGA 9.5 — EMPTY STATE COMPONENT
   =================================================== */
.empty-state {
  text-align: center;
  padding: 44px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.empty-state-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.16) 100%);
  color: var(--primary, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
}
.empty-state-icon.sm {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.empty-state-icon.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.18) 100%);
  color: #10b981;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.12);
}
.empty-state-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}
.empty-state-text {
  font-size: 0.85rem;
  color: #64748b;
  max-width: 340px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.empty-state-action {
  margin-top: 4px;
}