/* ============================================
   PLAYER MODAL MODERNIZATION
   Structural Correction Pass - 2026
   ============================================ */

/* 1️⃣ Fix Header Layout Using a Two-Column Grid */
/* Structure header with explicit grid layout */
#teamModal #modalContent > div.flex.flex-row.items-start.justify-between {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 1rem !important;
  align-items: start !important;
  margin-bottom: 1.5rem !important; /* 24px - consistent rhythm */
}

/* LEFT COLUMN: Player Name and Badge Row */
#teamModal #modalContent .flex.flex-col.flex-1 {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  min-width: 0 !important;
}

/* 1️⃣ Tighten Badge Row Spacing */
/* Reduce vertical spacing between player name and badge row */
#teamModal #modalContent .text-2xl.font-bold {
  margin-bottom: 0.375rem !important; /* 6px - reduced from 10px, tighter spacing */
  line-height: 1.3 !important;
  text-align: left !important;
}

/* Badge row directly under player name - they should feel attached, not floating */
#teamModal #modalContent .flex.items-center.gap-2 {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important; /* Badges on same baseline */
  gap: 0.5rem !important; /* Equal horizontal spacing */
  flex-wrap: wrap !important;
  margin-top: 0 !important; /* No extra top margin */
  padding-top: 0 !important;
  transform: none !important; /* No weird offsets */
  margin-bottom: 0 !important; /* No bottom margin */
}

/* Reduce spacing between badge row and first stat section */
#teamModal #modalContent > div.flex.flex-row.items-start.justify-between {
  margin-bottom: 1.25rem !important; /* 20px - reduced from 24px, tighter */
}

/* 5️⃣ Maintain Badge Integrity */
/* Do NOT change badge component styles - only surrounding layout context */
/* Badges must render exactly as they did before modal refactors */
/* No badge styling modifications - restore to original state */

/* RIGHT COLUMN: Action Buttons */
#teamModal #modalContent .flex.flex-col.flex-shrink-0 {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important; /* Right aligned */
  justify-content: flex-start !important;
  gap: 0.5rem !important; /* 8px - 8-12px spacing between buttons */
}

/* Buttons vertically aligned with name */
#teamModal #modalContent > div.flex.flex-row.items-start.justify-between {
  align-items: flex-start !important;
}

/* 2️⃣ Modern Button System - Primary + Ghost Pattern */
/* Base button styles - consistent sizing */
#teamModal #modalContent button.bg-green-500,
#teamModal #modalContent button.bg-red-500,
#teamModal #modalContent button.bg-gray-500 {
  height: 2rem !important;
  min-height: 2rem !important;
  max-height: 2rem !important;
  padding: 0.375rem 0.75rem !important;
  border-radius: 0.375rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
}

/* Roster Button - Primary Action (Not Rostered) */
#teamModal #modalContent button.bg-green-500 {
  background-color: #3b82f6 !important; /* blue-500 - brand color */
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

#teamModal #modalContent button.bg-green-500:hover {
  background-color: #2563eb !important; /* blue-600 */
  border-color: #2563eb !important;
}

