/**
 * Calytia Design System
 * Professional Modern UI Framework
 * Version 2.0 - 2025
 */

/* ========================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */

:root {
  /* === Brand Colors === */
  --brand-primary: #6366f1;      /* Indigo */
  --brand-primary-50: #eef2ff;
  --brand-primary-100: #e0e7ff;
  --brand-primary-200: #c7d2fe;
  --brand-primary-300: #a5b4fc;
  --brand-primary-400: #818cf8;
  --brand-primary-500: #6366f1;
  --brand-primary-600: #4f46e5;
  --brand-primary-700: #4338ca;
  --brand-primary-800: #3730a3;
  --brand-primary-900: #312e81;
  
  /* === Secondary Color (Teal) === */
  --brand-secondary: #14b8a6;
  --brand-secondary-50: #f0fdfa;
  --brand-secondary-100: #ccfbf1;
  --brand-secondary-200: #99f6e4;
  --brand-secondary-300: #5eead4;
  --brand-secondary-400: #2dd4bf;
  --brand-secondary-500: #14b8a6;
  --brand-secondary-600: #0d9488;
  --brand-secondary-700: #0f766e;
  --brand-secondary-800: #115e59;
  --brand-secondary-900: #134e4a;
  
  /* === Accent Color (Amber) === */
  --brand-accent: #f59e0b;
  --brand-accent-50: #fffbeb;
  --brand-accent-100: #fef3c7;
  --brand-accent-200: #fde68a;
  --brand-accent-300: #fcd34d;
  --brand-accent-400: #fbbf24;
  --brand-accent-500: #f59e0b;
  --brand-accent-600: #d97706;
  --brand-accent-700: #b45309;
  --brand-accent-800: #92400e;
  --brand-accent-900: #78350f;

  /* === Neutral Colors === */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0a0a0a;

  /* === Semantic Colors === */
  --color-success: #22c55e;
  --color-success-light: #dcfce7;
  --color-success-dark: #16a34a;
  
  --color-warning: #eab308;
  --color-warning-light: #fef9c3;
  --color-warning-dark: #ca8a04;
  
  --color-error: #ef4444;
  --color-error-light: #fee2e2;
  --color-error-dark: #dc2626;
  
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;
  --color-info-dark: #2563eb;

  /* === Surface Colors === */
  --surface-ground: #f8fafc;
  --surface-section: #ffffff;
  --surface-card: #ffffff;
  --surface-overlay: rgba(0, 0, 0, 0.5);
  --surface-border: #e2e8f0;
  --surface-hover: #f1f5f9;

  /* === Text Colors === */
  --text-color: #1e293b;
  --text-color-secondary: #64748b;
  --text-color-muted: #94a3b8;
  --text-color-inverse: #ffffff;

  /* === Typography === */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* === Spacing Scale === */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* === Border Radius === */
  --radius-none: 0;
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* === Shadows === */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  
  /* Colored Shadows */
  --shadow-primary: 0 4px 14px 0 rgba(99, 102, 241, 0.25);
  --shadow-success: 0 4px 14px 0 rgba(34, 197, 94, 0.25);
  --shadow-error: 0 4px 14px 0 rgba(239, 68, 68, 0.25);

  /* === 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);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* === Z-Index Scale === */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;

  /* === Sidebar === */
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --navbar-height: 64px;
}

/* ========================================
   2. DARK MODE SUPPORT
   ======================================== */

[data-theme="dark"],
.dark {
  --surface-ground: #0f172a;
  --surface-section: #1e293b;
  --surface-card: #1e293b;
  --surface-border: #334155;
  --surface-hover: #334155;
  
  --text-color: #f1f5f9;
  --text-color-secondary: #94a3b8;
  --text-color-muted: #64748b;
  
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
}

