/* 
 * Enterprise CRM Design System v2.0
 * Modern, Professional, Enterprise-Grade UI
 * Inspired by Salesforce, HubSpot, and Monday.com
 */

/* ============================================
   1. CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
  /* Brand Colors */
  --primary-50: #e8f4fd;
  --primary-100: #bfe3fa;
  --primary-200: #95d1f7;
  --primary-300: #6bbff4;
  --primary-400: #42adf1;
  --primary-500: #1e9bf0;  /* Main brand color */
  --primary-600: #0d84d9;
  --primary-700: #0968b2;
  --primary-800: #064d8a;
  --primary-900: #033163;
  
  /* Neutral Colors */
  --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;
  
  /* Semantic Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fed7aa;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* 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-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-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* 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;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --gray-50: #111827;
  --gray-100: #1f2937;
  --gray-200: #374151;
  --gray-300: #4b5563;
  --gray-400: #6b7280;
  --gray-500: #9ca3af;
  --gray-600: #d1d5db;
  --gray-700: #e5e7eb;
  --gray-800: #f3f4f6;
  --gray-900: #f9fafb;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* ============================================
   2. GLOBAL RESETS & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-900);
  background: var(--gray-50);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   3. TYPOGRAPHY SYSTEM
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: 2.5rem; margin-bottom: var(--space-lg); }
h2 { font-size: 2rem; margin-bottom: var(--space-md); }
h3 { font-size: 1.75rem; margin-bottom: var(--space-md); }
h4 { font-size: 1.5rem; margin-bottom: var(--space-sm); }
h5 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
h6 { font-size: 1rem; margin-bottom: var(--space-xs); }

.text-display {
  font-size: 3.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--gray-600);
}

/* ============================================
   4. MODERN AUTHENTICATION PAGES
   ============================================ */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  animation: backgroundSlide 60s linear infinite;
}

@keyframes backgroundSlide {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50%, -50%); }
}

.auth-card {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-logo img {
  height: 48px;
  width: auto;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-header h2 {
  font-size: 1.875rem;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.auth-header p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* ============================================
   5. MODERN FORM COMPONENTS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-xs);
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-900);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(30, 155, 240, 0.1);
}

.form-input:hover {
  border-color: var(--gray-400);
}

.form-input.is-invalid {
  border-color: var(--danger);
  background: var(--danger-light);
}

.form-input-icon {
  position: relative;
}

.form-input-icon .icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

.form-input-icon .form-input {
  padding-left: 2.5rem;
}

/* Floating Label Inputs */
.form-floating {
  position: relative;
}

.form-floating .form-input {
  padding: 1.25rem 0.875rem 0.375rem;
}

.form-floating .form-label {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: all var(--transition-base);
  pointer-events: none;
}

.form-floating .form-input:focus ~ .form-label,
.form-floating .form-input:not(:placeholder-shown) ~ .form-label {
  top: 0.25rem;
  font-size: 0.75rem;
  color: var(--primary-600);
}

/* ============================================
   6. MODERN BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button Ripple Effect */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Primary Button */
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  background-color: rgb(30, 155, 240); /* Fallback for tests */
  border-color: var(--primary-600);
  box-shadow: 0 4px 6px rgba(30, 155, 240, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  box-shadow: 0 6px 12px rgba(30, 155, 240, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Secondary Button */
.btn-secondary {
  color: var(--gray-700);
  background: white;
  border-color: var(--gray-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  text-decoration: none;
}

/* Success Button */
.btn-success {
  color: white;
  background: linear-gradient(135deg, var(--success), #059669);
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* Button Sizes */
.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ============================================
   7. MODERN SIDEBAR NAVIGATION & LAYOUT
   ============================================ */
.enterprise-body {
  display: flex;
  min-height: 100vh;
  background: var(--gray-50);
}

.enterprise-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: white;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  z-index: var(--z-fixed);
  transition: transform var(--transition-base);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: white;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  z-index: var(--z-fixed);
  transition: transform var(--transition-base);
}

.sidebar-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--gray-900);
}

.sidebar-logo img {
  height: 32px;
  width: auto;
}

.sidebar-logo span,
.logo-text {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Enterprise Main Content Area */
.enterprise-main,
.enterprise-content,
.main-content {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--gray-50);
  overflow-x: hidden;
  max-width: 100vw;
}

.page-content {
  padding: var(--space-xl);
  flex: 1;
  overflow-x: hidden;
  max-width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  width: 40px;
  height: 40px;
  background: var(--primary-500);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  z-index: var(--z-fixed);
  cursor: pointer;
}

/* Flash Messages */
.flash-messages {
  padding: var(--space-md) var(--space-xl) 0;
}

.enterprise-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  border-left: 4px solid;
}

.enterprise-alert-success {
  background: var(--success-light);
  color: var(--success);
  border-left-color: var(--success);
}

.enterprise-alert-danger {
  background: var(--danger-light);
  color: var(--danger);
  border-left-color: var(--danger);
}

.enterprise-alert-info {
  background: var(--info-light);
  color: var(--info);
  border-left-color: var(--info);
}

.alert-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.alert-close {
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  opacity: 0.7;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.nav-section {
  margin-bottom: var(--space-lg);
}

.sidebar-section {
  margin-bottom: var(--space-lg);
}

.sidebar-section-title,
.nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-xs);
}

