/* TCC CRM Design System - Design Tokens
 * Single source of truth for all design tokens
 * Created: January 30, 2026
 * Updated: January 30, 2026 - Corrected to official TCC Brand Guide colors
 */

:root {
    /* ===========================================
     * TCC OFFICIAL BRAND COLORS
     * Source: TCC Brand Guide (docs/TCC_Brand_guide.pdf)
     * =========================================== */

    /* Primary Brand Colors - CORRECTED to match Brand Guide */
    --tcc-primary: #273566;           /* Official TCC Navy Blue */
    --tcc-primary-hover: #1e2a52;     /* Darker navy for hover */
    --tcc-secondary: #3d4d7a;         /* Lighter navy variant */
    --tcc-accent: #e31837;            /* Official TCC Red */
    --tcc-accent-hover: #c4142f;      /* Darker red for hover */

    /* White for contrast */
    --color-white: #FFFFFF;
    --color-off-white: #F8FAFC;

    /* Pastel/Light Variations for Backgrounds */
    --tcc-primary-light: rgba(39, 53, 102, 0.06);     /* Soft navy tint */
    --tcc-primary-medium: rgba(39, 53, 102, 0.12);    /* Medium navy tint */
    --tcc-accent-light: rgba(227, 24, 55, 0.06);      /* Soft red tint */
    --tcc-accent-medium: rgba(227, 24, 55, 0.12);     /* Medium red tint */

    /* Stat Card Backgrounds - BRAND COLORS ONLY */
    --stat-bg-primary: var(--tcc-primary-light);      /* Navy - Trust, stability */
    --stat-bg-accent: var(--tcc-accent-light);        /* Red - Important, action */
    --stat-bg-neutral: rgba(248, 250, 252, 1);        /* Off-white - Clean */
    --stat-bg-highlight: rgba(39, 53, 102, 0.04);     /* Very light navy */

    /* Icon Circle Backgrounds - BRAND COLORS ONLY */
    --icon-bg-primary: var(--tcc-primary-medium);
    --icon-bg-accent: var(--tcc-accent-medium);
    --icon-bg-neutral: rgba(0, 0, 0, 0.06);

    /* ===================
     * NEUTRAL COLORS
     * =================== */
    --color-text: #212529;
    --color-text-muted: #6c757d;
    --color-text-light: #adb5bd;
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-tertiary: #e9ecef;
    --color-border: #dee2e6;
    --color-border-light: #f0f0f0;

    /* ===================
     * TYPOGRAPHY SCALE
     * =================== */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 4rem;        /* 64px */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* ===========================================
     * TCC BRAND FONTS
     * Source: TCC Brand Guide (docs/TCC_Brand_guide.pdf)
     * =========================================== */
    --font-heading-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;  /* H1 */
    --font-heading-secondary: 'Enriqueta', Georgia, serif;  /* H2-H6 */
    --font-body: 'Tahoma', 'Segoe UI', Geneva, Verdana, sans-serif;  /* Body text */
    --font-body-alt: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;  /* Paragraph 2 */
    --font-mono: 'Courier New', Consolas, monospace;

    /* ===================
     * SPACING SCALE
     * =================== */
    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.5rem;    /* 24px */
    --space-6: 2rem;      /* 32px */
    --space-7: 2.5rem;    /* 40px */
    --space-8: 3rem;      /* 48px */
    --space-9: 4rem;      /* 64px */
    --space-10: 5rem;     /* 80px */

    /* ===================
     * BORDERS & RADIUS
     * =================== */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-full: 9999px;   /* Pills, circles */

    --border-width: 1px;
    --border-width-2: 2px;

    /* ===================
     * SHADOWS
     * =================== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);

    /* ===================
     * TRANSITIONS
     * =================== */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;

    /* ===================
     * Z-INDEX SCALE
     * =================== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1100;
}

/* ===========================================
 * TCC TYPOGRAPHY STYLES
 * Apply brand fonts to base elements
 * =========================================== */

/* Base body font */
body {
    font-family: var(--font-body);
    font-size: var(--text-sm);  /* 14px - Paragraph 1 */
    color: var(--color-text);
}

/* Heading 1 - Montserrat */
h1, .h1 {
    font-family: var(--font-heading-primary);
    font-weight: var(--font-semibold);
}

/* Headings 2-6 - Enriqueta */
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    font-family: var(--font-heading-secondary);
    font-weight: var(--font-semibold);
}

/* Display headings also use Montserrat like H1 */
.display-1, .display-2, .display-3,
.display-4, .display-5, .display-6 {
    font-family: var(--font-heading-primary);
    font-weight: var(--font-semibold);
}

/* Dashboard header greeting uses Montserrat */
.dashboard-header__greeting {
    font-family: var(--font-heading-primary);
}

/* Stat card values use Montserrat for impact */
.stat-card__value {
    font-family: var(--font-heading-primary);
}

/* Action card titles use Enriqueta */
.action-card__title {
    font-family: var(--font-heading-secondary);
}

/* Navbar brand uses Montserrat */
.navbar-brand {
    font-family: var(--font-heading-primary);
}

/* Card headers use Enriqueta */
.card-header {
    font-family: var(--font-heading-secondary);
}

/* Table headers use body font but bolder */
th {
    font-family: var(--font-body);
    font-weight: var(--font-semibold);
}

/* Lead text uses Montserrat (Paragraph 2) */
.lead {
    font-family: var(--font-body-alt);
}

/* Buttons use body font */
.btn {
    font-family: var(--font-body);
    font-weight: var(--font-medium);
}

/* Form controls use body font */
.form-control, .form-select {
    font-family: var(--font-body);
}