/* ========================================
   3. BASE STYLES
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-color);
  background-color: var(--surface-ground);
  margin: 0;
  padding: 0;
}

/* ========================================
   4. TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  color: var(--text-color);
  margin: 0 0 var(--space-4);
  line-height: var(--leading-tight);
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.025em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.025em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: var(--font-semibold); }

p {
  margin: 0 0 var(--space-4);
  color: var(--text-color-secondary);
}

.text-display {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
}

.text-subtitle {
  font-size: var(--text-xl);
  color: var(--text-color-secondary);
  font-weight: var(--font-normal);
}

/* ========================================
   5. LAYOUT COMPONENTS
   ======================================== */

/* === Main Layout === */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--surface-card);
  border-right: 1px solid var(--surface-border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), width var(--transition-base);
}

.app-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
  transition: margin-left var(--transition-base);
}

.app-main.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-width);
}

.app-navbar {
  height: var(--navbar-height);
  background: var(--surface-card);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
}

.app-content {
  padding: var(--space-8);
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-lg { max-width: 1440px; }
.container-sm { max-width: 960px; }
.container-xs { max-width: 640px; }

/* ========================================
   6. SIDEBAR STYLES
   ======================================== */

.sidebar-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--surface-border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand-primary-500), var(--brand-primary-700));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-bold);
  font-size: var(--text-xl);
  box-shadow: var(--shadow-primary);
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-color);
  line-height: var(--leading-tight);
}

.sidebar-subtitle {
  font-size: var(--text-xs);
  color: var(--text-color-muted);
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: var(--space-6);
}

.sidebar-section-title {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--text-color-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-link:hover {
  background: var(--surface-hover);
  color: var(--text-color);
}

.sidebar-link.active {
  background: var(--brand-primary-50);
  color: var(--brand-primary-600);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--brand-primary-500);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.sidebar-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-link:hover .sidebar-link-icon,
.sidebar-link.active .sidebar-link-icon {
  opacity: 1;
}

.sidebar-link-badge {
  margin-left: auto;
  padding: var(--space-1) var(--space-2);
  background: var(--brand-primary-100);
  color: var(--brand-primary-700);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.sidebar-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--surface-border);
}

/* ========================================
   7. NAVBAR STYLES
   ======================================== */

.navbar-start {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar-end {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: none;
  background: transparent;
  color: var(--text-color-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar-toggle:hover {
  background: var(--surface-hover);
  color: var(--text-color);
}

.navbar-search {
  position: relative;
  width: 400px;
  max-width: 100%;
}

.navbar-search-input {
  width: 100%;
  height: 42px;
  padding: 0 var(--space-4) 0 var(--space-10);
  background: var(--surface-ground);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--text-color);
  transition: all var(--transition-fast);
}

.navbar-search-input::placeholder {
  color: var(--text-color-muted);
}

.navbar-search-input:focus {
  outline: none;
  border-color: var(--brand-primary-400);
  box-shadow: 0 0 0 3px var(--brand-primary-50);
}

.navbar-search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-muted);
  pointer-events: none;
}

.navbar-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-color-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-btn:hover {
  background: var(--surface-hover);
  color: var(--text-color);
}

.navbar-btn-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--color-error);
  color: white;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--font-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-primary-500), var(--brand-secondary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar-avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* ========================================
   8. CARD COMPONENTS
   ======================================== */

.card {
  background: var(--surface-card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card-elevated {
  box-shadow: var(--shadow-lg);
}

.card-elevated:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-color);
  margin: 0;
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--text-color-secondary);
  margin: var(--space-1) 0 0;
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--surface-border);
  background: var(--surface-ground);
}

/* ========================================
   9. STAT CARDS
   ======================================== */

.stat-card {
  background: var(--surface-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  border: 1px solid var(--surface-border);
  transition: all var(--transition-base);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.stat-icon.primary {
  background: var(--brand-primary-50);
  color: var(--brand-primary-600);
}

.stat-icon.secondary {
  background: var(--brand-secondary-50);
  color: var(--brand-secondary-600);
}

.stat-icon.success {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}

.stat-icon.warning {
  background: var(--color-warning-light);
  color: var(--color-warning-dark);
}

.stat-icon.error {
  background: var(--color-error-light);
  color: var(--color-error-dark);
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-color-muted);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-1);
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-color);
  line-height: var(--leading-none);
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-top: var(--space-2);
}

