/* ========================================
   X10 CAPITAL - UNIFIED DESIGN SYSTEM
   Core CSS: Variables, Resets, Base Styles
   Inspired by Player-IQ Finance Design
   ======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */
:root {
  /* ===== PRIMARY COLORS ===== */
  --primary-blue: #0052CC;
  --primary-blue-hover: #0747A6;
  --primary-blue-light: #E3F2FD;
  --secondary-blue: #4285F4;
  --accent-blue: #E3F2FD;
  
  /* ===== STATUS COLORS ===== */
  --success-green: #00C853;
  --success-green-hover: #00A846;
  --success-green-light: #E8F5E9;
  --warning-orange: #FF9500;
  --warning-orange-hover: #E68600;
  --warning-orange-light: #FFF3E0;
  --danger-red: #D32F2F;
  --danger-red-hover: #B71C1C;
  --danger-red-light: #FFEBEE;
  
  /* ===== FINANCIAL COLORS ===== */
  --bull-green: #16A34A;
  --bear-red: #DC2626;
  --hold-yellow: #F59E0B;
  --elite-cyan: #0891B2;
  
  /* ===== SPORT COLORS ===== */
  --sport-mlb: #007bff;
  --sport-nfl: #28a745;
  --sport-nba: #fd7e14;
  
  /* ===== NEUTRAL COLORS ===== */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --white: #FFFFFF;
  --black: #000000;
  
  /* ===== TYPOGRAPHY ===== */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Monaco', 'Courier New', monospace;
  
  --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-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ===== SPACING SCALE (8px grid) ===== */
  --space-0: 0;
  --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: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --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);
  
  /* ===== 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: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ===== 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;
  
  /* ===== LAYOUT ===== */
  --nav-height: 60px;
  --breadcrumb-height: 40px;
  --tab-height: 45px;
  --action-bar-height: 40px;
  
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

/* ========================================
   RESETS & BASE STYLES
   ======================================== */

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin/padding */
* {
  margin: 0;
  padding: 0;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Body defaults */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--gray-800);
  background-color: var(--gray-50);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Image defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form elements inherit font */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Link defaults */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: none;
}

/* Table defaults */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--gray-900);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

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

/* Monospace for financial figures */
.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Display utilities */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }

/* Flex utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing utilities */
.m-0 { margin: 0 !important; }
.m-auto { margin: auto !important; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.ml-2 { margin-left: var(--space-2); }
.ml-4 { margin-left: var(--space-4); }
.mr-2 { margin-right: var(--space-2); }
.mr-4 { margin-right: var(--space-4); }

.p-0 { padding: 0 !important; }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* Text utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Color utilities */
.text-primary { color: var(--primary-blue); }
.text-success { color: var(--success-green); }
.text-warning { color: var(--warning-orange); }
.text-danger { color: var(--danger-red); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-white { color: var(--white); }

.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-primary { background-color: var(--primary-blue); }
.bg-success { background-color: var(--success-green); }
.bg-warning { background-color: var(--warning-orange); }
.bg-danger { background-color: var(--danger-red); }

/* Border utilities */
.border { border: 1px solid var(--gray-300); }
.border-0 { border: 0; }
.border-t { border-top: 1px solid var(--gray-300); }
.border-b { border-bottom: 1px solid var(--gray-300); }
.border-l { border-left: 1px solid var(--gray-300); }
.border-r { border-right: 1px solid var(--gray-300); }
.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Cursor utilities */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Opacity utilities */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

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

.animate-fadeIn {
  animation: fadeIn var(--transition-base) ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Mobile first approach */
/* sm: 640px and up */
/* md: 768px and up */
/* lg: 1024px and up */
/* xl: 1280px and up */
/* 2xl: 1536px and up */
/* ========================================
   X10 CAPITAL - COMPONENT LIBRARY
   Reusable UI Components
   Inspired by Player-IQ Visualizations
   ======================================== */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

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

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
  color: var(--white);
  border-color: var(--primary-blue);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-blue-hover) 0%, var(--primary-blue) 100%);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-hover) 100%);
  color: var(--white);
  border-color: var(--success-green);
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--success-green-hover) 0%, var(--success-green) 100%);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-orange) 0%, var(--warning-orange-hover) 100%);
  color: var(--white);
  border-color: var(--warning-orange);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-red) 0%, var(--danger-red-hover) 100%);
  color: var(--white);
  border-color: var(--danger-red);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
}