.nav-item {
  margin-bottom: var(--space-xs);
}

.nav-link,
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link:hover,
.sidebar-nav-link:hover {
  background: var(--gray-100);
  color: var(--primary-600);
}

.nav-link.active,
.sidebar-nav-link.active {
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 500;
}

.nav-link.active::before,
.sidebar-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: var(--primary-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Sidebar Subsection Styles */
.sidebar-subsection {
  margin-bottom: var(--space-md);
}

.sidebar-subsection-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
}

.sidebar-sub-item {
  padding-left: calc(var(--space-md) + var(--space-lg)) !important;
  font-size: 0.875rem;
}

.sidebar-sub-item i {
  font-size: 0.75rem;
}

.nav-link .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-link .badge {
  margin-left: auto;
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  background: var(--danger);
  color: white;
  border-radius: var(--radius-full);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.sidebar-user:hover {
  background: var(--gray-100);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 1.2rem;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-actions {
  display: flex;
  align-items: center;
}

.logout-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logout-btn:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* ============================================
   8. MODERN TOP NAVIGATION BAR
   ============================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  height: 64px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  z-index: var(--z-sticky);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.topbar-search {
  position: relative;
  width: 400px;
}

.topbar-search input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.topbar-search input:focus {
  background: white;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(30, 155, 240, 0.1);
}

.topbar-search .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.topbar-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  transition: all var(--transition-base);
  cursor: pointer;
}

.topbar-icon-btn:hover {
  background: var(--gray-100);
  color: var(--primary-600);
}

.topbar-icon-btn .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.375rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.topbar-user:hover {
  background: var(--gray-100);
}

.topbar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.topbar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-user-info {
  display: flex;
  flex-direction: column;
}

.topbar-user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-900);
}

.topbar-user-role {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ============================================
   9. MODERN CARDS & PANELS
   ============================================ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.card-body {
  padding: var(--space-lg);
}

.card-footer {
  padding: var(--space-md) var(--space-lg);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

/* Metric Cards */
.metric-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-500);
}

.metric-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.metric-card.success::before { background: var(--success); }
.metric-card.warning::before { background: var(--warning); }
.metric-card.danger::before { background: var(--danger); }

.metric-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.metric-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  color: var(--primary-600);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.metric-change {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
}

.metric-change.positive {
  color: var(--success);
}

.metric-change.negative {
  color: var(--danger);
}

/* ============================================
   10. COMPANY ENRICHMENT UI COMPONENTS
   ============================================ */
.enrichment-panel {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.enrichment-header {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  padding: var(--space-lg);
  border-bottom: 1px solid var(--primary-200);
}

.enrichment-status {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.enrichment-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.enrichment-badge.complete {
  background: var(--success-light);
  color: var(--success);
}

.enrichment-badge.pending {
  background: var(--warning-light);
  color: var(--warning);
}

.enrichment-badge.processing {
  background: var(--info-light);
  color: var(--info);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.enrichment-sources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  padding: var(--space-lg);
}

.source-card {
  padding: var(--space-md);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.source-card:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
}

.source-card.active {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px rgba(30, 155, 240, 0.1);
}

.source-icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-sm);
}

