   :root {
       --primary: #2563EB;
       --secondary: #14B8A6;
       --success: #22C55E;
       --warning: #F59E0B;
       --danger: #EF4444;
       --sidebar-width: 272px;
       --sidebar-collapsed: 78px;
       --header-height: 70px;
   }

   * {
       margin: 0;
       padding: 0;
       box-sizing: border-box;
   }

   body {
       font-family: 'Inter', sans-serif;
       background: #F1F5F9;
       overflow-x: hidden;
   }

   .dark body,
   html.dark body {
       background: #0F172A;
   }

   /* Scrollbar */
   ::-webkit-scrollbar {
       width: 5px;
       height: 5px;
   }

   ::-webkit-scrollbar-track {
       background: transparent;
   }

   ::-webkit-scrollbar-thumb {
       background: #94a3b8;
       border-radius: 10px;
   }

   .dark ::-webkit-scrollbar-thumb {
       background: #475569;
   }

   /* ===== SIDEBAR ===== */
   .sidebar {
       width: var(--sidebar-width);
       transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
       z-index: 50;
   }

   .sidebar.collapsed {
       width: var(--sidebar-collapsed);
   }

   .sidebar.collapsed .sidebar-text,
   .sidebar.collapsed .sidebar-logo-text,
   .sidebar.collapsed .sidebar-badge,
   .sidebar.collapsed .sidebar-submenu,
   .sidebar.collapsed .menu-section-title,
   .sidebar.collapsed .sidebar-upgrade {
       display: none;
   }

   .sidebar.collapsed .sidebar-link {
       justify-content: center;
       padding: 10px 12px;
   }

   .sidebar.collapsed .sidebar-link .sidebar-icon {
       margin-right: 0;
   }

   .sidebar.collapsed .sidebar-logo {
       justify-content: center;
   }

   .sidebar-link {
       transition: all 0.2s ease;
       position: relative;
       border-radius: 10px;
   }

   .sidebar-link::before {
       content: '';
       position: absolute;
       left: 0;
       top: 0;
       height: 100%;
       width: 3px;
       background: var(--primary);
       transform: scaleY(0);
       transition: transform 0.2s ease;
       border-radius: 0 3px 3px 0;
   }

   .sidebar-link:hover::before,
   .sidebar-link.active::before {
       transform: scaleY(1);
   }

   /* ===== MAIN CONTENT ===== */
   .main-content {
       margin-left: var(--sidebar-width);
       transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
       min-height: 100vh;
   }

   .main-content.expanded {
       margin-left: var(--sidebar-collapsed);
   }

   @media (max-width: 1023px) {
       .main-content {
           margin-left: 0 !important;
       }
   }

   /* ===== HEADER ===== */
   .header {
       height: var(--header-height);
   }

   .header.scrolled {
       box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
   }

   .dark .header.scrolled {
       box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
   }

   /* ===== STAT CARDS ===== */
   .stat-card {
       transition: all 0.3s ease;
       position: relative;
       overflow: hidden;
   }

   .stat-card::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       right: 0;
       height: 3px;
       background: linear-gradient(90deg, var(--primary), var(--secondary));
       transform: scaleX(0);
       transform-origin: left;
       transition: transform 0.4s ease;
   }

   .stat-card:hover::before {
       transform: scaleX(1);
   }

   .stat-card:hover {
       transform: translateY(-3px);
       box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
   }

   .dark .stat-card:hover {
       box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
   }

   /* ===== GRADIENTS ===== */
   .gradient-primary {
       background: linear-gradient(135deg, #2563EB, #1d4ed8);
   }

   .gradient-secondary {
       background: linear-gradient(135deg, #14B8A6, #0d9488);
   }

   .gradient-success {
       background: linear-gradient(135deg, #22C55E, #16a34a);
   }

   .gradient-warning {
       background: linear-gradient(135deg, #F59E0B, #d97706);
   }

   .gradient-danger {
       background: linear-gradient(135deg, #EF4444, #dc2626);
   }

   .gradient-mixed {
       background: linear-gradient(135deg, #2563EB, #14B8A6);
   }

   /* ===== BUTTON RIPPLE ===== */
   .btn-ripple {
       position: relative;
       overflow: hidden;
   }

   .btn-ripple .ripple {
       position: absolute;
       border-radius: 50%;
       background: rgba(255, 255, 255, 0.4);
       transform: scale(0);
       animation: rippleEffect 0.6s linear;
       pointer-events: none;
   }

   @keyframes rippleEffect {
       to {
           transform: scale(4);
           opacity: 0;
       }
   }

   /* ===== FLOATING ===== */
   @keyframes float {

       0%,
       100% {
           transform: translateY(0);
       }

       50% {
           transform: translateY(-8px);
       }
   }

   .floating {
       animation: float 3s ease-in-out infinite;
   }

   /* ===== PROGRESS BAR ===== */
   .progress-animated {
       animation: progressGrow 2s ease-out forwards;
       width: 0;
   }

   @keyframes progressGrow {
       to {
           width: var(--pw);
       }
   }

   /* ===== NOTIFICATION DOT ===== */
   .notif-dot::after {
       content: '';
       position: absolute;
       top: 0;
       right: 0;
       width: 8px;
       height: 8px;
       background: var(--danger);
       border-radius: 50%;
       border: 2px solid white;
   }

   .dark .notif-dot::after {
       border-color: #1E293B;
   }

   /* ===== STATUS BADGES ===== */
   .badge {
       display: inline-flex;
       align-items: center;
       gap: 4px;
       padding: 3px 10px;
       border-radius: 9999px;
       font-size: 11px;
       font-weight: 600;
   }

   .badge::before {
       content: '';
       width: 6px;
       height: 6px;
       border-radius: 50%;
   }

   .badge-active {
       background: rgba(34, 197, 94, 0.1);
       color: #16a34a;
   }

   .badge-active::before {
       background: #22C55E;
   }

   .badge-pending {
       background: rgba(245, 158, 11, 0.1);
       color: #d97706;
   }

   .badge-pending::before {
       background: #F59E0B;
   }

   .badge-completed {
       background: rgba(37, 99, 235, 0.1);
       color: #1d4ed8;
   }

   .badge-completed::before {
       background: #2563EB;
   }

   .badge-inactive {
       background: rgba(239, 68, 68, 0.1);
       color: #dc2626;
   }

   .badge-inactive::before {
       background: #EF4444;
   }

   /* ===== DROPDOWN ===== */
   .dropdown-menu {
       transform-origin: top right;
   }

   .dropdown-menu.show {
       animation: ddIn 0.25s ease forwards;
   }

   @keyframes ddIn {
       from {
           opacity: 0;
           transform: scale(0.95) translateY(-4px);
       }

       to {
           opacity: 1;
           transform: scale(1) translateY(0);
       }
   }

   /* ===== MODAL ===== */
   .modal-overlay {
       position: fixed;
       inset: 0;
       z-index: 70;
       background: rgba(0, 0, 0, 0.6);
       backdrop-filter: blur(4px);
       opacity: 0;
       visibility: hidden;
       transition: all 0.3s ease;
       display: flex;
       align-items: center;
       justify-content: center;
       padding: 16px;
   }

   .modal-overlay.active {
       opacity: 1;
       visibility: visible;
   }

   .modal-box {
       background: white;
       border-radius: 20px;
       width: 100%;
       max-height: 90vh;
       overflow-y: auto;
       box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
       transform: scale(0.9) translateY(20px);
       opacity: 0;
       transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
   }

   .dark .modal-box {
       background: #1E293B;
       box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
   }

   .modal-overlay.active .modal-box {
       transform: scale(1) translateY(0);
       opacity: 1;
   }

   /* ===== TOAST ===== */
   .toast-item {
       animation: toastSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
       pointer-events: auto;
   }

   @keyframes toastSlide {
       from {
           opacity: 0;
           transform: translateX(100%);
       }

       to {
           opacity: 1;
           transform: translateX(0);
       }
   }

   .toast-item.removing {
       animation: toastHide 0.3s ease forwards;
   }

   @keyframes toastHide {
       to {
           opacity: 0;
           transform: translateX(100%);
       }
   }

   /* ===== TIMELINE ===== */
   .timeline-item {
       position: relative;
       padding-left: 28px;
   }

   .timeline-item::before {
       content: '';
       position: absolute;
       left: 5px;
       top: 24px;
       bottom: -12px;
       width: 2px;
       background: #e2e8f0;
   }

   .dark .timeline-item::before {
       background: #334155;
   }

   .timeline-item:last-child::before {
       display: none;
   }

   .timeline-dot {
       position: absolute;
       left: 0;
       top: 6px;
       width: 12px;
       height: 12px;
       border-radius: 50%;
       border: 2px solid;
   }

   /* ===== TABLE ===== */
   .table-wrap {
       overflow-x: auto;
       -webkit-overflow-scrolling: touch;
   }

   /* ===== PAGE LOADER ===== */
   .page-loader {
       position: fixed;
       inset: 0;
       z-index: 9999;
       display: flex;
       align-items: center;
       justify-content: center;
       transition: opacity 0.5s ease, visibility 0.5s ease;
   }

   .page-loader.done {
       opacity: 0;
       visibility: hidden;
       pointer-events: none;
   }

   .loader-ring {
       width: 44px;
       height: 44px;
       border: 3px solid rgba(37, 99, 235, 0.2);
       border-top-color: var(--primary);
       border-radius: 50%;
       animation: spin 0.7s linear infinite;
   }

   @keyframes spin {
       to {
           transform: rotate(360deg);
       }
   }

   /* ===== SKELETON ===== */
   .skeleton {
       background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
       background-size: 200% 100%;
       animation: shimmer 1.5s infinite;
       border-radius: 8px;
   }

   .dark .skeleton {
       background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
       background-size: 200% 100%;
   }

   @keyframes shimmer {
       0% {
           background-position: -200% 0;
       }

       100% {
           background-position: 200% 0;
       }
   }