/* ============================================================
   CIMENTHUBA DESIGN SYSTEM — "Structural Pro"
   Generated from Google Stitch design tokens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* ── Primary ── */
    --primary: #002444;
    --primary-container: #1b3a5c;
    --primary-fixed: #d2e4ff;
    --primary-fixed-dim: #abc9f2;
    --on-primary: #ffffff;
    --on-primary-container: #87a4cc;
    --on-primary-fixed: #001c38;
    --on-primary-fixed-variant: #2b486b;
    --inverse-primary: #abc9f2;

    /* ── Secondary (Teal) ── */
    --secondary: #006b5c;
    --secondary-container: #68fade;
    --secondary-fixed: #68fade;
    --secondary-fixed-dim: #44ddc2;
    --on-secondary: #ffffff;
    --on-secondary-container: #007162;
    --on-secondary-fixed: #00201b;
    --on-secondary-fixed-variant: #005045;

    /* ── Tertiary (Amber/Warning) ── */
    --tertiary: #331f00;
    --tertiary-container: #4f3300;
    --tertiary-fixed: #ffddb1;
    --tertiary-fixed-dim: #ecbf80;
    --on-tertiary: #ffffff;
    --on-tertiary-container: #c49b5f;
    --on-tertiary-fixed: #291800;
    --on-tertiary-fixed-variant: #5f410c;

    /* ── Error ── */
    --error: #ba1a1a;
    --error-container: #ffdad6;
    --on-error: #ffffff;
    --on-error-container: #93000a;

    /* ── Surface Hierarchy ── */
    --background: #f7f9fc;
    --surface: #f7f9fc;
    --surface-bright: #f7f9fc;
    --surface-dim: #d8dadd;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f2f4f7;
    --surface-container: #eceef1;
    --surface-container-high: #e6e8eb;
    --surface-container-highest: #e0e3e6;
    --surface-tint: #436084;
    --surface-variant: #e0e3e6;

    /* ── On Surface ── */
    --on-background: #191c1e;
    --on-surface: #191c1e;
    --on-surface-variant: #43474e;
    --inverse-on-surface: #eff1f4;
    --inverse-surface: #2d3133;

    /* ── Outline ── */
    --outline: #73777f;
    --outline-variant: #c3c6cf;

    /* ── Semantic Status Colors ── */
    --status-success: #006b5c;
    --status-success-bg: #e6f9f5;
    --status-warning: #f59e0b;
    --status-warning-bg: #fef3c7;
    --status-danger: #ba1a1a;
    --status-danger-bg: #ffdad6;
    --status-info: #436084;
    --status-info-bg: #d2e4ff;
    --status-neutral: #73777f;
    --status-neutral-bg: #e0e3e6;

    /* ── Typography ── */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Display */
    --display-lg: 3.5625rem;   /* 57px */
    --display-md: 2.8125rem;   /* 45px */
    --display-sm: 2.25rem;     /* 36px */

    /* Headline */
    --headline-lg: 2rem;       /* 32px */
    --headline-md: 1.75rem;    /* 28px */
    --headline-sm: 1.5rem;     /* 24px */

    /* Title */
    --title-lg: 1.375rem;      /* 22px */
    --title-md: 1rem;          /* 16px */
    --title-sm: 0.875rem;      /* 14px */

    /* Body */
    --body-lg: 1rem;           /* 16px */
    --body-md: 0.875rem;       /* 14px */
    --body-sm: 0.75rem;        /* 12px */

    /* Label */
    --label-lg: 0.875rem;      /* 14px */
    --label-md: 0.75rem;       /* 12px */
    --label-sm: 0.6875rem;     /* 11px */

    /* ── Spacing ── */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */

    /* ── Border Radius ── */
    --radius-sm: 0.375rem;  /* 6px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;

    /* ── Elevation / Shadows ── */
    --shadow-xs: 0px 1px 2px rgba(0, 36, 68, 0.04);
    --shadow-sm: 0px 2px 4px rgba(0, 36, 68, 0.04);
    --shadow-md: 0px 4px 8px rgba(0, 36, 68, 0.04);
    --shadow-lg: 0px 8px 16px rgba(0, 36, 68, 0.06);
    --shadow-xl: 0px 20px 40px rgba(0, 36, 68, 0.06);
    --shadow-2xl: 0px 32px 64px rgba(0, 36, 68, 0.08);

    /* ── Glassmorphism ── */
    --glass-bg: rgba(255, 255, 255, 0.70);
    --glass-blur: 24px;
    --glass-border: rgba(195, 198, 207, 0.15);

    /* ── Transitions ── */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ── Sidebar ── */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
    --topbar-height: 64px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--body-md);
    line-height: 1.6;
    color: var(--on-surface);
    background-color: var(--background);
    overflow-x: hidden;
}

/* ── Typography Utility Classes ── */
.display-lg { font-size: var(--display-lg); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.display-md { font-size: var(--display-md); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.display-sm { font-size: var(--display-sm); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

.headline-lg { font-size: var(--headline-lg); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.headline-md { font-size: var(--headline-md); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.headline-sm { font-size: var(--headline-sm); font-weight: 600; line-height: 1.35; }

.title-lg { font-size: var(--title-lg); font-weight: 600; line-height: 1.4; }
.title-md { font-size: var(--title-md); font-weight: 500; line-height: 1.5; }
.title-sm { font-size: var(--title-sm); font-weight: 500; line-height: 1.5; }

.body-lg { font-size: var(--body-lg); font-weight: 400; line-height: 1.6; }
.body-md { font-size: var(--body-md); font-weight: 400; line-height: 1.6; }
.body-sm { font-size: var(--body-sm); font-weight: 400; line-height: 1.5; }

.label-lg { font-size: var(--label-lg); font-weight: 500; letter-spacing: 0.01em; line-height: 1.4; }
.label-md { font-size: var(--label-md); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.4; }
.label-sm { font-size: var(--label-sm); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.3; }

/* ── Color Utility Classes ── */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-success { color: var(--status-success); }
.text-warning { color: var(--status-warning); }
.text-danger { color: var(--status-danger); }
.text-info { color: var(--status-info); }

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--outline-variant);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--outline);
}

/* ── Selection ── */
::selection {
    background: var(--primary-fixed-dim);
    color: var(--on-primary-fixed);
}