/* Selected State (Rostered/Faded) - Greyed out appearance when active */
/* Roster button uses bg-red-500 when rostered */
/* Fade button uses bg-red-500 when faded (active) */
#teamModal #modalContent button.bg-red-500 {
  background-color: var(--color-bg-elevated, #f3f4f6) !important;
  color: var(--color-text-secondary, #6b7280) !important; /* Muted text color for greyed out look */
  border-color: var(--color-border, #d1d5db) !important;
  opacity: 0.7 !important; /* Slightly reduced opacity for greyed out effect */
}

#teamModal #modalContent button.bg-red-500:hover {
  background-color: var(--color-bg-elevated, #e5e7eb) !important;
  color: var(--color-text-secondary, #6b7280) !important; /* Keep muted on hover */
  border-color: var(--color-text-muted, #9ca3af) !important;
  opacity: 0.8 !important; /* Slightly less greyed on hover */
}

/* Fade Button - Ghost/Outline Style (Not Faded/Not Active) */
#teamModal #modalContent button.bg-gray-500 {
  background-color: transparent !important;
  color: var(--color-text-secondary, #6b7280) !important;
  border-color: var(--color-border, #d1d5db) !important;
  opacity: 1 !important; /* Full opacity when not active */
}

#teamModal #modalContent button.bg-gray-500:hover {
  background-color: var(--color-bg-primary, #f9fafb) !important;
  color: var(--color-text-primary, #374151) !important;
  border-color: var(--color-text-muted, #9ca3af) !important;
  opacity: 1 !important;
}

/* Note: When Fade is selected, it uses bg-red-500 which is styled above as subtle gray */

/* Do not allow mismatched heights */
#teamModal #modalContent .flex.flex-col.flex-shrink-0 > button {
  width: 100% !important;
  min-width: 5rem !important;
}

/* Badge Styling - Use Exact Same as Main Page */
/* DO NOT modify badge styling - badges must render exactly like the rest of the page */
/* Remove any overflow clipping from parent containers that might affect badges */
#teamModal #modalContent .flex.items-center.gap-2 {
  overflow: visible !important;
}

#teamModal #modalContent .flex.flex-col.flex-1 {
  overflow: visible !important;
}

/* Ensure badges are not being visually clipped by section containers */
#teamModal #modalContent > * {
  overflow: visible !important;
}

/* Ensure team badges have fully rounded corners - no clipping */
#teamModal #modalContent .filter-pill[class*="-modalTeam"] {
  border-radius: 6px !important; /* Match base filter-pill border-radius */
  border-bottom-left-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
  border-top-left-radius: 6px !important;
  border-top-right-radius: 6px !important;
  overflow: visible !important;
  clip-path: none !important;
}

/* Ensure no parent is clipping badge corners */
#teamModal #modalContent .flex.items-center.gap-2,
#teamModal #modalContent .flex.flex-col.flex-1,
#teamModal #modalContent {
  overflow: visible !important;
  clip-path: none !important;
}

/* Badge row layout - only layout, not styling */
#teamModal #modalContent .flex.items-center.gap-2 {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
}

/* Anchored directly under player name with consistent spacing */
#teamModal #modalContent .text-2xl.font-bold + .flex.items-center {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* They should feel anchored - no floating appearance */
#teamModal #modalContent .flex.flex-col.flex-1 {
  position: relative !important;
}

/* 2️⃣ Increase Card Surface Contrast Slightly */
/* Very slightly darken the card background OR increase border definition */
#teamModal #modalContent .bg-white.rounded-lg {
  background-color: var(--color-bg-secondary, #ffffff) !important;
  border-color: var(--color-border, #d1d5db) !important;
  border-width: 1px !important;
  border-style: solid !important;
}

/* Increase card border definition slightly */
#teamModal #modalContent .bg-white.rounded-lg.border {
  border-color: var(--color-border, #d1d5db) !important;
  border-width: 1px !important;
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05)) !important;
}

/* Do not add heavy shadows - just subtle contrast */
#teamModal #modalContent .bg-white.rounded-lg.border.border-gray-200 {
  border-color: var(--color-border, #d1d5db) !important;
}

/* 3️⃣ Reduce Internal Card Padding */
/* Reduce vertical padding inside stat sections slightly */
#teamModal #modalContent .grid.grid-cols-4,
#teamModal #modalContent .grid.grid-cols-5 {
  padding: 0.625rem 0.75rem !important; /* 10px vertical - reduced from 12px */
  gap: 1rem !important;
}

/* Ensure consistent padding across sections */
#teamModal #modalContent .grid {
  padding-top: 0.625rem !important; /* 10px - reduced */
  padding-bottom: 0.625rem !important; /* 10px - reduced */
}

