/**
 * Design Token System for Mandantenportal Pro
 * 
 * Provides consistent design tokens across all addons.
 * Extends Bootstrap variables with custom properties.
 */

:root {
  /* === PRIMARY COLORS (Addon-specific) === */
  --mp-primary-dms: #0066cc;
  --mp-primary-dms-hover: #0052a3;
  --mp-primary-dms-light: #e6f2ff;
  
  --mp-primary-tasks: #10b981;
  --mp-primary-tasks-hover: #059669;
  --mp-primary-tasks-light: #d1fae5;
  
  --mp-primary-chat: #8b5cf6;
  --mp-primary-chat-hover: #7c3aed;
  --mp-primary-chat-light: #ede9fe;
  
  --mp-primary-calendar: #f59e0b;
  --mp-primary-calendar-hover: #d97706;
  --mp-primary-calendar-light: #fef3c7;
  
  /* === NEUTRAL COLORS === */
  --mp-gray-50: #f9fafb;
  --mp-gray-100: #f3f4f6;
  --mp-gray-200: #e5e7eb;
  --mp-gray-300: #d1d5db;
  --mp-gray-400: #9ca3af;
  --mp-gray-500: #6b7280;
  --mp-gray-600: #4b5563;
  --mp-gray-700: #374151;
  --mp-gray-800: #1f2937;
  --mp-gray-900: #111827;
  
  /* === SEMANTIC COLORS === */
  --mp-success: #10b981;
  --mp-success-light: #d1fae5;
  --mp-warning: #f59e0b;
  --mp-warning-light: #fef3c7;
  --mp-error: #ef4444;
  --mp-error-light: #fee2e2;
  --mp-info: #3b82f6;
  --mp-info-light: #dbeafe;
  
  /* === STATUS COLORS === */
  --mp-status-draft: var(--mp-gray-500);
  --mp-status-pending: var(--mp-warning);
  --mp-status-active: var(--mp-success);
  --mp-status-completed: #059669;
  --mp-status-cancelled: var(--mp-error);
  
  /* === PRIORITY COLORS === */
  --mp-priority-low: var(--mp-success);
  --mp-priority-medium: var(--mp-warning);
  --mp-priority-high: var(--mp-error);
  --mp-priority-urgent: #dc2626;
  
  /* === LAYOUT DIMENSIONS === */
  --mp-sidebar-width: 280px;
  --mp-sidebar-width-collapsed: 60px;
  --mp-preview-width: 320px;
  --mp-header-height: 64px;
  --mp-toolbar-height: 48px;
  --mp-ribbon-height: 120px;
  
  /* === SPACING SCALE === */
  --mp-space-xs: 0.25rem;   /* 4px */
  --mp-space-sm: 0.5rem;    /* 8px */
  --mp-space-md: 1rem;      /* 16px */
  --mp-space-lg: 1.5rem;    /* 24px */
  --mp-space-xl: 2rem;      /* 32px */
  --mp-space-2xl: 3rem;     /* 48px */
  --mp-space-3xl: 4rem;     /* 64px */
  
  /* === BORDER RADIUS === */
  --mp-radius-sm: 4px;
  --mp-radius-md: 6px;
  --mp-radius-lg: 8px;
  --mp-radius-xl: 12px;
  --mp-radius-2xl: 16px;
  --mp-radius-full: 9999px;
  
  /* === SHADOWS === */
  --mp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --mp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --mp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --mp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* === TRANSITIONS === */
  --mp-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --mp-transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --mp-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* === TYPOGRAPHY === */
  --mp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mp-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  --mp-text-xs: 0.75rem;    /* 12px */
  --mp-text-sm: 0.875rem;   /* 14px */
  --mp-text-base: 1rem;     /* 16px */
  --mp-text-lg: 1.125rem;   /* 18px */
  --mp-text-xl: 1.25rem;    /* 20px */
  --mp-text-2xl: 1.5rem;    /* 24px */
  --mp-text-3xl: 1.875rem;  /* 30px */
  
  --mp-leading-tight: 1.25;
  --mp-leading-normal: 1.5;
  --mp-leading-relaxed: 1.75;
  
  /* === Z-INDEX SCALE === */
  --mp-z-dropdown: 1000;
  --mp-z-sticky: 1020;
  --mp-z-fixed: 1030;
  --mp-z-modal-backdrop: 1040;
  --mp-z-modal: 1050;
  --mp-z-popover: 1060;
  --mp-z-tooltip: 1070;
  --mp-z-toast: 1080;
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
  :root {
    --mp-gray-50: #1f2937;
    --mp-gray-100: #374151;
    --mp-gray-200: #4b5563;
    --mp-gray-300: #6b7280;
    --mp-gray-400: #9ca3af;
    --mp-gray-500: #d1d5db;
    --mp-gray-600: #e5e7eb;
    --mp-gray-700: #f3f4f6;
    --mp-gray-800: #f9fafb;
    --mp-gray-900: #ffffff;
  }
}

/* === UTILITY CLASSES === */
.mp-surface {
  background-color: white;
  border: 1px solid var(--mp-gray-200);
  border-radius: var(--mp-radius-lg);
  box-shadow: var(--mp-shadow-sm);
}

.mp-surface-hover {
  transition: var(--mp-transition-normal);
}

.mp-surface-hover:hover {
  box-shadow: var(--mp-shadow-md);
  transform: translateY(-1px);
}

.mp-text-muted {
  color: var(--mp-gray-500);
}

.mp-text-primary {
  color: var(--mp-primary-dms);
}

.mp-border {
  border-color: var(--mp-gray-200);
}

.mp-focus {
  outline: 2px solid var(--mp-primary-dms);
  outline-offset: 2px;
}
