/* ============================================================
   base.css — Design tokens, reset, typography
   ============================================================ */

/* ── Design tokens ── */
:root {
    --color-bg:           #f9fafb;
    --color-surface:      #ffffff;
    --color-border:       #e5e7eb;
    --color-text:         #111827;
    --color-text-muted:   #6b7280;
    --color-text-subtle:  #9ca3af;

    --color-nav-bg:          #111827;
    --color-nav-text:        #d1d5db;
    --color-nav-active-bg:   rgba(255, 255, 255, 0.10);
    --color-nav-active-text: #ffffff;

    --color-primary:       #111827;
    --color-primary-hover: #374151;

    /* --brand-default-primary/secondary/accent are emitted at runtime by
       TenantBrandExtension::tenantBrandCss() (single source: App\Public\Domain\PlatformBrand),
       injected in <head> after this file — so they're not declared here. */

    /* Accent families */
    --color-accent-blue-bg:   #eff6ff;   --color-accent-blue-fg:   #2563eb;
    --color-accent-green-bg:  #f0fdf4;   --color-accent-green-fg:  #16a34a;
    --color-accent-yellow-bg: #fffbeb;   --color-accent-yellow-fg: #ca8a04;
    --color-accent-purple-bg: #faf5ff;   --color-accent-purple-fg: #9333ea;
    --color-accent-rose-bg:   #fff1f2;   --color-accent-rose-fg:   #e11d48;
    --color-accent-indigo-bg: #eef2ff;   --color-accent-indigo-fg: #4f46e5;
    --color-accent-teal-bg:   #f0fdfa;   --color-accent-teal-fg:   #0d9488;

    /* Flash messages */
    --flash-error-bg:      #fef2f2;  --flash-error-text:   #b91c1c;  --flash-error-border:   #fecaca;
    --flash-success-bg:    #f0fdf4;  --flash-success-text: #15803d;  --flash-success-border: #bbf7d0;
    --flash-warning-bg:    #fffbeb;  --flash-warning-text: #92400e;  --flash-warning-border: #fde68a;
    --flash-info-bg:       #eff6ff;  --flash-info-text:    #1d4ed8;  --flash-info-border:    #bfdbfe;

    /* Structure */
    --header-height: 64px;
    --sidebar-width: 256px;

    /* Shape */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);

    /* Motion */
    --transition-speed: 200ms;
    --transition: var(--transition-speed) ease-in-out;

    /* Spacing scale */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  20px;
    --space-6:  24px;
    --space-8:  32px;
    --space-10: 40px;
    --space-12: 48px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}