/* Avoid tall empty zones */
#teamModal #modalContent .flex.flex-col.items-center {
  padding: 0 !important;
  margin: 0 !important;
}

/* Tighten spacing between section header and stat content */
#teamModal #modalContent [class*="-modalTeam"] + * {
  margin-top: 0.375rem !important; /* 6px - reduced from 8px */
}

/* Reduce space between stat label and value slightly */
#teamModal #modalContent .flex.flex-col.items-center .text-xs {
  margin-bottom: 0.3125rem !important; /* 5px - reduced from 6px */
}

/* Fixed-height modal container - SAME element has height AND overflow */
#teamModal > div,
#teamModal #modalContainer {
  position: relative !important;
  height: 570px !important;
  max-height: 570px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Remove flex-grow and ensure modalBody doesn't create dead space */
#teamModal #modalBody {
  flex: none !important;
  flex-grow: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Remove flex-grow from modalContent and ensure no dead space */
#teamModal #modalContent {
  flex: none !important;
  flex-grow: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  justify-content: flex-start !important;
}

#teamModal #modalHeader {
  padding-top: 0.75rem !important; /* 12px - reduced */
  padding-bottom: 0.75rem !important; /* 12px - reduced */
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Do NOT expand spacing further */

/* Ensure consistent vertical rhythm (e.g., 24px between major blocks) */
#teamModal #modalContent > div.flex.justify-center {
  margin-bottom: 1.5rem !important; /* 24px - consistent rhythm */
}

#teamModal #modalContent > div.flex.justify-center.mb-4 {
  margin-bottom: 1.5rem !important;
}

#teamModal #modalContent > div.flex.justify-center.mb-6 {
  margin-bottom: 1.5rem !important; /* Consistent 24px */
}

/* Avoid stacked spacing inflation */
#teamModal #modalContent > * {
  margin-top: 0 !important; /* Use explicit margins only */
}

/* Everything must align to a consistent vertical rhythm */
#teamModal #modalContent {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  justify-content: flex-start !important;
}

/* 7️⃣ Alignment Discipline */
/* All cards align perfectly left/right */
#teamModal #modalContent .bg-white.rounded-lg {
  width: 100% !important;
  max-width: 28rem !important; /* Consistent max-width */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Section headers align with card edges */
#teamModal #modalContent [class*="-modalTeam"] {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  border-radius: 0.5rem 0.5rem 0 0 !important; /* Match card radius */
}

/* Numeric values align cleanly across sections */
/* BUT exclude conditional formatting classes (red/green) */
#teamModal #modalContent .text-xl.font-bold:not(.text-red-600):not(.text-green-600):not(.text-red-500):not(.text-green-500):not(.text-red-700):not(.text-green-700) {
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  color: var(--color-text-primary, #111827) !important;
}

#teamModal #modalContent .flex.flex-col.items-center {
  align-items: center !important;
  text-align: center !important;
}

/* Buttons align with header grid */
#teamModal #modalContent .flex.flex-col.flex-shrink-0 {
  align-self: flex-start !important; /* Align with name baseline */
}

/* No drift. No floating. */
#teamModal #modalContent {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#teamModal #modalContent .flex.justify-center {
  justify-content: center !important;
  align-items: stretch !important;
}

/* Additional structural fixes */
/* Section headers */
#teamModal #modalContent [class*="-modalTeam"] {
  padding-top: 0.5rem !important; /* 8px - controlled height */
  padding-bottom: 0.5rem !important;
  min-height: auto !important;
}

/* Stripe elements align perfectly */
#teamModal #modalContent [class*="-modalTeam"] .absolute.left-2 .w-1,
#teamModal #modalContent [class*="-modalTeam"] .absolute.right-2 .w-1 {
  width: 2.5px !important;
  opacity: 0.4 !important;
}

