﻿/* ==========================================================================
   FID.Compass DESIGN SYSTEM
   ========================================================================== */

/* CSS Custom Properties (Variables) for consistent theming */
:root {
  /* ==========================================================================
     PRIMARY COLOR PALETTE
     ========================================================================== */
  --primary-color: #00618F;           /* Main brand blue - FID.Compass Corporate Color */
  --primary-hover: #327EBB;           /* Darker blue for hover states */
  --primary-light: #6BA3E8;           /* Lighter blue for backgrounds */
  --primary-lightest: #e6f2ff;        /* Very light blue for backgrounds */
  --primary-dark: #2A6BC0;            /* Dark blue for text/contrast */

  /* ==========================================================================
     SECONDARY COLOR PALETTE
     ========================================================================== */
  --secondary-color: #6c757d;         /* Gray for secondary elements */
  --secondary-hover: #545b62;         /* Darker gray for hover */
  --secondary-light: #adb5bd;         /* Light gray */
  --secondary-lightest: #f8f9fa;      /* Very light gray backgrounds */

  /* ==========================================================================
     SEMANTIC COLORS
     ========================================================================== */
  --success-color: #28a745;           /* Green for success states */
  --success-light: #d4edda;           /* Light green backgrounds */
  --warning-color: #ffc107;           /* Yellow for warnings */
  --warning-light: #fff3cd;           /* Light yellow backgrounds */
  --error-color: #dc3545;             /* Red for errors */
  --error-light: #f8d7da;             /* Light red backgrounds */
  --info-color: #17a2b8;              /* Teal for info messages */
  --info-light: #d1ecf1;              /* Light teal backgrounds */

  /* ==========================================================================
     NEUTRAL COLORS
     ========================================================================== */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* ==========================================================================
     TEXT COLORS
     ========================================================================== */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --text-light: var(--gray-400);
  --text-white: var(--white);
  --text-link: var(--primary-color);
  --text-link-hover: var(--primary-hover);

  /* ==========================================================================
     BACKGROUND COLORS
     ========================================================================== */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  --bg-dark: var(--gray-800);
  --bg-overlay: rgba(0, 0, 0, 0.5);

  /* ==========================================================================
     BORDER COLORS
     ========================================================================== */
  --border-light: var(--gray-200);
  --border-medium: var(--gray-300);
  --border-dark: var(--gray-400);
  --border-primary: var(--primary-color);

  /* ==========================================================================
     TYPOGRAPHY
     ========================================================================== */
  --font-family-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-family-secondary: 'Georgia', 'Times New Roman', serif;
  --font-family-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;

  /* Font Sizes */
  --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.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* ==========================================================================
     SPACING SYSTEM (Based on 8px grid)
     ========================================================================== */
  --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 */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* ==========================================================================
     BORDER RADIUS
     ========================================================================== */
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-base: 0.25rem;  /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-full: 9999px;   /* Full round */

  /* ==========================================================================
     SHADOWS
     ========================================================================== */
  --shadow-sm: none;
  --shadow-base: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --shadow-2xl: none;

  /* ==========================================================================
     LAYOUT DIMENSIONS
     ========================================================================== */
  --max-width-sm: 640px;
  --max-width-md: 768px;
  --max-width-lg: 1024px;
  --max-width-xl: 1280px;
  --max-width-2xl: 1536px;
  --max-width-container: 1200px;

  /* ==========================================================================
     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;

  /* ==========================================================================
     TRANSITIONS
     ========================================================================== */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-all: all var(--transition-base);

  /* ==========================================================================
     BREAKPOINTS (for reference in media queries)
     ========================================================================== */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;
}

/* ==========================================================================
   COMPONENT-SPECIFIC VARIABLES
   ========================================================================== */

/* Buttons */
:root {
  --btn-padding-x: var(--space-4);
  --btn-padding-y: var(--space-2);
  --btn-font-size: var(--font-size-base);
  --btn-border-radius: var(--radius-md);
  --btn-font-weight: var(--font-weight-medium);
}

/* Cards */
:root {
  --card-padding: var(--space-6);
  --card-border-radius: var(--radius-lg);
  --card-border-color: var(--border-light);
  --card-shadow: none;
  --card-hover-shadow: none;
}

/* Forms */
:root {
  --input-padding-x: var(--space-3);
  --input-padding-y: var(--space-2);
  --input-border-radius: var(--radius-md);
  --input-border-color: var(--border-medium);
  --input-focus-border-color: var(--primary-color);
  --input-background: var(--white);
}

/* Navigation */
:root {
  --nav-height: 64px;
  --sidebar-width: 280px;
  --nav-background: var(--white);
  --nav-border-color: var(--border-light);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.text-brand { color: var(--primary-color); }

/* Background Colors */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-brand { background-color: var(--primary-color); }
.bg-brand-light { background-color: var(--primary-lightest); }

/* Spacing Utilities */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

/* Border Radius */
.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-base); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: none; }
.shadow { box-shadow: none; }
.shadow-md { box-shadow: none; }
.shadow-lg { box-shadow: none; }
.shadow-xl { box-shadow: none; }

/* ==========================================================================
   DARK MODE SUPPORT (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: var(--gray-100);
    --text-secondary: var(--gray-300);
    --text-muted: var(--gray-400);
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --bg-tertiary: var(--gray-700);
    --border-light: var(--gray-700);
    --border-medium: var(--gray-600);
    --border-dark: var(--gray-500);
  }
}

/* Force light mode class (can be toggled via JavaScript) */
.light-mode {
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  --border-light: var(--gray-200);
  --border-medium: var(--gray-300);
  --border-dark: var(--gray-400);
}

/* Force dark mode class */
.dark-mode {
  --text-primary: var(--gray-100);
  --text-secondary: var(--gray-300);
  --text-muted: var(--gray-400);
  --bg-primary: var(--gray-900);
  --bg-secondary: var(--gray-800);
  --bg-tertiary: var(--gray-700);
  --border-light: var(--gray-700);
  --border-medium: var(--gray-600);
  --border-dark: var(--gray-500);
}

/* ==========================================================================
   FOCUS STATES - No visible outlines or borders
   ========================================================================== */

/* Remove all focus outlines and borders */
button:focus,
button:focus-visible,
button:focus-within,
button:active,
.btn:focus,
.btn:focus-visible,
.btn:focus-within,
.btn:active,
[role="button"]:focus,
[role="button"]:focus-visible,
[role="button"]:focus-within,
[role="button"]:active,
a:focus,
a:focus-visible,
a:focus-within,
a:active,
.card:focus,
.card:focus-visible,
.card:focus-within,
.card:active,
.nav-link:focus,
.nav-link:focus-visible,
.nav-link:active,
.dropdown-item:focus,
.dropdown-item:focus-visible,
.dropdown-item:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Ensure form inputs keep their borders but remove focus highlight */
input,
select,
textarea,
.form-control,
.form-select {
  border: 1px solid var(--border-medium) !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--border-medium) !important;
  outline: none !important;
  box-shadow: none !important;
}