.source-name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}

.source-status {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.enrichment-data {
  padding: var(--space-lg);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.data-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.data-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-value {
  font-size: 0.875rem;
  color: var(--gray-900);
}

.data-value.large {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Company Logo Display */
.company-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.company-logo {
  width: 160px;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-logo.placeholder {
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  color: var(--primary-700);
  font-size: 2rem;
  font-weight: 700;
}

.company-info {
  flex: 1;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}

.company-details {
  display: flex;
  gap: var(--space-lg);
  color: var(--gray-600);
  font-size: 0.875rem;
}

.company-detail {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Technology Stack Display */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 0.75rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  transition: all var(--transition-base);
}

.tech-badge:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
}

.tech-badge img {
  width: 16px;
  height: 16px;
}

/* ============================================
   11. MODERN TABLES
   ============================================ */
.enterprise-table-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.enterprise-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.enterprise-table thead {
  background: var(--gray-50);
}

.enterprise-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
}

.enterprise-table td {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.875rem;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-100);
}

.enterprise-table tbody tr {
  transition: all var(--transition-base);
}

.enterprise-table tbody tr:hover {
  background: var(--gray-50);
}
.table-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.table-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-actions {
  display: flex;
  gap: var(--space-sm);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead {
  background: var(--gray-50);
}

.table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
}

.table td {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.875rem;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-100);
}

.table tbody tr {
  transition: all var(--transition-base);
}

.table tbody tr:hover {
  background: var(--gray-50);
}

.table-checkbox {
  width: 40px;
}

.table-actions-cell {
  display: flex;
  gap: var(--space-xs);
}

/* ============================================
   12. LOADING STATES & SKELETONS
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: var(--space-sm);
}

.skeleton-title {
  height: 1.5rem;
  width: 40%;
  margin-bottom: var(--space-md);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   13. MODALS & OVERLAYS
   ============================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  animation: fadeIn var(--transition-base);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 1400px;
  max-height: 90vh;
  overflow: auto;
  z-index: var(--z-modal);
  animation: slideIn var(--transition-base);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */

/* Large tablet / small desktop */
@media (max-width: 1280px) {
  .topbar-search {
    width: 300px;
  }

  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .company-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
}

/* Tablet breakpoint - collapse sidebar */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .enterprise-sidebar {
    transform: translateX(-100%);
  }

  .enterprise-sidebar.sidebar-open {
    transform: translateX(0);
  }

  .topbar {
    left: 0;
  }

  .main-content,
  .enterprise-main {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .page-content {
    padding: var(--space-lg);
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .data-grid {
    grid-template-columns: 1fr;
  }

  .table-container {
    overflow-x: auto;
  }

  .topbar-search {
    display: none;
  }

  .metric-card {
    padding: var(--space-md);
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .company-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .page-content {
    padding: var(--space-md);
  }
}

/* ============================================
   15. ENTERPRISE DASHBOARD STYLES
   ============================================ */
/* Enterprise Header */
.enterprise-header {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
}

.header-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.header-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}

.header-subtitle {
  color: var(--gray-600);
  font-size: 1rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.metric-card-primary::before { background: var(--primary-500); }
.metric-card-warning::before { background: var(--warning); }
.metric-card-success::before { background: var(--success); }
.metric-card-info::before { background: var(--info); }

.metric-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.metric-trend {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
}

.trend-positive {
  color: var(--success);
}

.trend-negative {
  color: var(--danger);
}

.trend-value {
  font-weight: 600;
}

.trend-period {
  color: var(--gray-500);
}

.metric-progress {
  height: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-sm);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* Dashboard Panels */
.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-xl);
}

.enterprise-panel {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.panel-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
}

.panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.panel-title-icon {
  color: var(--primary-600);
}

.panel-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.panel-action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: none;
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-action-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--primary-600);
}