/* Button Sizes */
.btn-xs {
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
}

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ========================================
   CARDS & KPI DISPLAYS
   ======================================== */

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

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

.card-header {
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

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

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

/* KPI Card - Player-IQ Style */
.kpi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-blue);
  transition: all var(--transition-base);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.kpi-card-positive {
  border-left-color: var(--bull-green);
}

.kpi-card-negative {
  border-left-color: var(--bear-red);
}

.kpi-card-warning {
  border-left-color: var(--hold-yellow);
}

.kpi-card-elite {
  border-left-color: var(--elite-cyan);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.kpi-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.kpi-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-mono);
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.kpi-value-positive {
  color: var(--bull-green);
}

.kpi-value-negative {
  color: var(--bear-red);
}

.kpi-value-warning {
  color: var(--hold-yellow);
}

.kpi-subtitle {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.kpi-trend-up {
  background: rgba(22, 163, 74, 0.1);
  color: var(--bull-green);
}

.kpi-trend-down {
  background: rgba(220, 38, 38, 0.1);
  color: var(--bear-red);
}

/* Stat Card Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

/* Compact Stat Display */
.stat-compact {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.stat-compact-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-mono);
  color: var(--gray-900);
}

.stat-compact-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

/* ========================================
   TABLES - Dense & Efficient
   ======================================== */

.table-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.table-dense {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table-dense thead {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.table-dense th {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.table-dense th:hover {
  background: rgba(255, 255, 255, 0.1);
}

.table-dense tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition-fast);
}

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

.table-dense td {
  padding: var(--space-2) var(--space-3);
  vertical-align: middle;
}

.table-dense-xs td {
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
}

/* Sortable column indicator */
.table-dense th.sortable::after {
  content: '⇅';
  margin-left: var(--space-1);
  opacity: 0.5;
}

.table-dense th.sorted-asc::after {
  content: '↑';
  opacity: 1;
}

.table-dense th.sorted-desc::after {
  content: '↓';
  opacity: 1;
}

/* Sticky table header */
.table-sticky-header {
  max-height: 600px;
  overflow-y: auto;
}

/* ========================================
   BADGES & LABELS
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-primary {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

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

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

.badge-danger {
  background: var(--danger-red-light);
  color: var(--danger-red);
}

.badge-gray {
  background: var(--gray-200);
  color: var(--gray-700);
}

/* Pipeline State Badges */
.badge-added {
  background: rgb(11, 83, 190);
  color: var(--white);
}

.badge-priced {
  background: rgb(8, 160, 233);
  color: var(--white);
}

.badge-engaged {
  background: rgb(142, 142, 142);
  color: var(--white);
}

.badge-wip {
  background: #00cdf5;
  color: var(--white);
}

.badge-hold {
  background: rgb(255, 149, 0);
  color: var(--white);
}

.badge-diligence {
  background: rgb(98, 0, 255);
  color: var(--white);
}

.badge-closed {
  background: rgb(0, 208, 114);
  color: var(--white);
}

.badge-lost {
  background: rgb(208, 0, 0);
  color: var(--white);
}

.badge-removed {
  background: #454545;
  color: var(--white);
}

/* Grade Badges */
.badge-grade-80,
.badge-grade-75 {
  background: #3498DB;
  color: var(--white);
}

.badge-grade-70 {
  background: #1ABC9C;
  color: var(--white);
}

.badge-grade-65 {
  background: #16A085;
  color: var(--white);
}

.badge-grade-60 {
  background: #27AE60;
  color: var(--white);
}

.badge-grade-55 {
  background: #2ECC71;
  color: var(--white);
}

.badge-grade-50 {
  background: #F1C40F;
  color: var(--gray-900);
}

.badge-grade-45 {
  background: #F39C12;
  color: var(--white);
}

.badge-grade-40,
.badge-grade-35,
.badge-grade-30 {
  background: #D35400;
  color: var(--white);
}

/* ========================================
   TABS & NAVIGATION
   ======================================== */

.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: var(--space-4);
}

.tab {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--gray-600);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab:hover {
  color: var(--gray-900);
  background: var(--gray-50);
}

.tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  font-weight: var(--font-weight-semibold);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
  background: var(--gray-200);
  color: var(--gray-700);
}