.stat-change.positive {
  color: var(--color-success);
}

.stat-change.negative {
  color: var(--color-error);
}

/* ========================================
   10. BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: var(--leading-none);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-primary-100);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary-500), var(--brand-primary-600));
  color: white;
  box-shadow: var(--shadow-sm), var(--shadow-primary);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-primary-600), var(--brand-primary-700));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-primary);
}

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

/* Secondary Button */
.btn-secondary {
  background: linear-gradient(135deg, var(--brand-secondary-500), var(--brand-secondary-600));
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-secondary-600), var(--brand-secondary-700));
  transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--brand-primary-600);
  border: 2px solid var(--brand-primary-200);
}

.btn-outline:hover:not(:disabled) {
  background: var(--brand-primary-50);
  border-color: var(--brand-primary-300);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-color-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text-color);
}

/* Danger Button */
.btn-danger {
  background: linear-gradient(135deg, var(--color-error), var(--color-error-dark));
  color: white;
  box-shadow: var(--shadow-sm), var(--shadow-error);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-error);
}

/* Success Button */
.btn-success {
  background: linear-gradient(135deg, var(--color-success), var(--color-success-dark));
  color: white;
  box-shadow: var(--shadow-sm), var(--shadow-success);
}

/* Button Sizes */
.btn-xs {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
}

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn-xl {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

/* Icon Button */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-lg);
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

.btn-icon.btn-lg {
  width: 48px;
  height: 48px;
}

/* ========================================
   11. FORMS
   ======================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin-bottom: var(--space-2);
}

.form-label-required::after {
  content: '*';
  color: var(--color-error);
  margin-left: var(--space-1);
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-color);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-color-muted);
}

.form-input:hover {
  border-color: var(--neutral-400);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary-500);
  box-shadow: 0 0 0 3px var(--brand-primary-50);
}

.form-input.error {
  border-color: var(--color-error);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px var(--color-error-light);
}

.form-textarea {
  min-height: 120px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 18px;
  padding-right: var(--space-10);
}

.form-helper {
  font-size: var(--text-xs);
  color: var(--text-color-muted);
  margin-top: var(--space-2);
}

.form-error-text {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary-500);
  cursor: pointer;
}

.form-check-label {
  font-size: var(--text-sm);
  color: var(--text-color-secondary);
  cursor: pointer;
}

/* Input Group */
.input-group {
  display: flex;
}

.input-group .form-input {
  border-radius: 0;
}

.input-group .form-input:first-child {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group .form-input:last-child {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  background: var(--surface-ground);
  border: 1px solid var(--surface-border);
  color: var(--text-color-secondary);
  font-size: var(--text-sm);
}

/* ========================================
   12. BADGES
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-primary {
  background: var(--brand-primary-100);
  color: var(--brand-primary-700);
}

.badge-secondary {
  background: var(--brand-secondary-100);
  color: var(--brand-secondary-700);
}

.badge-success {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}

.badge-warning {
  background: var(--color-warning-light);
  color: var(--color-warning-dark);
}

.badge-error {
  background: var(--color-error-light);
  color: var(--color-error-dark);
}

.badge-info {
  background: var(--color-info-light);
  color: var(--color-info-dark);
}

.badge-neutral {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

/* Badge Sizes */
.badge-sm {
  padding: 2px var(--space-2);
  font-size: 10px;
}

.badge-lg {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Badge with dot */
.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
}

/* ========================================
   13. ALERTS
   ======================================== */

.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.alert-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.alert-success {
  background: var(--color-success-light);
  color: var(--color-success-dark);
  border: 1px solid var(--color-success);
}

.alert-warning {
  background: var(--color-warning-light);
  color: var(--color-warning-dark);
  border: 1px solid var(--color-warning);
}

.alert-error {
  background: var(--color-error-light);
  color: var(--color-error-dark);
  border: 1px solid var(--color-error);
}

.alert-info {
  background: var(--color-info-light);
  color: var(--color-info-dark);
  border: 1px solid var(--color-info);
}

/* ========================================
   14. TABLES
   ======================================== */

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--surface-border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th {
  background: var(--surface-ground);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: var(--font-semibold);
  color: var(--text-color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--surface-border);
}

.table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-color);
}

