/* Design tokens of the application: the shared colours, radii, fonts and spacing used by the other
   stylesheets. Change a value here once instead of in every rule. Loaded first by the layouts.
   A few one-off component colours (exam kiosk, chart badges) stay as literals in styles.css. */

:root {
    /* `BRAND (sidebar, page headings, navigation) */
    --color-brand: #2968ff;
    --color-brand-dark: #1d57ef;
    --color-brand-muted: #769eff;
    --color-brand-tint: #f5f9ff;
    --color-brand-strong: #0052ec;
    --color-heading: #255dec;
    --color-link: #1847a4;
    --color-navy: #0f367d;

    /* `ACCENT (public header, table headers, paginator, tabs) */
    --color-accent: #2196f3;
    --color-accent-dark: #1976d2;
    --color-accent-text: #1565c0;
    --color-accent-light: #90caf9;
    --color-accent-soft: #bbdefb;
    --color-accent-tint: #e3f2fd;
    --color-info: #03a9f4;
    --color-info-dark: #0277bd;

    /* `CONTROLS (inputs, dropdowns, focus) */
    --color-control-active: #2a62d4;
    --color-input-text: #172b4d;
    --color-input-bg: #fafcff;
    --color-input-focus: #457ffe;

    /* `FIELDS (form fields and filter groups, the same look as in drs) */
    --field-height: 36px;
    --field-radius: 6px;
    --field-font-size: 14px;
    --field-font-size-sm: 13px;
    --color-field-bg: #fff;
    --color-field-border: #7d8fae;
    --color-field-readonly: #f4f7fc;
    --color-field-addon: #55698f;
    --color-field-separator: #dbe4f0;
    --color-field-trigger-border: #eef2f9;
    --color-field-error: #d32f2f;
    --color-field-error-bg: #fff5f5;

    /* `BUTTONS (.btn and its colour modifiers, the same as in drs): .btn is white with a blue frame */
    --btn-height: 36px;
    --btn-height-sm: 28px;
    --btn-font-size: 12px;
    --color-btn-outline: #3863af;
    --color-btn-border: #7d8fae;
    --color-btn-hover: #f4f8ff;
    --color-btn-active: #e4ecfb;
    --color-btn-blue: #457fff;
    --color-btn-blue-hover: #3a6fe6;
    --color-btn-blue-active: #2f5fcc;
    --color-btn-green: #2e7d32;
    --color-btn-green-hover: #276b2b;
    --color-btn-green-active: #1f5a22;
    --color-btn-red: #d32f2f;
    --color-btn-red-hover: #b92828;
    --color-btn-red-active: #9f2222;

    /* `STATUS (valid/invalid, statuses, notifications) */
    --color-success: #4caf50;
    --color-success-dark: #43a047;
    --color-success-text: #388e3c;
    --color-success-light: #9ccc65;
    --color-success-soft: #a5d6a7;
    --color-success-bg: #f1f8e9;
    --color-danger: #f44336;
    --color-danger-dark: #e53935;
    --color-danger-border: #ffcdd2;
    --color-danger-bg: #ffebee;
    --color-warning: #ffc107;
    --color-warning-dark: #ffb300;
    --color-orange: #ff8a65;
    --color-orange-dark: #ff5722;
    --color-gold: #d9c26c;
    --color-teal: #1abc9c;

    /* `NEUTRALS (text, borders, surfaces) */
    --color-white: #fff;
    --color-black: #000;
    --color-text: #333;
    --color-text-strong: #1f2a3d;
    --color-text-table: #484848;
    --color-text-secondary: #555;
    --color-text-soft: #4a5568;
    --color-text-dark: #263238;
    --color-text-muted: #777;
    --color-grey-100: #f5f5f5;
    --color-grey-200: #eee;
    --color-grey-300: #ddd;
    --color-grey-400: #ccc;
    --color-grey-500: #bbb;
    --color-grey-600: #9e9e9e;
    --color-border: #cbd4e3;
    --color-border-strong: #7d8fae;
    --color-border-light: #e3e9f3;
    --color-border-subtle: #edf4ff;
    --color-surface: #fff;
    --color-surface-alt: #f4f7fc;
    --color-surface-strong: #eef3fb;
    --color-row-hover: #f4f8ff;

    /* `CHARTS (dashboards, read by resources/js/charts/dts-charts.js) */
    --color-chart-primary: var(--color-control-active);
    --color-chart-male: var(--color-control-active);
    --color-chart-female: #e67e22;
    --color-chart-success: #33a466;
    --color-chart-danger: var(--color-danger-dark);
    --color-chart-neutral: #95a5a6;
    --color-chart-info: var(--color-accent);

    /* `TYPOGRAPHY */
    --font-family: 'PT Sans', Arial, 'Liberation Sans', FreeSans, sans-serif;
    --font-family-mono: 'DejaVu Sans Mono', Menlo, Consolas, monospace;
    --font-size: 13px;
    --font-size-sm: 11px;
    --font-size-input: 15px;
    --font-size-heading: 23px;

    /* `SHAPE AND SPACING */
    --radius: 2px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --sidebar-width: 220px;

    /* `EFFECTS */
    --shadow-popup: 0 0 4px rgba(6, 8, 8, 0.15);
    --shadow-panel: 0 8px 24px rgba(24, 71, 164, 0.14);
    --focus-ring: 2px solid var(--color-link);
    --transition: 0.2s ease;
}