.tab.active .tab-badge {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

/* Compact Tabs */
.tabs-compact {
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  box-shadow: var(--shadow-sm);
}

.tabs-compact .tab {
  border-radius: var(--radius-md);
  border-bottom: none;
  margin-bottom: 0;
}

.tabs-compact .tab.active {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-blue-light);
}

.form-control:disabled {
  background: var(--gray-100);
  cursor: not-allowed;
}

.form-control-sm {
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-2) center;
  padding-right: var(--space-8);
}

/* ========================================
   ACTION BAR
   ======================================== */

.action-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: visible;
}

.action-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--success-green) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.action-bar-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ========================================
   MODALS
   ======================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal-backdrop);
  animation: fadeIn var(--transition-base) ease-out;
}

.modal-content-custom {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  z-index: var(--z-modal);
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn var(--transition-base) ease-out;
}

.modal-header-custom {
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
  color: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

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

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

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */

.alert {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border-left: 4px solid;
  margin-bottom: var(--space-4);
}

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

.alert-warning {
  background: var(--warning-orange-light);
  border-left-color: var(--warning-orange);
  color: var(--warning-orange-hover);
}

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

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

/* Toast Notifications */
.toast {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-tooltip);
  min-width: 250px;
  animation: slideIn var(--transition-slow) ease-out;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  color: var(--gray-400);
}

.breadcrumb-item a {
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--primary-blue);
}

.breadcrumb-item.active {
  color: var(--gray-900);
  font-weight: var(--font-weight-medium);
}

/* ========================================
   LOADING STATES
   ======================================== */

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}
/* ========================================
   X10 CAPITAL - LAYOUT SYSTEM
   Page Structure, Containers, Navigation
   Compact & Efficient Design
   ======================================== */

/* ========================================
   CONTAINERS
   ======================================== */

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-sm {
  max-width: var(--container-sm);
}

.container-md {
  max-width: var(--container-md);
}

.container-lg {
  max-width: var(--container-lg);
}

.container-xl {
  max-width: var(--container-xl);
}

.container-2xl {
  max-width: var(--container-2xl);
}

.container-fluid {
  max-width: 100%;
}

/* Compact container with less horizontal padding */
.container-compact {
  padding: 0 var(--space-2);
}

/* Dense container for maximum content */
.container-dense {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-4);
}

/* ========================================
   GRID SYSTEMS
   ======================================== */

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

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

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Gap variants */
.gap-0 { gap: 0; }
.gap-sm { gap: var(--space-2); }
.gap-md { gap: var(--space-4); }
.gap-lg { gap: var(--space-6); }

/* ========================================
   PAGE LAYOUT - NO WASTED SPACE
   ======================================== */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content area */
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding: var(--space-4);
  max-width: 100%;
}

/* Compact page layout - Player-IQ style */
.page-layout-compact {
  padding: var(--space-2) var(--space-4);
}

/* Dense layout - maximum information */
.page-layout-dense {
  padding: 0;
}

.page-layout-dense .page-content {
  padding: var(--space-2);
}

/* ========================================
   NAVIGATION - COMPACT HEADER
   ======================================== */

.navbar-compact {
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
  font-size: var(--font-size-sm);
}

.navbar-nav-item {
  padding: var(--space-2) var(--space-3);
  color: var(--gray-700);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.navbar-nav-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.navbar-nav-item.active {
  background: var(--primary-blue);
  color: var(--white);
}

/* Search in navbar */
.navbar-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--gray-100);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  max-width: 300px;
}

.navbar-search:focus-within {
  background: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-blue-light);
}

.navbar-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: var(--font-size-sm);
  color: var(--gray-900);
}

.navbar-search input::placeholder {
  color: var(--gray-500);
}

/* ========================================
   BREADCRUMB BAR - CONTEXT WITHOUT WASTE
   ======================================== */

.breadcrumb-bar {
  height: var(--breadcrumb-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  position: sticky;
  top: var(--nav-height);
  z-index: var(--z-sticky);
}

.breadcrumb-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.breadcrumb-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Player/Entity name display in breadcrumb */
.entity-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
}

.entity-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

/* Quick actions in breadcrumb */
.quick-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ========================================
   TAB NAVIGATION - COMPACT
   ======================================== */

