﻿/* ==========================================================================
   eBRS — Scentralizowany system zmiennych motywu (Design Tokens / Theme Variables)
   Zarządzanie kolorystyką, typografią i komponentami w jednym miejscu.
   ========================================================================== */

:root {
    /* 1. Podstawowe barwy marki (Brand & Accent Colors wg eBRS Figma Tokens) */
    --ebrs-primary: #034497;                /* blue-600: Główny granat korporacyjny BRS */
    --ebrs-primary-hover: #02336F;          /* blue-800: Ciemniejszy odcień przy najechaniu */
    --ebrs-primary-active: #01265A;         /* blue-900: Stan wciśnięcia / pressed */
    --ebrs-primary-rgb: 3, 68, 151;

    --ebrs-accent: #F4901E;                 /* orange-500: Główny pomarańczowy kolor akcentu / CTA */
    --ebrs-accent-hover: #DB7A0C;           /* orange-600: Pomarańczowy hover */
    --ebrs-accent-active: #B86508;          /* orange-700: Pomarańczowy pressed */
    --ebrs-accent-rgb: 244, 144, 30;

    --ebrs-secondary: #034497;              /* Granat akcji / przycisków outline */
    --ebrs-secondary-hover: #E5ECF5;        /* blue-100: tło hover */
    --ebrs-secondary-active: #CCDAEC;       /* blue-200: tło pressed */
    --ebrs-secondary-rgb: 3, 68, 151;

    /* Kolekcja zmiennych eBRS Tokens (Figma Local Variables) */
    --ebrs-blue-900: #01265A;
    --ebrs-blue-800: #02336F;
    --ebrs-blue-600: #034497;
    --ebrs-blue-200: #CCDAEC;
    --ebrs-blue-100: #E5ECF5;
    --ebrs-orange-700: #B86508;
    --ebrs-orange-600: #DB7A0C;
    --ebrs-orange-500: #F4901E;
    --ebrs-orange-300: #F4B26A;
    --ebrs-orange-200: #F8CC9B;
    --ebrs-gray-50: #F8FAFC;
    --ebrs-gray-100: #EDF1F4;
    --ebrs-gray-200: #E2E8F0;
    --ebrs-gray-300: #CBD5E1;
    --ebrs-gray-400: #D9D9D9;
    --ebrs-gray-500: #6B7280;
    --ebrs-gray-700: #334155;
    --ebrs-gray-900: #0F172A;

    /* 2. Pasek boczny (Sidebar Theme) */
    --ebrs-sidebar-bg: #06152b;             /* Ciemnogranatowe tło menu bocznego */
    --ebrs-sidebar-brand-bg: transparent;
    --ebrs-sidebar-text: #cbd5e1;           /* Kolor linków w menu */
    --ebrs-sidebar-text-hover: #ffffff;     /* Kolor tekstu po najechaniu */
    --ebrs-sidebar-item-active-bg: #034497; /* Tło aktywnej pozycji */
    --ebrs-sidebar-item-active-text: #ffffff;
    --ebrs-sidebar-item-active-gradient: linear-gradient(180deg, #034497 0%, #011631 100%);
    --ebrs-sidebar-divider: rgba(255, 255, 255, 0.15);
    --ebrs-sidebar-width: 250px;
    --ebrs-sidebar-width-collapsed: 72px;

    /* 3. Tła, karty i powierzchnie (Canvas, Cards & Surfaces) */
    --ebrs-bg-canvas: #f4f6f9;              /* Neutralne tło całej strony */
    --ebrs-bg-card: #ffffff;                /* Białe tło kart, paneli i formularzy */
    --ebrs-border-subtle: #e2e8f0;          /* Subtelne obramowania sekcji */
    --ebrs-shadow-card: 0 4px 16px rgba(0, 0, 0, 0.04);
    --ebrs-radius-card: 14px;
    --ebrs-radius-control: 6px;

    /* 4. Typografia i nagłówki stron */
    --ebrs-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ebrs-header-title: #0f2942;           /* Ciemny granat tytułów */
    --ebrs-header-subtitle: #64748b;        /* Szary odcień podtytułów */

    /* 5. Przyciski i akcje */
    --ebrs-btn-accent: var(--ebrs-accent);
    --ebrs-btn-accent-hover: var(--ebrs-accent-hover);
    --ebrs-btn-accent-active: var(--ebrs-accent-active);
    --ebrs-btn-secondary: var(--ebrs-secondary);
    --ebrs-btn-secondary-hover: var(--ebrs-secondary-hover);
    --ebrs-btn-row-action-bg: #F8CC9B;      /* orange-200: Pastelowe tło przycisków wiersza tabeli */
    --ebrs-btn-row-action-hover: #F4B26A;   /* orange-300: Hover */
    --ebrs-btn-row-action-active: #F4901E;  /* orange-500: Pressed */
    --ebrs-btn-row-action-text: #01265A;    /* blue-900: Tekst */

    /* 6. DataGrid i tabele */
    --ebrs-table-header-color: #0f2942;     /* Kolor tekstu nagłówków tabeli */
    --ebrs-table-header-border: #e2e8f0;
    --ebrs-table-row-divider: #ffd8a8;      /* Pomarańczowa linia pod nagłówkiem z makiety */
    --ebrs-table-row-hover: #f8fafc;        /* Tło podświetlenia wiersza tabeli */
    --ebrs-table-row-border: #edf2f7;

    /* 7. Formularze i kontrolki */
    --ebrs-input-bg: #ffffff;
    --ebrs-input-border: #cbd5e1;
    --ebrs-input-border-hover: #94a3b8;
    --ebrs-input-focus-border: var(--ebrs-primary);
    --ebrs-input-focus-ring: rgba(var(--ebrs-primary-rgb), 0.15);
    --ebrs-input-error-border: #DC2626;
    --ebrs-input-error-text: #DC2626;
    --ebrs-input-error-ring: rgba(220, 38, 38, 0.15);
    --ebrs-input-disabled-bg: #f1f5f9;
    --ebrs-input-disabled-border: #cbd5e1;
    --ebrs-input-disabled-text: #94a3b8;
    --ebrs-input-readonly-bg: #f8fafc;
    --ebrs-input-readonly-border: #e2e8f0;
    --ebrs-input-readonly-text: #1e293b;
    --ebrs-input-placeholder: #94a3b8;
    --ebrs-input-text: #1e293b;
    --ebrs-label-color: var(--ebrs-primary);
    --ebrs-label-required: #DC2626;
    --ebrs-switch-bg-on: var(--ebrs-primary);
    --ebrs-switch-bg-off: #d9d9d9;
    --ebrs-switch-knob: #ffffff;
    --ebrs-alert-error-bg: #fef2f2;
    --ebrs-alert-error-border: #fca5a5;
    --ebrs-alert-error-text: #991b1b;
    --ebrs-control-height: 38px;
    --ebrs-control-height-sm: 32px;

    /* 8. Ekran logowania (Split-Screen Hero & Form) */
    --ebrs-login-hero-bg: radial-gradient(circle at 100% 0%, #0a3d7c 0%, transparent 55%),
                          linear-gradient(160deg, #002855 0%, #001736 60%, #001026 100%);
    --ebrs-login-wireframe-stroke: #f4901e;
    --ebrs-login-title-color: var(--ebrs-primary);
    --ebrs-login-btn-bg: var(--ebrs-accent);
    --ebrs-login-btn-hover: var(--ebrs-accent-hover);

    /* 9. Statusy, odznaki i weryfikacje */
    --ebrs-status-ok: #16a34a;              /* Zielony - aktywny / zweryfikowany */
    --ebrs-status-warning: #f59e0b;         /* Pomarańczowy / ostrzeżenie */
    --ebrs-status-danger: #dc2626;          /* Czerwony / negatywny */
    --ebrs-status-info: #0284c7;            /* Błękitny informacyjny */
    --ebrs-status-badge-bg: #e2e8f0;
    --ebrs-status-badge-text: #334155;
    --ebrs-active-check-color: #16a34a;
}

