:root {
  /* Colors - Enhanced palette */
  --primary-color: #4f46e5;
  --primary-dark-color: #4338ca;
  --primary-light-color: #818cf8;
  --secondary-color: #10b981;
  --secondary-dark-color: #059669;
  --danger-color: #ef4444;
  --danger-dark-color: #dc2626;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;

  --background-color: #f9fafb;
  --card-bg-color: #ffffff;
  --text-color: #111827;
  --text-secondary-color: #4b5563;
  --text-light-color: #6b7280;
  --border-color: #e5e7eb;
  --hover-bg-color: #f3f4f6;

  /* Spacing - 8px base system */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  --space-2xl: 3rem; /* 48px */

  /* Typography - Type scale */
  --font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Borders & Shadows - Enhanced depth */
  --border-radius-sm: 0.375rem; /* 6px */
  --border-radius: 0.5rem; /* 8px */
  --border-radius-lg: 0.75rem; /* 12px */
  --border-radius-xl: 1rem; /* 16px */
  --border-radius-full: 9999px;

  --box-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --box-shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --box-shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --box-shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;

  /* Breakpoints for Responsive Design */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* Skeleton loader */
  --skeleton-base: #e5e7eb;
  --skeleton-highlight: #f3f4f6;
}

/* ==========================================================================
   SKELETON LOADERS
   ========================================================================== */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--skeleton-base) 25%,
    var(--skeleton-highlight) 50%,
    var(--skeleton-base) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--border-radius);
}

/* Named skeleton shapes */
.skeleton-text    { height: 1rem;  width: 100%; }
.skeleton-text-sm { height: 0.75rem; width: 60%; }
.skeleton-title   { height: 1.5rem; width: 40%; }
.skeleton-circle  { border-radius: 50%; }
.skeleton-card    { height: 120px; width: 100%; }
.skeleton-row     { height: 2.5rem; width: 100%; border-radius: 0; }

/* Dashboard skeleton layout */
.skeleton-dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.skeleton-dashboard .skeleton-header {
  height: 3rem;
  width: 50%;
}

.skeleton-dashboard .skeleton-balance-card {
  height: 160px;
}

.skeleton-dashboard .skeleton-budget-card {
  height: 90px;
}

.skeleton-dashboard .skeleton-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
  gap: var(--space-md);
}