.tab-bar {
  height: var(--tab-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  position: sticky;
  top: calc(var(--nav-height) + var(--breadcrumb-height));
  z-index: var(--z-sticky);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  height: 100%;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-bar-item:hover {
  color: var(--gray-900);
  background: var(--gray-50);
}

.tab-bar-item.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  font-weight: var(--font-weight-semibold);
}

.tab-bar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 var(--space-1);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-full);
  background: var(--gray-200);
  color: var(--gray-700);
}

.tab-bar-item.active .tab-bar-count {
  background: var(--primary-blue);
  color: var(--white);
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

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

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
}

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

/* Compact section - minimal spacing */
.section-compact {
  margin-bottom: var(--space-4);
}

.section-compact .section-header {
  margin-bottom: var(--space-2);
}

.section-compact .section-title {
  font-size: var(--font-size-lg);
}

/* Dense section - no header, directly to content */
.section-dense {
  margin-bottom: var(--space-3);
}

.section-dense .section-header {
  display: none;
}

/* ========================================
   SIDEBAR LAYOUTS
   ======================================== */

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-4);
  min-height: calc(100vh - var(--nav-height));
}

.sidebar {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: var(--space-4);
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.sidebar-compact {
  width: 240px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.sidebar-nav-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.sidebar-nav-item.active {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  font-weight: var(--font-weight-semibold);
}

/* ========================================
   SPLIT VIEW LAYOUTS
   ======================================== */

.split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  height: calc(100vh - var(--nav-height) - var(--breadcrumb-height) - var(--tab-height));
}

.split-view-left,
.split-view-right {
  overflow-y: auto;
  padding: var(--space-4);
}

.split-view-left {
  border-right: 1px solid var(--gray-200);
}

/* 2/3 - 1/3 split */
.split-view-23 {
  grid-template-columns: 2fr 1fr;
}

/* 1/3 - 2/3 split */
.split-view-13 {
  grid-template-columns: 1fr 2fr;
}

/* ========================================
   CHART/VISUALIZATION LAYOUTS
   ======================================== */

/* Player-IQ style chart grid */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-4);
}

.chart-container-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-blue);
}

.chart-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.chart-title-wrapper {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
}

.chart-canvas {
  position: relative;
  height: 300px;
  width: 100%;
}

/* ========================================
   FLOATING ACTION BUTTON
   ======================================== */

.fab {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
  color: var(--white);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-2xl);
}

.fab i {
  font-size: var(--font-size-xl);
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

/* Responsive grids */
@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: none;
  }
  
  .split-view {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .chart-grid {
    grid-template-columns: 1fr;
  }
  
  .page-content {
    padding: var(--space-2);
  }
}