/* Typography */
/* Exclude conditional formatting classes from color override */
#teamModal #modalContent .text-xl.font-bold:not(.text-red-600):not(.text-green-600):not(.text-red-500):not(.text-green-500):not(.text-red-700):not(.text-green-700) {
  font-size: 1.5rem !important; /* 24px - controlled */
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--color-text-primary, #111827) !important;
}

#teamModal #modalContent .text-xs.text-gray-500 {
  font-size: 0.6875rem !important; /* 11px */
  color: var(--color-text-secondary, #6b7280) !important;
  font-weight: 400 !important;
}

/* Conditional formatting colors - preserve red/green for trend, exposure, ADP */
/* These classes are set by JavaScript for conditional formatting */
/* Use higher specificity to ensure they override text-xl.font-bold rule */
#teamModal #modalContent .text-xl.font-bold.text-green-600,
#teamModal #modalContent .text-xl.font-bold.text-green-500,
#teamModal #modalContent .text-xl.font-bold.text-green-700,
#teamModal #modalContent .text-green-600,
#teamModal #modalContent .text-green-500,
#teamModal #modalContent .text-green-700 {
  color: #16a34a !important; /* green-600 for consistency */
  font-weight: 700 !important;
}

#teamModal #modalContent .text-xl.font-bold.text-red-600,
#teamModal #modalContent .text-xl.font-bold.text-red-500,
#teamModal #modalContent .text-xl.font-bold.text-red-700,
#teamModal #modalContent .text-red-600,
#teamModal #modalContent .text-red-500,
#teamModal #modalContent .text-red-700 {
  color: #dc2626 !important; /* red-600 for consistency */
  font-weight: 700 !important;
}

/* Modal container */
#teamModal > div,
#teamModal #modalContainer {
  background-color: var(--color-bg-secondary, #ffffff) !important;
  border-radius: 0.75rem !important;
  box-shadow: var(--shadow-lg, 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)) !important;
}

