/* =============================================================================
   BRAND
   Everything that makes this dashboard look like one client's: colors, fonts.
   To rebrand, edit this file, inc/site.php (the name) and fav-icon/.
   ============================================================================= */

:root {
    /* Fonts */
    /* Loaded from Google Fonts in inc/head-contents.php. */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: var(--font-body);
    --heading-weight: 600;
    --heading-tracking: -0.02em;

    /* Accent: links, primary buttons, active states, focus rings */
    --color-accent-primary: #2f5af5;
    --color-accent-secondary: #475569;

    /* Status colors */
    --color-accent-green: #017b22;
    --color-accent-red: #b51c36;
    --color-accent-warning: #c54900;

    /* Backgrounds */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f7f8fa;
    --color-bg-tertiary: #eceef2;
    --color-bg-inverse: #0f172a;

    /* Text */
    --color-text-primary: #0f172a;
    --color-text-secondary: #4b5565;
    --color-text-muted: #6b7280;
    --color-text-inactive: #9aa3b2;

    /* Buttons */
    --color-button-primary: var(--color-accent-primary);
    --color-button-secondary: var(--color-bg-tertiary);

    /* Sidebar */
    --sidebar-bg: #0f172a;
    --sidebar-border: #0f172a;
    --sidebar-text: #b6c0d1;
    --sidebar-text-strong: #ffffff;
    --sidebar-muted: #7c8aa3;
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --sidebar-active: rgba(255, 255, 255, 0.11);
    --logo-accent: #c4421c;

    /* Borders and dividers */
    --color-divider-alpha: rgba(15, 23, 42, 0.1);

    /* Fills. Kept as "gradient" tokens so a brand can use real gradients. */
    --primary-gradient: linear-gradient(var(--color-accent-primary), var(--color-accent-primary));
    --secondary-gradient: linear-gradient(135deg, var(--color-accent-green) 0%, #015f1a 100%);
    --accent-gradient: linear-gradient(135deg, var(--color-accent-red) 0%, #962030 100%);
    --background-gradient: linear-gradient(var(--color-bg-secondary), var(--color-bg-secondary));

    /* Surfaces, shadows, shape */
    --surface: var(--color-bg-primary);
    --surface-elevated: var(--color-bg-secondary);
    --border-light: var(--color-bg-tertiary);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 10px;
    --radius-sm: 7px;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-s: 12px;
    --spacing-m: 16px;
    --spacing-l: 20px;
    --spacing-xl: 24px;
    --spacing-xxl: 32px;
}

/* Dark theme (used by the logout page) */
html[data-theme='dark'] {
    --color-accent-primary: #ffffff;
    --color-accent-red: #ff6b6b;
    --color-accent-green: #51cf66;
    --color-bg-primary: #111111;
    --color-bg-secondary: #1c1c1c;
    --color-bg-tertiary: #2a2a2a;
    --color-bg-inverse: #ffffff;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b5b5b5;
    --color-divider-alpha: rgba(255, 255, 255, 0.12);
}