/* Hide on mobile */
.hide-mobile {
  display: block;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on desktop */
.hide-desktop {
  display: none;
}

@media (max-width: 768px) {
  .hide-desktop {
    display: block !important;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .navbar-compact,
  .breadcrumb-bar,
  .tab-bar,
  .sidebar,
  .fab {
    display: none !important;
  }
  
  .page-content {
    padding: 0;
  }
  
  body {
    background: var(--white);
  }
}
/* ========================================
   X10 CAPITAL - SPORT THEMES
   Sport-Specific Color Overrides
   Maintains Consistency While Adding Context
   ======================================== */

/* ========================================
   MLB THEME
   ======================================== */

.theme-mlb,
[data-sport="mlb"] {
  --theme-color: var(--sport-mlb);
  --theme-color-light: rgba(0, 123, 255, 0.1);
  --theme-color-dark: #0056b3;
}

.theme-mlb .tab-bar-item.active,
[data-sport="mlb"] .tab-bar-item.active {
  color: var(--sport-mlb);
  border-bottom-color: var(--sport-mlb);
}

.theme-mlb .kpi-card,
[data-sport="mlb"] .kpi-card {
  border-left-color: var(--sport-mlb);
}

.theme-mlb .chart-container-wrapper,
[data-sport="mlb"] .chart-container-wrapper {
  border-left-color: var(--sport-mlb);
}

.theme-mlb .btn-primary,
[data-sport="mlb"] .btn-primary {
  background: linear-gradient(135deg, var(--sport-mlb) 0%, #0056b3 100%);
  border-color: var(--sport-mlb);
}

.theme-mlb .navbar-nav-item.active,
[data-sport="mlb"] .navbar-nav-item.active {
  background: var(--sport-mlb);
}

.theme-mlb .badge-primary,
[data-sport="mlb"] .badge-primary {
  background: rgba(0, 123, 255, 0.1);
  color: var(--sport-mlb);
}

.theme-mlb .action-bar::before,
[data-sport="mlb"] .action-bar::before {
  background: linear-gradient(90deg, var(--sport-mlb) 0%, var(--success-green) 100%);
}

.sport-badge-mlb {
  background: var(--sport-mlb);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

/* ========================================
   NFL THEME
   ======================================== */

.theme-nfl,
[data-sport="nfl"] {
  --theme-color: var(--sport-nfl);
  --theme-color-light: rgba(40, 167, 69, 0.1);
  --theme-color-dark: #1e7e34;
}

.theme-nfl .tab-bar-item.active,
[data-sport="nfl"] .tab-bar-item.active {
  color: var(--sport-nfl);
  border-bottom-color: var(--sport-nfl);
}

.theme-nfl .kpi-card,
[data-sport="nfl"] .kpi-card {
  border-left-color: var(--sport-nfl);
}

.theme-nfl .chart-container-wrapper,
[data-sport="nfl"] .chart-container-wrapper {
  border-left-color: var(--sport-nfl);
}

.theme-nfl .btn-primary,
[data-sport="nfl"] .btn-primary {
  background: linear-gradient(135deg, var(--sport-nfl) 0%, #1e7e34 100%);
  border-color: var(--sport-nfl);
}

.theme-nfl .navbar-nav-item.active,
[data-sport="nfl"] .navbar-nav-item.active {
  background: var(--sport-nfl);
}

.theme-nfl .badge-primary,
[data-sport="nfl"] .badge-primary {
  background: rgba(40, 167, 69, 0.1);
  color: var(--sport-nfl);
}

.theme-nfl .action-bar::before,
[data-sport="nfl"] .action-bar::before {
  background: linear-gradient(90deg, var(--sport-nfl) 0%, var(--success-green) 100%);
}

.sport-badge-nfl {
  background: var(--sport-nfl);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

/* ========================================
   NBA THEME
   ======================================== */

.theme-nba,
[data-sport="nba"] {
  --theme-color: var(--sport-nba);
  --theme-color-light: rgba(253, 126, 20, 0.1);
  --theme-color-dark: #d16514;
}

.theme-nba .tab-bar-item.active,
[data-sport="nba"] .tab-bar-item.active {
  color: var(--sport-nba);
  border-bottom-color: var(--sport-nba);
}

.theme-nba .kpi-card,
[data-sport="nba"] .kpi-card {
  border-left-color: var(--sport-nba);
}

.theme-nba .chart-container-wrapper,
[data-sport="nba"] .chart-container-wrapper {
  border-left-color: var(--sport-nba);
}

.theme-nba .btn-primary,
[data-sport="nba"] .btn-primary {
  background: linear-gradient(135deg, var(--sport-nba) 0%, #d16514 100%);
  border-color: var(--sport-nba);
}

.theme-nba .navbar-nav-item.active,
[data-sport="nba"] .navbar-nav-item.active {
  background: var(--sport-nba);
}

.theme-nba .badge-primary,
[data-sport="nba"] .badge-primary {
  background: rgba(253, 126, 20, 0.1);
  color: var(--sport-nba);
}

.theme-nba .action-bar::before,
[data-sport="nba"] .action-bar::before {
  background: linear-gradient(90deg, var(--sport-nba) 0%, var(--warning-orange) 100%);
}

.sport-badge-nba {
  background: var(--sport-nba);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

/* ========================================
   POSITION-SPECIFIC COLORS (MLB)
   ======================================== */

.position-starter {
  color: #3498DB;
}

.position-reliever {
  color: #16A085;
}

.position-c {
  color: #9B59B6;
}

.position-1b,
.position-2b,
.position-3b,
.position-ss {
  color: #E67E22;
}

.position-lf,
.position-rf,
.position-cf {
  color: #2ECC71;
}

.position-dh {
  color: #95A5A6;
}

/* ========================================
   PERFORMANCE LEVEL COLORS
   ======================================== */

.perf-elite {
  color: var(--elite-cyan);
  background: rgba(8, 145, 178, 0.1);
}

.perf-above-average {
  color: var(--bull-green);
  background: rgba(22, 163, 74, 0.1);
}

.perf-average {
  color: var(--hold-yellow);
  background: rgba(245, 158, 11, 0.1);
}

.perf-below-average {
  color: var(--warning-orange);
  background: rgba(255, 149, 0, 0.1);
}

.perf-poor {
  color: var(--bear-red);
  background: rgba(220, 38, 38, 0.1);
}

/* Solid background variants */
.perf-elite-solid {
  background: var(--elite-cyan);
  color: var(--white);
}

.perf-above-average-solid {
  background: var(--bull-green);
  color: var(--white);
}

.perf-average-solid {
  background: var(--hold-yellow);
  color: var(--gray-900);
}

.perf-below-average-solid {
  background: var(--warning-orange);
  color: var(--white);
}

.perf-poor-solid {
  background: var(--bear-red);
  color: var(--white);
}

/* ========================================
   PIPELINE STATE COLORS
   ======================================== */

.state-educate {
  background: rgb(11, 83, 190);
  color: var(--white);
}

.state-prospect {
  background: rgb(66, 138, 255);
  color: var(--white);
}

.state-added {
  background: rgb(11, 83, 190);
  color: var(--white);
}

.state-universe {
  background: rgb(66, 138, 255);
  color: var(--white);
}

.state-priced {
  background: rgb(8, 160, 233);
  color: var(--white);
}

.state-wip {
  background: #00cdf5;
  color: var(--white);
}

.state-hold {
  background: rgb(255, 149, 0);
  color: var(--white);
}

.state-abandoned {
  background: rgb(255, 149, 0);
  color: var(--white);
}

.state-engaged {
  background: rgb(142, 142, 142);
  color: var(--white);
}

.state-offer-discussion {
  background: rgb(0, 172, 185);
  color: var(--white);
}

.state-diligence {
  background: rgb(98, 0, 255);
  color: var(--white);
}

.state-closed {
  background: rgb(0, 208, 114);
  color: var(--white);
}

.state-lost {
  background: rgb(208, 0, 0);
  color: var(--white);
}

.state-removed {
  background: #454545;
  color: var(--white);
}

/* Light background variants for tables/cards */
.state-educate-light {
  background: rgba(11, 83, 190, 0.1);
  color: rgb(11, 83, 190);
}

.state-hold-light {
  background: rgba(255, 149, 0, 0.1);
  color: rgb(255, 149, 0);
}

.state-engaged-light {
  background: rgba(142, 142, 142, 0.1);
  color: rgb(142, 142, 142);
}

.state-closed-light {
  background: rgba(0, 208, 114, 0.1);
  color: rgb(0, 208, 114);
}

.state-lost-light {
  background: rgba(208, 0, 0, 0.1);
  color: rgb(208, 0, 0);
}

/* ========================================
   FUND COLORS
   ======================================== */

.fund-1 {
  color: var(--primary-blue);
}

.fund-2 {
  color: var(--secondary-blue);
}

.fund-badge-1 {
  background: var(--primary-blue);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.fund-badge-2 {
  background: var(--secondary-blue);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

/* ========================================
   RISK LEVEL COLORS
   ======================================== */

.risk-low {
  color: var(--success-green);
  background: var(--success-green-light);
}

.risk-medium {
  color: var(--warning-orange);
  background: var(--warning-orange-light);
}

.risk-high {
  color: var(--danger-red);
  background: var(--danger-red-light);
}

.risk-very-high {
  color: #8B0000;
  background: rgba(139, 0, 0, 0.1);
}

/* ========================================
   PRIORITY COLORS
   ======================================== */

.priority-critical {
  background: var(--danger-red);
  color: var(--white);
}

.priority-high {
  background: var(--warning-orange);
  color: var(--white);
}

.priority-medium {
  background: var(--hold-yellow);
  color: var(--gray-900);
}

.priority-low {
  background: var(--gray-400);
  color: var(--white);
}

/* ========================================
   STATUS INDICATOR DOTS
   ======================================== */

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: var(--space-2);
}

.status-dot-active {
  background: var(--success-green);
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.2);
}

.status-dot-pending {
  background: var(--warning-orange);
  box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.2);
}

.status-dot-inactive {
  background: var(--gray-400);
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2);
}

.status-dot-error {
  background: var(--danger-red);
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

/* Pulsing animation for active status */
@keyframes pulse-status {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.status-dot-active {
  animation: pulse-status 2s ease-in-out infinite;
}

/* ========================================
   DARK MODE SUPPORT (Future)
   ======================================== */

@media (prefers-color-scheme: dark) {
  /* Future dark mode support */
  /* Will be implemented in Phase 2 */
}
