/* ==========================================
   MESE AUTOMATION - THEME VARIABLES
   Modern Corporate Design System
   ========================================== */

:root {
    /* ========== COLORS ========== */
  --theme-color: #0B1849;
  --secondary-color: #E31B23;
  --light-bg-color: #F8FAFC;
  --dark-bg-color: #0D1E3D;
  --light-blue: #0070B0;
  --assets-color: #D7E4FF;
  --assests-color: #D7E4FF; /* Fallback for typo */

  --topbar-bg: #0B1849;
  --topbar-color: #FFFFFF;

  --text-dark: #333;
  --text-medium: #555;
  --text-light: #777;

  --border-color: #ddd;

  --border-radius: 6px;
  --box-shadow: 0 0 12px rgba(0,0,0,0.08);

  --title-font-size: 2rem;

  /* Typography Font Sizes */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 1.875rem;
  --font-4xl: 2.25rem;
  --font-5xl: 3rem;

  /* Additional Theme Colors & Accents */
  --primary-hover: #062261;
  --accent-gold: #D4AF37;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --white: #ffffff;
  --black: #000000;
  
  /* Gray Scale */
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Transitions */
  --transition-fast: all 0.2s ease-in-out;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacings */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  /* Advanced 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-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
    /* Primary Colors - Corporate Bright Blue (#0070B0) */
    --color-primary: #0B1849;
    --color-primary-light: #0B1849;
    --color-primary-lighter: #3b82f6;
    --color-primary-dark: #035280;
    
    --primary:#0B1849;
    --secondary:#E31B23;

    /* Secondary Colors - Corporate Bright Red (#E31B23) */
    --color-secondary: #E31B23;
    --color-secondary-light: #ef4444;
    --color-secondary-dark: #b91c1c;

    /* Accent Colors */
    --color-accent: #BFDBF7;
    --color-accent-light: #d6e9fc;
    --color-accent-dark: #8cb8e6;
    --color-accent-red: #E31B23;
    --color-accent-gold: #FFEB00;
    
    --color-bg-light: #E1E5F2;
    --color-bg-lighter: #f0f2f8;

    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #0ea5e9;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-black: #010c10;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    /* ========== TYPOGRAPHY ========== */
    /* Font Families */
    --font-family-base: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-heading: 'Outfit', 'Poppins', sans-serif;
    --font-family-mono: 'Courier New', monospace;

    /* Font Sizes (REM-based for scalability) */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.5rem;
    /* 24px */
    --font-size-3xl: 1.875rem;
    /* 30px */
    --font-size-4xl: 2.25rem;
    /* 36px */
    --font-size-5xl: 3rem;
    /* 48px */

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;

    /* Letter Spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.02em;
    --letter-spacing-wider: 0.05em;

    /* ========== SPACING ========== */
    --spacing-xs: 0.25rem;
    /* 4px */
    --spacing-sm: 0.5rem;
    /* 8px */
    --spacing-md: 1rem;
    /* 16px */
    --spacing-lg: 1.5rem;
    /* 24px */
    --spacing-xl: 2rem;
    /* 32px */
    --spacing-2xl: 2.5rem;
    /* 40px */
    --spacing-3xl: 3rem;
    /* 48px */
    --spacing-4xl: 4rem;
    /* 64px */

    /* ========== BORDER RADIUS ========== */
    --radius-none: 0;
    --radius-xs: 0.25rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* ========== SHADOWS ========== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --shadow-primary: 0 10px 30px -5px rgba(2, 43, 58, 0.2);
    --shadow-secondary: 0 10px 30px -5px rgba(31, 122, 140, 0.2);

    /* ========== TRANSITIONS & ANIMATIONS ========== */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* ========== Z-INDEX ========== */
    --z-dropdown: 1000;
    --z-modal: 1050;
    --z-popover: 1100;
    --z-tooltip: 1150;
    --z-notification: 1200;
    --z-fixed-header: 900;

    /* ========== BREAKPOINTS ========== */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;

    
    --header-height:82px;
    --header-height-scroll:68px;

    --ease:cubic-bezier(.22,.61,.36,1);

    --speed:.35s;

    --header-bg:rgba(255,255,255,.82);

    --header-border:rgba(255,255,255,.55);

    --header-shadow:
        0 12px 35px rgba(0,0,0,.08);

}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-gray-50: #0f172a;
        --color-gray-100: #1e293b;
        --color-gray-200: #334155;
        --color-gray-300: #475569;
        --color-gray-400: #64748b;
        --color-gray-500: #94a3b8;
        --color-gray-600: #cbd5e1;
        --color-gray-700: #e2e8f0;
        --color-gray-800: #f1f5f9;
        --color-gray-900: #f8fafc;
    }
}

/* ========== BASE TYPOGRAPHY DEFINITIONS ========== */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-gray-900);
    background-color: var(--color-white);
    font-weight: var(--font-weight-normal);
    font-family: var(--font-family-base) !important;
    font-family: "Poppins";
}

/* Headings */
h1,
.h1 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin: 0;
}

h2,
.h2 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin: 0;
}

h3,
.h3 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin: 0;
}

h4,
.h4 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    margin: 0;
}

h5,
.h5 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    margin: 0;
}

h6,
.h6 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    margin: 0;
}

p {
    font-family: var(--font-family-base) !important;
    font-family: "Poppins" !important;
    font-size: 1em;
}

/* Responsive Typography */
@media (max-width: 768px) {

    h1,
    .h1 {
        font-size: var(--font-size-3xl);
    }

    h2,
    .h2 {
        font-size: var(--font-size-2xl);
    }

    h3,
    .h3 {
        font-size: var(--font-size-xl);
    }
}