/**
 * Design Tokens - Zmienne CSS dla całego systemu
 * Centralne zarządzanie kolorami, spacing, typography, etc.
 */

:root {
    /* ============================================
       KOLORY - PALETA GŁÓWNA
       ============================================ */

    /* Primary (fioletowy) */
    --color-primary: #667eea;
    --color-primary-light: #7c8ff0;
    --color-primary-dark: #5568d3;
    --color-primary-bg: #f0f3ff;

    /* Success (zielony) */
    --color-success: #28a745;
    --color-success-light: #34ce57;
    --color-success-dark: #218838;
    --color-success-bg: #d4edda;

    /* Danger (czerwony) */
    --color-danger: #dc3545;
    --color-danger-light: #e74c3c;
    --color-danger-dark: #bd2130;
    --color-danger-bg: #f8d7da;

    /* Warning (pomarańczowy) */
    --color-warning: #ffc107;
    --color-warning-light: #ffcd39;
    --color-warning-dark: #e0a800;
    --color-warning-bg: #fff3cd;

    /* Info (niebieski) */
    --color-info: #17a2b8;
    --color-info-light: #20c997;
    --color-info-dark: #117a8b;
    --color-info-bg: #d1ecf1;

    /* Secondary (fioletowy ciemny) */
    --color-secondary: #6610f2;
    --color-secondary-light: #7c3aed;
    --color-secondary-dark: #5a0edb;

    /* ============================================
       KOLORY - NEUTRALNE
       ============================================ */

    --color-white: #ffffff;
    --color-black: #000000;

    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* ============================================
       KOLORY - SEMANTYCZNE
       ============================================ */

    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-text-white: #ffffff;

    --color-bg: #f7f8fa;
    --color-bg-white: #ffffff;
    --color-bg-hover: #f8f9fa;
    --color-bg-active: #e9ecef;

    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;
    --color-border-dark: #dee2e6;

    /* ============================================
       SPACING - SYSTEM ODSTĘPÓW
       ============================================ */

    --spacing-xs: 0.25rem;    /* 4px */
    --spacing-sm: 0.5rem;     /* 8px */
    --spacing-md: 0.75rem;    /* 12px */
    --spacing-lg: 1rem;       /* 16px */
    --spacing-xl: 1.5rem;     /* 24px */
    --spacing-2xl: 2rem;      /* 32px */
    --spacing-3xl: 3rem;      /* 48px */
    --spacing-4xl: 4rem;      /* 64px */

    /* ============================================
       TYPOGRAPHY - CZCIONKI
       ============================================ */

    /* Rodziny czcionek */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Rozmiary czcionek */
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.85rem;   /* 13.6px */
    --font-size-base: 0.9rem;  /* 14.4px */
    --font-size-md: 0.95rem;   /* 15.2px */
    --font-size-lg: 1rem;      /* 16px */
    --font-size-xl: 1.1rem;    /* 17.6px */
    --font-size-2xl: 1.25rem;  /* 20px */
    --font-size-3xl: 1.5rem;   /* 24px */

    /* Grubości czcionek */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* ============================================
       BORDER RADIUS - ZAOKRĄGLENIA
       ============================================ */

    --radius-none: 0;
    --radius-sm: 0.3rem;      /* 4.8px */
    --radius-md: 0.5rem;      /* 8px */
    --radius-lg: 0.75rem;     /* 12px */
    --radius-xl: 1rem;        /* 16px */
    --radius-full: 9999px;    /* Pełne koło */

    /* ============================================
       SHADOWS - CIENIE
       ============================================ */

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);

    /* ============================================
       Z-INDEX - WARSTWY
       ============================================ */

    --z-dropdown: 1000;
    --z-sticky: 1010;
    --z-fixed: 1020;
    --z-modal-backdrop: 1030;
    --z-modal: 10050;  /* Globalny modal - powyżej wszystkich modułowych */
    --z-popover: 1050;
    --z-tooltip: 1060;
    --z-notification: 999999;  /* Zawsze na wierzchu! */

    /* ============================================
       MODAL BACKDROP - TŁO POD MODALEM
       ============================================ */

    --modal-backdrop-color: #000000;
    --modal-backdrop-opacity: 0.5;

    /* ============================================
       TRANSITIONS - ANIMACJE
       ============================================ */

    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* ============================================
       BREAKPOINTS - RESPONSIVE (dla JS)
       ============================================ */

    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;

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

    --header-height: 60px;
    --sidebar-width: 220px;
    --max-width-content: 1400px;
}
