/* Procurement Agent - Design System Variables */
/* Inspired by Fyxer AI - Modern, Clean, Professional */

:root {
  /* === Heavenly Color Palette (Rebranded) === */
  --primary-orange: #0EA5E9; /* Rebranded to Deep Blue */
  --primary-dark: #0284C7;   /* Vibrant Blue */
  --primary-light: #7DD3FC;  /* Accent Blue */
  --primary-brand: #0EA5E9;

  /* Custom Heavenly Tokens */
  --primary-yellow: #FFFDF0;
  --secondary-yellow: #FFF9E6;
  --accent-yellow: #FFE599;
  --warm-yellow: #FFD966;
  --primary-blue: #F0F9FF;
  --secondary-blue: #E0F2FE;
  --accent-blue: #7DD3FC;
  --deep-blue: #0EA5E9;
  --vibrant-blue: #0284C7;

  /* === Background & Gradients === */
  --bg-white: #FFFFFF;
  --bg-light: #F0F9FF; /* Light Blue/Heavenly background */
  --bg-dark: #E0F2FE;
  --bg-darker: #BAE6FD;
  --gradient-heaven: linear-gradient(135deg, #FFFDF0 0%, #F0F9FF 50%, #FFF9E6 100%);
  --gradient-sidebar: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 100%);

  /* === Text Colors === */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;

  /* === Accent Colors === */
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-orange: #FFD966; /* Warm Yellow */
  --accent-purple: #8B5CF6;

  /* === Border & Dividers === */
  --border-light: rgba(14, 165, 233, 0.15);
  --border-medium: #CBD5E1;
  --border-dark: #94A3B8;

  /* === Shadows === */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 30px -10px rgba(14, 165, 233, 0.1);
  --shadow-lg: 0 20px 40px -15px rgba(14, 165, 233, 0.15);
  --shadow-xl: 0 0 50px -10px rgba(14, 165, 233, 0.3);

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

  /* Font Sizes */
  --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 */

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

  /* === 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-full: 9999px;

  /* === Transitions === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s ease;

  /* === Z-Index === */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-tooltip: 1060;

  /* === Layout === */
  --sidebar-width: 220px;
  --header-height: 64px;
}

/* === Global Resets === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--gradient-heaven);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography Utilities === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* === Container === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* === Scrollbar Styling === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-dark);
}

/* --- Professional Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    animation: fadeIn 0.4s ease-out;
}

/* Smooth Interactive Elements */
a, button, .card, .sidebar-link, .nav-link, .btn {
    transition: var(--transition-base) !important;
}