.table tbody tr {
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--surface-hover);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================
   15. DROPDOWNS
   ======================================== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-2);
  min-width: 200px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
}

.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--text-color-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--surface-hover);
  color: var(--text-color);
}

.dropdown-divider {
  height: 1px;
  background: var(--surface-border);
  margin: var(--space-2) 0;
}

/* ========================================
   16. AVATAR
   ======================================== */

.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  background: linear-gradient(135deg, var(--brand-primary-400), var(--brand-primary-600));
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-xs { width: 24px; height: 24px; font-size: var(--text-xs); }
.avatar-sm { width: 32px; height: 32px; font-size: var(--text-xs); }
.avatar-lg { width: 48px; height: 48px; font-size: var(--text-base); }
.avatar-xl { width: 64px; height: 64px; font-size: var(--text-xl); }
.avatar-2xl { width: 96px; height: 96px; font-size: var(--text-3xl); }

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  border: 2px solid var(--surface-card);
  margin-left: -8px;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* ========================================
   17. PROGRESS
   ======================================== */

.progress {
  width: 100%;
  height: 8px;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary-500), var(--brand-primary-600));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.progress-bar.success {
  background: linear-gradient(90deg, var(--color-success), var(--color-success-dark));
}

.progress-bar.warning {
  background: linear-gradient(90deg, var(--color-warning), var(--color-warning-dark));
}

.progress-bar.error {
  background: linear-gradient(90deg, var(--color-error), var(--color-error-dark));
}

/* ========================================
   18. TABS
   ======================================== */

.tabs {
  display: flex;
  border-bottom: 1px solid var(--surface-border);
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-color-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition-fast);
}

.tab:hover {
  color: var(--text-color);
}

.tab.active {
  color: var(--brand-primary-600);
  border-bottom-color: var(--brand-primary-600);
}

/* Pills variant */
.tabs-pills {
  border-bottom: none;
  gap: var(--space-2);
  background: var(--surface-ground);
  padding: var(--space-1);
  border-radius: var(--radius-xl);
  width: fit-content;
}

.tabs-pills .tab {
  border-bottom: none;
  border-radius: var(--radius-lg);
  margin-bottom: 0;
}

.tabs-pills .tab.active {
  background: var(--surface-card);
  color: var(--text-color);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   19. MODAL
   ======================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--surface-overlay);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--surface-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: none;
  background: transparent;
  color: var(--text-color-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--surface-hover);
  color: var(--text-color);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ========================================
   20. SKELETON LOADING
   ======================================== */

.skeleton {
  background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

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

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: var(--space-4);
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-xl);
}

