/**
 * CollegePro Design Tokens — "Aurora"
 *
 * Single source of truth for colors, spacing, typography, radii, shadows.
 * Every component reads from these variables. Change the brand here
 * and the whole app updates.
 *
 * @package Ateducollegepro
 */

/* -------------------------------------------------------------------------
 * Font faces — Inter, bundled locally
 * ---------------------------------------------------------------------- */
@font-face {
    font-family: "CP Inter";
    src: url("../fonts/inter-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "CP Inter";
    src: url("../fonts/inter-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "CP Inter";
    src: url("../fonts/inter-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "CP Inter";
    src: url("../fonts/inter-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "CP Inter";
    src: url("../fonts/inter-800.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------------------------------------
 * Root tokens
 * ---------------------------------------------------------------------- */
:root {
    /* Brand */
    --cp-primary: #1B5E4A;
    --cp-primary-700: #14483A;
    --cp-primary-600: #164D3D;
    --cp-primary-500: #1B5E4A;
    --cp-primary-400: #2E7D66;
    --cp-primary-300: #4F9C85;
    --cp-primary-100: #CDE7DD;
    --cp-primary-50: #E8F4F0;

    --cp-accent: #C9A227;
    --cp-accent-700: #96751B;
    --cp-accent-600: #A8861F;
    --cp-accent-100: #F3E5B4;
    --cp-accent-50: #FBF6E4;

    /* Neutrals */
    --cp-bg: #F7F8FA;
    --cp-bg-subtle: #F2F4F7;
    --cp-surface: #FFFFFF;
    --cp-surface-alt: #FAFBFC;
    --cp-surface-muted: #F1F3F6;
    --cp-overlay: rgba(16, 24, 40, 0.55);

    --cp-border: #E4E7EC;
    --cp-border-strong: #D0D5DD;
    --cp-divider: #EDEFF3;

    --cp-text: #101828;
    --cp-text-muted: #475467;
    --cp-text-subtle: #667085;
    --cp-text-disabled: #98A2B3;
    --cp-text-inverse: #FFFFFF;

    /* Status */
    --cp-success: #067647;
    --cp-success-600: #05603A;
    --cp-success-bg: #ECFDF3;
    --cp-success-border: #ABEFC6;

    --cp-warning: #B54708;
    --cp-warning-bg: #FFFAEB;
    --cp-warning-border: #FEDF89;

    --cp-danger: #B42318;
    --cp-danger-600: #912018;
    --cp-danger-bg: #FEF3F2;
    --cp-danger-border: #FECDCA;

    --cp-info: #175CD3;
    --cp-info-bg: #EFF8FF;
    --cp-info-border: #B2DDFF;

    /* Chart palette (accessible, distinguishable) */
    --cp-chart-1: #1B5E4A;
    --cp-chart-2: #C9A227;
    --cp-chart-3: #175CD3;
    --cp-chart-4: #B54708;
    --cp-chart-5: #7A5AF8;
    --cp-chart-6: #0E9384;
    --cp-chart-7: #DD2590;
    --cp-chart-8: #475467;

    /* Spacing — 4px base */
    --cp-space-0: 0;
    --cp-space-1: 4px;
    --cp-space-2: 8px;
    --cp-space-3: 12px;
    --cp-space-4: 16px;
    --cp-space-5: 20px;
    --cp-space-6: 24px;
    --cp-space-7: 28px;
    --cp-space-8: 32px;
    --cp-space-10: 40px;
    --cp-space-12: 48px;
    --cp-space-16: 64px;

    /* Radii */
    --cp-radius-xs: 4px;
    --cp-radius-sm: 6px;
    --cp-radius: 10px;
    --cp-radius-lg: 14px;
    --cp-radius-xl: 20px;
    --cp-radius-full: 999px;

    /* Elevation */
    --cp-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
    --cp-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
    --cp-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
    --cp-shadow-md: 0 8px 16px -4px rgba(16, 24, 40, 0.10), 0 4px 6px -2px rgba(16, 24, 40, 0.04);
    --cp-shadow-lg: 0 12px 24px -6px rgba(16, 24, 40, 0.12), 0 6px 10px -4px rgba(16, 24, 40, 0.05);
    --cp-shadow-xl: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
    --cp-shadow-focus: 0 0 0 4px rgba(27, 94, 74, 0.14);

    /* Typography */
    --cp-font-sans: "CP Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --cp-font-display: "CP Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --cp-font-mono: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

    --cp-fs-xs: 12px;
    --cp-fs-sm: 13px;
    --cp-fs-base: 14px;
    --cp-fs-md: 16px;
    --cp-fs-lg: 18px;
    --cp-fs-xl: 22px;
    --cp-fs-2xl: 28px;
    --cp-fs-3xl: 34px;
    --cp-fs-4xl: 42px;

    --cp-lh-tight: 1.2;
    --cp-lh-snug: 1.35;
    --cp-lh-normal: 1.5;
    --cp-lh-relaxed: 1.65;

    --cp-fw-regular: 400;
    --cp-fw-medium: 500;
    --cp-fw-semibold: 600;
    --cp-fw-bold: 700;
    --cp-fw-extrabold: 800;

    --cp-tracking-tight: -0.02em;
    --cp-tracking-normal: 0;
    --cp-tracking-wide: 0.04em;

    /* Motion */
    --cp-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --cp-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --cp-dur-fast: 120ms;
    --cp-dur: 160ms;
    --cp-dur-slow: 240ms;

    /* Layout */
    --cp-sidebar-w: 260px;
    --cp-sidebar-w-collapsed: 76px;
    --cp-topbar-h: 64px;
    --cp-content-max: 1440px;

    /* Z-index */
    --cp-z-base: 1;
    --cp-z-sidebar: 40;
    --cp-z-topbar: 50;
    --cp-z-dropdown: 60;
    --cp-z-modal: 80;
    --cp-z-toast: 90;
}

/* -------------------------------------------------------------------------
 * Dark theme
 * ---------------------------------------------------------------------- */
[data-cp-theme="dark"] {
    --cp-bg: #0B1220;
    --cp-bg-subtle: #0A101B;
    --cp-surface: #111A2C;
    --cp-surface-alt: #0F1726;
    --cp-surface-muted: #172236;
    --cp-overlay: rgba(0, 0, 0, 0.7);

    --cp-border: #1F2A3D;
    --cp-border-strong: #2A3A52;
    --cp-divider: #1A2436;

    --cp-text: #E7ECF3;
    --cp-text-muted: #A3AFC2;
    --cp-text-subtle: #7A8699;
    --cp-text-disabled: #4D5668;

    --cp-primary: #34B896;
    --cp-primary-700: #267A63;
    --cp-primary-600: #2B957A;
    --cp-primary-500: #34B896;
    --cp-primary-400: #4FC7A9;
    --cp-primary-300: #6ED4BC;
    --cp-primary-100: #16352C;
    --cp-primary-50: #0E2A23;

    --cp-accent: #E5C158;
    --cp-accent-600: #D1AC3D;
    --cp-accent-100: #3A2F11;
    --cp-accent-50: #2A220C;

    --cp-success: #6CE9A6;
    --cp-success-bg: #0A2A1F;
    --cp-success-border: #155E40;

    --cp-warning: #FDB022;
    --cp-warning-bg: #2A1E08;
    --cp-warning-border: #7A4A00;

    --cp-danger: #FDA29B;
    --cp-danger-bg: #2A0F0E;
    --cp-danger-border: #7A271A;

    --cp-info: #84CAFF;
    --cp-info-bg: #0A1F36;
    --cp-info-border: #175CD3;

    --cp-chart-1: #34B896;
    --cp-chart-2: #E5C158;
    --cp-chart-3: #84CAFF;
    --cp-chart-4: #FDB022;
    --cp-chart-5: #B692F6;
    --cp-chart-6: #2ED3B7;
    --cp-chart-7: #F670C7;
    --cp-chart-8: #A3AFC2;

    --cp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --cp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --cp-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.6);
    --cp-shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.65);
    --cp-shadow-lg: 0 12px 24px -6px rgba(0, 0, 0, 0.7);
    --cp-shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
    --cp-shadow-focus: 0 0 0 4px rgba(52, 184, 150, 0.25);
}

/* -------------------------------------------------------------------------
 * Reduced motion
 * ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    :root {
        --cp-dur-fast: 0ms;
        --cp-dur: 0ms;
        --cp-dur-slow: 0ms;
    }
}