/* Modal header and footer */
#teamModal #modalHeader,
#teamModal #modalFooter {
  background-color: var(--color-bg-secondary, #ffffff) !important;
  border-color: var(--color-border, #e5e7eb) !important;
}

/* Modal body */
#teamModal #modalBody {
  background-color: var(--color-bg-secondary, #ffffff) !important;
}

/* Modal content text - ensure all text uses theme colors */
#teamModal #modalContent {
  color: var(--color-text-primary, #111827) !important;
}

/* Player name */
#teamModal #modalContent .text-2xl.font-bold {
  color: var(--color-text-primary, #111827) !important;
}

/* Base text color for modal content */
#teamModal #modalContent {
  color: var(--color-text-primary, #111827) !important;
}

/* Team badge colors - use theme colors from styles.css, NOT white */
/* Position badges are white, but team badges use their theme colors */
#teamModal #modalContent .ari-modalTeam,
#teamModal #modalContent .filter-pill.ari-modalTeam { color: #fff !important; }
#teamModal #modalContent .atl-modalTeam,
#teamModal #modalContent .filter-pill.atl-modalTeam { color: #ffffff !important; }
#teamModal #modalContent .bal-modalTeam,
#teamModal #modalContent .filter-pill.bal-modalTeam { color: #997c00 !important; }
#teamModal #modalContent .buf-modalTeam,
#teamModal #modalContent .filter-pill.buf-modalTeam { color: #fff !important; }
#teamModal #modalContent .car-modalTeam,
#teamModal #modalContent .filter-pill.car-modalTeam { color: #4595d6 !important; }
#teamModal #modalContent .chi-modalTeam,
#teamModal #modalContent .filter-pill.chi-modalTeam { color: #0e162a !important; }
#teamModal #modalContent .cin-modalTeam,
#teamModal #modalContent .filter-pill.cin-modalTeam { color: #080808 !important; }
#teamModal #modalContent .cle-modalTeam,
#teamModal #modalContent .filter-pill.cle-modalTeam { color: #2c1a13 !important; }
#teamModal #modalContent .dal-modalTeam,
#teamModal #modalContent .filter-pill.dal-modalTeam { color: #a5a99a !important; }
#teamModal #modalContent .den-modalTeam,
#teamModal #modalContent .filter-pill.den-modalTeam { color: #e85000 !important; }
#teamModal #modalContent .det-modalTeam,
#teamModal #modalContent .filter-pill.det-modalTeam { color: #a3aaad !important; }
#teamModal #modalContent .gb-modalTeam,
#teamModal #modalContent .filter-pill.gb-modalTeam { color: #f6b400 !important; }
#teamModal #modalContent .hou-modalTeam,
#teamModal #modalContent .filter-pill.hou-modalTeam { color: #ffffff !important; }
#teamModal #modalContent .ind-modalTeam,
#teamModal #modalContent .filter-pill.ind-modalTeam { color: #fff !important; }
#teamModal #modalContent .jax-modalTeam,
#teamModal #modalContent .filter-pill.jax-modalTeam { color: #cb9f00 !important; }
#teamModal #modalContent .kc-modalTeam,
#teamModal #modalContent .filter-pill.kc-modalTeam { color: #f2bd00 !important; }
#teamModal #modalContent .lac-modalTeam,
#teamModal #modalContent .filter-pill.lac-modalTeam { color: #f7c200 !important; }
#teamModal #modalContent .lar-modalTeam,
#teamModal #modalContent .filter-pill.lar-modalTeam { color: #f8d000 !important; }
#teamModal #modalContent .lv-modalTeam,
#teamModal #modalContent .filter-pill.lv-modalTeam { color: #a6adaf !important; }
#teamModal #modalContent .mia-modalTeam,
#teamModal #modalContent .filter-pill.mia-modalTeam { color: #215876 !important; }
#teamModal #modalContent .min-modalTeam,
#teamModal #modalContent .filter-pill.min-modalTeam { color: #e9bc1f !important; }
#teamModal #modalContent .ne-modalTeam,
#teamModal #modalContent .filter-pill.ne-modalTeam { color: #d0d2d4 !important; }
#teamModal #modalContent .no-modalTeam,
#teamModal #modalContent .filter-pill.no-modalTeam { color: #000000 !important; }
#teamModal #modalContent .nyg-modalTeam,
#teamModal #modalContent .filter-pill.nyg-modalTeam { color: #fff !important; }
#teamModal #modalContent .nyj-modalTeam,
#teamModal #modalContent .filter-pill.nyj-modalTeam { color: #fff !important; }
#teamModal #modalContent .phi-modalTeam,
#teamModal #modalContent .filter-pill.phi-modalTeam { color: #fff !important; }
#teamModal #modalContent .pit-modalTeam,
#teamModal #modalContent .filter-pill.pit-modalTeam { color: #f5c000 !important; }
#teamModal #modalContent .sea-modalTeam,
#teamModal #modalContent .filter-pill.sea-modalTeam { color: #18327e !important; }
#teamModal #modalContent .sf-modalTeam,
#teamModal #modalContent .filter-pill.sf-modalTeam { color: #b29c5f !important; }
#teamModal #modalContent .tb-modalTeam,
#teamModal #modalContent .filter-pill.tb-modalTeam { color: #e98200 !important; }
#teamModal #modalContent .ten-modalTeam,
#teamModal #modalContent .filter-pill.ten-modalTeam { color: #f6fff3 !important; }
#teamModal #modalContent .was-modalTeam,
#teamModal #modalContent .filter-pill.was-modalTeam { color: #f6b708 !important; }
#teamModal #modalContent .fa-modalTeam,
#teamModal #modalContent .filter-pill.fa-modalTeam { color: #eeeeee !important; }

/* DO NOT override conditional formatting classes (red/green) */
/* These are intentionally set by JavaScript for trend/exposure/ADP values */
/* text-red-600 and text-green-600 should remain as-is */

/* Only override neutral gray text that needs theme adaptation */
#teamModal #modalContent .text-gray-900:not(.text-red-600):not(.text-green-600),
#teamModal #modalContent .text-gray-800:not(.text-red-600):not(.text-green-600),
#teamModal #modalContent .text-gray-700:not(.text-red-600):not(.text-green-600) {
  color: var(--color-text-primary, #111827) !important;
}

#teamModal #modalContent .text-gray-600:not(.text-red-600):not(.text-green-600) {
  color: var(--color-text-secondary, #6b7280) !important;
}

#teamModal #modalContent .text-gray-500:not(.text-red-600):not(.text-green-600) {
  color: var(--color-text-secondary, #6b7280) !important;
}

#teamModal #modalContent .text-gray-400:not(.text-red-600):not(.text-green-600) {
  color: var(--color-text-muted, #9ca3af) !important;
}

/* Team badges use their own colors from styles.css - do NOT override */
/* The unset rule above removes inherited color, allowing styles.css team badge colors to apply */

/* Preserve position badge colors */
#teamModal #modalContent .filter-pill[class*="-modalPosition"],
#teamModal #modalContent [class*="-modalPosition"] {
  color: inherit !important;
}