/* ========================================
   21. ANIMATIONS
   ======================================== */

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-fade-in { animation: fade-in var(--transition-base) forwards; }
.animate-fade-in-up { animation: fade-in-up var(--transition-slow) forwards; }
.animate-fade-in-down { animation: fade-in-down var(--transition-slow) forwards; }
.animate-scale-in { animation: scale-in var(--transition-base) forwards; }
.animate-slide-in-right { animation: slide-in-right var(--transition-slow) forwards; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Staggered animations */
.animate-stagger > * {
  opacity: 0;
  animation: fade-in-up var(--transition-slow) forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0ms; }
.animate-stagger > *:nth-child(2) { animation-delay: 50ms; }
.animate-stagger > *:nth-child(3) { animation-delay: 100ms; }
.animate-stagger > *:nth-child(4) { animation-delay: 150ms; }
.animate-stagger > *:nth-child(5) { animation-delay: 200ms; }
.animate-stagger > *:nth-child(6) { animation-delay: 250ms; }

/* ========================================
   22. UTILITY CLASSES
   ======================================== */

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.flex-1 { flex: 1; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Spacing */
.m-0 { margin: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }

/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.text-muted { color: var(--text-color-muted); }
.text-secondary { color: var(--text-color-secondary); }
.text-primary { color: var(--brand-primary-600); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-warning { color: var(--color-warning); }

/* Misc */
.rounded { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }
.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.overflow-hidden { overflow: hidden; }
.truncate { 
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   23. RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  
  .app-sidebar.open {
    transform: translateX(0);
  }
  
  .app-main {
    margin-left: 0;
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar-search {
    display: none;
  }
  
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .app-content {
    padding: var(--space-4);
  }
  
  .card-body {
    padding: var(--space-4);
  }
  
  .stat-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ========================================
   24. PRINT STYLES
   ======================================== */

@media print {
  .app-sidebar,
  .app-navbar,
  .btn,
  .dropdown {
    display: none !important;
  }
  
  .app-main {
    margin-left: 0 !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ========================================
   25. DASHBOARD SPECIFIC STYLES
   ======================================== */

/* Dashboard Page Layout */
.dashboard-page {
  padding: var(--space-6);
  min-height: 100vh;
  background: var(--surface-ground);
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.dashboard-welcome-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Quick Stats */
.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.quick-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--neutral-50);
  min-width: 80px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.quick-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--font-display);
}

.quick-stat-label {
  font-size: var(--text-xs);
  color: var(--text-color-secondary);
  margin-top: var(--space-1);
}

.quick-stat-primary {
  background: var(--brand-primary-50);
}
.quick-stat-primary .quick-stat-value { color: var(--brand-primary-600); }
.quick-stat-primary .quick-stat-label { color: var(--brand-primary-700); }

.quick-stat-success {
  background: var(--color-success-light);
}
.quick-stat-success .quick-stat-value { color: var(--color-success-dark); }
.quick-stat-success .quick-stat-label { color: var(--color-success-dark); }

.quick-stat-warning {
  background: var(--color-warning-light);
}
.quick-stat-warning .quick-stat-value { color: var(--color-warning-dark); }
.quick-stat-warning .quick-stat-label { color: var(--color-warning-dark); }

.quick-stat-danger {
  background: var(--color-error-light);
}
.quick-stat-danger .quick-stat-value { color: var(--color-error); }
.quick-stat-danger .quick-stat-label { color: var(--color-error-dark); }

/* Dashboard Mode Switch */
.dashboard-mode-switch {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--surface-border);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Card Header Variants */
.card-header-gradient {
  background: linear-gradient(135deg, var(--brand-primary-500) 0%, var(--brand-primary-700) 100%);
  color: white;
  padding: var(--space-4) var(--space-5);
}

.card-header-gradient .card-title {
  color: white;
}

.card-header-gradient .badge-light {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(4px);
}

.card-header-primary {
  background: linear-gradient(135deg, var(--brand-primary-500) 0%, #06b6d4 100%);
  color: white;
  padding: var(--space-4) var(--space-5);
}

.card-header-primary .card-title {
  color: white;
}

.card-header-success {
  background: linear-gradient(135deg, var(--color-success) 0%, #10b981 100%);
  color: white;
  padding: var(--space-4) var(--space-5);
}

.card-header-success .card-title {
  color: white;
}

.card-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Module Category */
.module-category {
  margin-bottom: var(--space-5);
}

.module-category:last-child {
  margin-bottom: 0;
}

.module-category-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-color-secondary);
  margin-bottom: var(--space-3);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.module-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--neutral-50);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.module-item:hover {
  background: var(--brand-primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.module-icon {
  font-size: var(--text-xl);
  transition: transform var(--transition-fast);
}

.module-item:hover .module-icon {
  transform: scale(1.1);
}

.module-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-color);
}

.module-item:hover .module-name {
  color: var(--brand-primary-700);
}

/* Upgrade Banner */
.upgrade-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--brand-primary-50) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--brand-primary-200);
  margin-top: var(--space-4);
}

.upgrade-banner svg {
  flex-shrink: 0;
  color: var(--brand-primary-500);
}

.upgrade-banner span {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-color);
}

/* Card Footer Link */
.card-footer-link {
  display: flex;
  justify-content: center;
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  border-top: 1px solid var(--surface-border);
}

.card-footer-link .link-primary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.empty-state-icon {
  color: var(--text-color-muted);
  margin-bottom: var(--space-4);
}

.empty-state-icon.text-primary {
  color: var(--brand-primary-500);
}

.empty-state-icon.text-success {
  color: var(--color-success);
}

.empty-state-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--space-2);
}