.panel-badge {
  background: var(--primary-100);
  color: var(--primary-700);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.panel-content {
  padding: var(--space-lg);
}

/* Action Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.action-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.action-card:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.action-icon.primary {
  background: var(--primary-100);
  color: var(--primary-600);
}

.action-icon.warning {
  background: var(--warning-light);
  color: var(--warning);
}

.action-icon.success {
  background: var(--success-light);
  color: var(--success);
}

.action-icon.info {
  background: var(--info-light);
  color: var(--info);
}

.action-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.action-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
}

.action-subtitle {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Follow-up List */
.follow-up-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.follow-up-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.follow-up-item:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.company-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.follow-up-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.company-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
}

.contact-info {
  font-size: 0.75rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.follow-up-date {
  text-align: center;
  color: var(--gray-700);
}

.date {
  font-size: 0.875rem;
  font-weight: 600;
}

.time {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.no-date {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.follow-up-actions {
  display: flex;
  gap: var(--space-xs);
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  color: var(--gray-600);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.action-btn:hover {
  background: var(--primary-100);
  color: var(--primary-600);
}

/* Activity Timeline */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.activity-item {
  display: flex;
  gap: var(--space-md);
  position: relative;
}

.activity-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-500);
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.activity-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.activity-subject {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
}

.activity-type {
  font-size: 0.75rem;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

.activity-description {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.activity-time {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: var(--space-xl);
  color: var(--gray-500);
}

.empty-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .enterprise-sidebar {
    transform: translateX(-100%);
  }
  
  .enterprise-sidebar.sidebar-open {
    transform: translateX(0);
  }
  
  .enterprise-main {
    margin-left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .action-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   16. INFO GROUPS & STATUS BADGES
   ============================================ */
.info-group {
  margin-bottom: var(--space-lg);
}

.info-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.info-value {
  font-size: 0.875rem;
  color: var(--gray-900);
  font-weight: 500;
  word-break: break-word;
}

.info-value a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-base);
}

.info-value a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-badge.status-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.status-warning {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.status-danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.status-info {
  background: var(--info-light);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.status-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

/* ============================================
   17. COMPANY DETAIL PAGE STYLES
   ============================================ */

/* Company Header Section */
.company-header-section {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.company-logo-large {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  flex-shrink: 0;
}

.company-logo-large .logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-sm);
}

.company-logo-large .logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary-600);
  font-size: 2.5rem;
}

.company-header-info {
  flex: 1;
  min-width: 0;
}

.company-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
  line-height: 1.1;
}

.company-legal-name {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.company-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.company-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.quick-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.quick-info-item i {
  color: var(--primary-600);
  width: 16px;
  text-align: center;
}

.quick-info-item a {
  color: var(--primary-600);
  text-decoration: none;
}

.quick-info-item a:hover {
  text-decoration: underline;
}

/* Info Groups with Icons */
.info-group label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.info-group label i {
  color: var(--primary-600);
  width: 14px;
  text-align: center;
}

/* Financial Highlights */
.financial-highlight {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--success);
}

.assessment-total {
  font-size: 1.25rem;
  color: var(--primary-600);
}

/* Address Display */
.address-display {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.address-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.address-details {
  flex: 1;
}

.address-line {
  font-size: 0.875rem;
  color: var(--gray-900);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

.address-line:last-child {
  margin-bottom: 0;
}

.address-line.country {
  font-weight: 600;
  color: var(--gray-700);
}

/* Notes Content */
.notes-content {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-500);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .company-header-section {
    flex-direction: column;
    text-align: center;
  }

  .company-logo-large {
    width: 100px;
    height: 100px;
    align-self: center;
  }

  .company-title {
    font-size: 1.75rem;
  }

  .company-quick-info {
    justify-content: center;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   18. UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--primary-500); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray-500); }

.bg-primary { background: var(--primary-500); }
.bg-success { background: var(--success); }
.bg-warning { background: var(--warning); }
.bg-danger { background: var(--danger); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Force white text on colored background cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-danger,
.card.bg-info,
.card.bg-secondary,
.card.bg-primary *,
.card.bg-success *,
.card.bg-warning *,
.card.bg-danger *,
.card.bg-info *,
.card.bg-secondary * {
  color: #fff !important;
}

.card.bg-primary .text-white-50,
.card.bg-success .text-white-50,
.card.bg-warning .text-white-50,
.card.bg-danger .text-white-50,
.card.bg-info .text-white-50,
.card.bg-secondary .text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}