/* 3️⃣ FIX MODAL BACKDROP (Remove Heavy Blur) */
/* Remove backdrop blur - unblurred background */
#teamModal {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: rgba(0, 0, 0, 0.35) !important; /* Light mode backdrop */
}

/* Dark mode backdrop - slightly lighter for better contrast */
[data-theme="dark"] #teamModal {
  background-color: rgba(0, 0, 0, 0.6) !important; /* Darker backdrop in dark mode */
}

/* Dashboard still visible and recognizable behind modal */
/* Context preserved - not foggy */

/* Scrollbar styling */
#teamModal #modalBody {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border, #d1d5db) var(--color-bg-primary, #f9fafb);
}

#teamModal #modalBody::-webkit-scrollbar {
  width: 6px;
}

#teamModal #modalBody::-webkit-scrollbar-track {
  background: var(--color-bg-primary, #f9fafb);
  border-radius: 3px;
}

#teamModal #modalBody::-webkit-scrollbar-thumb {
  background: var(--color-border, #d1d5db);
  border-radius: 3px;
}

#teamModal #modalBody::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted, #9ca3af);
}

/* Maintain team identity */
#teamModal #modalContent [class*="-modalTeam"] {
  filter: saturate(0.94) brightness(1.01); /* Slight refinement only */
}

/* Close button - Modern SaaS styling */
#teamModal #closeModal.modal-close-btn {
  position: absolute !important;
  top: 50% !important;
  right: 0.75rem !important; /* 12px from edge */
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  
  /* Large click target (36-40px) without visually enlarging */
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  
  /* Visual icon size stays subtle */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Minimal styling */
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  
  /* Muted neutral gray */
  color: var(--color-text-secondary, #6b7280) !important;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out !important;
}

/* SVG icon styling */
#teamModal #closeModal.modal-close-btn svg {
  width: 18px !important; /* Slightly larger visible size */
  height: 18px !important;
  stroke-width: 2 !important; /* Increased stroke thickness */
  flex-shrink: 0 !important;
}

/* Hover state - subtle darkening */
#teamModal #closeModal.modal-close-btn:hover {
  color: var(--color-text-primary, #4b5563) !important;
}

/* Optional: very subtle hover background */
#teamModal #closeModal.modal-close-btn:hover {
  background-color: var(--color-bg-elevated, rgba(243, 244, 246, 0.6)) !important;
  border-radius: 50% !important; /* Circular hover area */
}

/* Focus state for accessibility */
#teamModal #closeModal.modal-close-btn:focus {
  outline: 2px solid #3b82f6 !important; /* blue-500 */
  outline-offset: 2px !important;
  border-radius: 50% !important;
}