.empty-state-description {
  font-size: var(--text-base);
  color: var(--text-color-secondary);
  margin-bottom: var(--space-4);
  max-width: 320px;
}

.empty-state-sm {
  padding: var(--space-4);
}

/* Entrepreneur Profile Header */
.entrepreneur-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.profile-info {
  flex: 1;
}

.profile-skill {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: var(--space-1);
}

.profile-stats {
  font-size: var(--text-sm);
}

/* Matching Section */
.matching-section {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: var(--space-3);
}

/* Project List & Cards */
.project-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-card {
  display: block;
  padding: var(--space-3);
  background: var(--neutral-50);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.project-card:hover {
  background: var(--brand-primary-50);
  transform: translateX(4px);
}

.project-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-type,
.project-meta {
  font-size: var(--text-xs);
}

/* Prospect Stats Grid */
.prospect-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.mini-stat {
  text-align: center;
  padding: var(--space-3);
  background: var(--neutral-50);
  border-radius: var(--radius-xl);
}

.mini-stat-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-color);
}

.mini-stat-label {
  font-size: var(--text-xs);
  color: var(--text-color-secondary);
  margin-top: var(--space-1);
}

.mini-stat-success {
  background: var(--color-success-light);
}
.mini-stat-success .mini-stat-value { color: var(--color-success-dark); }

.mini-stat-primary {
  background: var(--brand-primary-50);
}
.mini-stat-primary .mini-stat-value { color: var(--brand-primary-600); }

.mini-stat-info {
  background: var(--color-info-light);
}
.mini-stat-info .mini-stat-value { color: var(--color-info-dark); }

/* Card Actions */
.card-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--surface-border);
}

/* Notification List */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.notification-item {
  padding: var(--space-3);
  background: var(--neutral-50);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
}

.notification-item.notification-unread {
  background: var(--brand-primary-50);
  border-left: 3px solid var(--brand-primary-500);
}

.notification-text {
  font-size: var(--text-sm);
  color: var(--text-color);
  margin-bottom: var(--space-1);
}

.notification-time {
  font-size: var(--text-xs);
  color: var(--text-color-muted);
}

/* Quick Links */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.quick-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--neutral-50);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.quick-link:hover {
  background: var(--brand-primary-50);
  transform: translateX(4px);
}

.quick-link-admin:hover {
  background: var(--color-error-light);
}

.quick-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--text-color-secondary);
}

.quick-link:hover .quick-link-icon {
  color: var(--brand-primary-600);
}

.quick-link-admin:hover .quick-link-icon {
  color: var(--color-error);
}

.quick-link-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-color);
}

/* Card Admin */
.card-admin {
  border: 2px solid var(--color-error-light);
}

/* Card Gradient (Help) */
.card-gradient {
  background: linear-gradient(135deg, var(--brand-primary-500) 0%, var(--brand-primary-700) 100%);
  color: white;
}

.card-gradient .card-body {
  text-align: center;
}

.card-gradient-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-2);
}

.card-gradient-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-4);
}

/* Badge Group */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Link Primary */
.link-primary {
  color: var(--brand-primary-600);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.link-primary:hover {
  color: var(--brand-primary-700);
}

/* Button Block */
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Card Title Sizes */
.card-title-sm {
  font-size: var(--text-base);
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-sidebar {
    order: -1;
  }
  
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .prospect-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-page {
    padding: var(--space-4);
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quick-stats {
    width: 100%;
    justify-content: space-between;
  }
  
  .quick-stat {
    flex: 1;
    min-width: 70px;
  }
  
  .card-header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .module-grid {
    grid-template-columns: 1fr;
  }
  
  .prospect-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-actions {
    flex-direction: column;
  }
  
  .card-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
