/* style.css - Premium Glassmorphic Theme for FFBoard */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #0b0f19;
  --bg-secondary: rgba(20, 26, 43, 0.6);
  --bg-card: rgba(30, 39, 62, 0.4);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.15);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-primary: #6366f1; /* Indigo */
  --accent-secondary: #a855f7; /* Purple */
  --accent-glow: rgba(99, 102, 241, 0.15);
  
  /* Position Colors */
  --color-qb: #3b82f6;   /* Blue */
  --color-rb: #10b981;   /* Emerald */
  --color-wr: #8b5cf6;   /* Violet */
  --color-te: #f59e0b;   /* Amber */
  --color-k: #ec4899;    /* Pink */
  --color-dst: #ef4444;  /* Red */
  --color-flex: #14b8a6; /* Teal */
  
  /* Shadows and Blurs */
  --glass-blur: 16px;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);
  
  /* Layout sizes */
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Glassmorphism Panel base */
.glass-panel {
  background: var(--bg-secondary);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-panel:hover {
  border-color: var(--border-highlight);
}

/* Header */
header {
  height: var(--header-height);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.25);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Current Pick Indicator */
.status-tracker {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border-color);
}

.tracker-item {
  display: flex;
  flex-direction: column;
}

.tracker-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tracker-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tracker-value.highlight {
  color: var(--accent-primary);
}

/* Header Action Controls */
.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

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

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

.btn-primary {
  background: var(--accent-primary);
  border-color: transparent;
}
.btn-primary:hover:not(:disabled) {
  background: #4f46e5;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.btn-icon-only {
  padding: 0.5rem;
  border-radius: 8px;
}

/* Main Dashboard Layout */
.dashboard-container {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  gap: 1rem;
  padding: 1rem;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

/* Left Panel - Player Pool */
.player-pool-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.panel-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* Filters */
.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.filter-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filter-badge.active {
  background: var(--accent-primary);
  color: white;
  border-color: transparent;
}

/* Player List */
.player-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.player-item {
  display: grid;
  grid-template-columns: 36px 4px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
}

.player-rank {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

.player-pos-indicator {
  width: 4px;
  height: 28px;
  border-radius: 99px;
}

.player-info-meta {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.player-subinfo {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.player-pos-tag {
  font-weight: 700;
  font-size: 0.7rem;
}

.player-points {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
}

.player-adp {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Center Panel - Board/Rosters Tabs */
.center-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.15);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.tab-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tab-panel {
  display: none;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 1rem;
}

.tab-panel.active {
  display: block;
}

/* Draft Grid styling */
.draft-grid-container {
  display: flex;
  flex-direction: column;
  width: max-content;
  min-width: 100%;
}

.grid-row {
  display: grid;
  /* Columns auto-calculated based on league size in JS */
  grid-template-columns: 80px repeat(12, minmax(130px, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.grid-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-height: 70px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.grid-cell.header-cell {
  background: rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
  min-height: 50px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  border-color: rgba(255, 255, 255, 0.05);
}

.grid-cell.round-header-cell {
  background: rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.grid-cell.active-pick {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
  animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
  0% { border-color: rgba(99, 102, 241, 0.4); }
  50% { border-color: rgba(99, 102, 241, 1); }
  100% { border-color: rgba(99, 102, 241, 0.4); }
}

.grid-cell.user-pick-cell {
  background: rgba(99, 102, 241, 0.02);
}

.cell-pick-num {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Card of player inside a draft cell */
.drafted-player-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  animation: scale-up-card 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scale-up-card {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.card-name {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.1rem;
}

.card-pos-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.05rem 0.25rem;
  border-radius: 4px;
  color: #fff;
}

/* Color styles dynamically matched in JS */
.pos-qb { background-color: rgba(59, 130, 246, 0.15); border-left: 3px solid var(--color-qb); }
.pos-rb { background-color: rgba(16, 185, 129, 0.15); border-left: 3px solid var(--color-rb); }
.pos-wr { background-color: rgba(139, 92, 246, 0.15); border-left: 3px solid var(--color-wr); }
.pos-te { background-color: rgba(245, 158, 11, 0.15); border-left: 3px solid var(--color-te); }
.pos-k  { background-color: rgba(236, 72, 153, 0.15); border-left: 3px solid var(--color-k); }
.pos-dst { background-color: rgba(239, 68, 68, 0.15); border-left: 3px solid var(--color-dst); }

.tag-qb { color: var(--color-qb); }
.tag-rb { color: var(--color-rb); }
.tag-wr { color: var(--color-wr); }
.tag-te { color: var(--color-te); }
.tag-k  { color: var(--color-k); }
.tag-dst { color: var(--color-dst); }

.bg-tag-qb { background-color: var(--color-qb); }
.bg-tag-rb { background-color: var(--color-rb); }
.bg-tag-wr { background-color: var(--color-wr); }
.bg-tag-te { background-color: var(--color-te); }
.bg-tag-k  { background-color: var(--color-k); }
.bg-tag-dst { background-color: var(--color-dst); }

/* Team Roster Grid (tab 2) */
.rosters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.team-roster-box {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.roster-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.team-name-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.team-user-indicator {
  font-size: 0.65rem;
  background: var(--accent-primary);
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  font-weight: 600;
}

.roster-slot-row {
  display: grid;
  grid-template-columns: 45px 1fr;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  background: rgba(0, 0, 0, 0.1);
  font-size: 0.75rem;
  align-items: center;
}

.slot-label {
  font-weight: 700;
  color: var(--text-muted);
}

.slot-player-filled {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.slot-player-empty {
  color: var(--text-muted);
  font-style: italic;
}

/* Right Panel - Draft Assistant & Recommendations */
.assistant-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.recommendations-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.25rem;
}

.recs-scroll-list {
  flex: 1;
  overflow-y: auto;
  margin-top: 1rem;
}

.rec-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.rec-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  transform: translateX(2px);
}

.rec-rank-pill {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.50rem;
  border-bottom-left-radius: 8px;
}

.rec-card-header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.rec-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.rec-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: white;
}

.rec-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.rec-rationale {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 0.5rem;
}

/* Strategic Insights Box */
.insights-box {
  padding: 1rem 1.25rem;
  background: rgba(99, 102, 241, 0.03);
  border-top: 1px solid var(--border-color);
}

.insight-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.insight-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.insight-text {
  color: var(--text-secondary);
}

.insight-text strong {
  color: var(--text-primary);
}

/* Settings Modal Dialog Overlay */
dialog {
  border: none;
  background: transparent;
  outline: none;
}

dialog::backdrop {
  background-color: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: #0f1422;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  width: 90vw;
  max-width: 480px;
  color: var(--text-primary);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.select-control, .input-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.select-control:focus, .input-control:focus {
  border-color: var(--accent-primary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Tooltip / Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(20, 24, 33, 0.95);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success-icon {
  color: var(--color-rb);
}

/* Roster grid position colors and tags */
.flex-player-tag {
  background-color: var(--color-flex);
  color: #fff;
  border-radius: 4px;
  padding: 0 0.25rem;
  font-size: 0.6rem;
  font-weight: 800;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
  .dashboard-container {
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr 300px;
    height: auto;
    overflow: auto;
  }
  .player-pool-panel {
    grid-row: 1 / 3;
  }
  .assistant-panel {
    grid-column: 2 / 3;
    height: 300px;
  }
  body {
    overflow: auto;
    height: auto;
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .player-pool-panel {
    grid-row: auto;
    height: 400px;
  }
  .assistant-panel {
    grid-column: auto;
  }
  
  /* Mobile Header Burger menu layouts */
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    position: relative;
  }

  #btn-burger {
    display: flex !important;
  }

  .status-tracker {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .header-actions {
    display: none;
    position: absolute;
    top: 52px; /* Position below first row of header */
    right: 1rem;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    gap: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    z-index: 10000;
    width: 220px;
    align-items: stretch;
  }

  .header-actions.open {
    display: flex !important;
  }

  .header-actions .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
  }

  /* Make file label wrapper inside header-actions stretch as a block */
  .header-actions label.btn {
    display: flex;
    width: auto;
    margin: 0;
  }
}

/* --- Advanced Game Modes CSS --- */

/* Tiers Separators */
.tier-header {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, transparent 100%);
  border-left: 3px solid var(--accent-primary);
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 0.75rem 0.25rem 0.4rem 0.25rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tier-header-info {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Drafted Grey Out and visibility toggles */
.player-item.drafted {
  opacity: 0.35;
  background: rgba(0, 0, 0, 0.15);
  border-color: transparent !important;
  cursor: not-allowed;
  pointer-events: none;
}
.player-item.drafted:hover {
  transform: none;
  background: rgba(0, 0, 0, 0.15);
}
.player-item.drafted .player-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.drafted-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.toggle-wrapper input {
  cursor: pointer;
  accent-color: var(--accent-primary);
  width: 13px;
  height: 13px;
}

/* Bid dialog modals */
.bid-modal-meta {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.bid-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.bid-currency-symbol {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1rem;
}

.bid-input-control {
  padding-left: 1.6rem !important;
}

.bid-error-msg {
  color: var(--color-dst);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* --- Print Styling --- */
@media print {
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  /* Hide sidebars, buttons, headers, modals */
  header,
  .player-pool-panel,
  .assistant-panel,
  .tab-nav,
  .modal-actions,
  button,
  .btn,
  dialog,
  #toast-notification {
    display: none !important;
  }
  
  /* Adjust center panel layout for print */
  .dashboard-container {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  
  .center-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .tab-content, .tab-panel {
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
    height: auto !important;
  }
  
  /* For printing rosters cleanly */
  #panel-rosters {
    display: block !important;
  }
  
  #panel-board {
    display: none !important; /* Hide board grid, print rosters primarily */
  }

  .rosters-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    page-break-inside: auto !important;
  }

  .team-roster-box {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    border-radius: 6px !important;
    padding: 10px !important;
    page-break-inside: avoid !important;
    box-shadow: none !important;
  }

  .roster-header-meta {
    border-bottom: 2px solid #000000 !important;
    margin-bottom: 8px !important;
    padding-bottom: 4px !important;
  }

  .team-name-title {
    color: #000000 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
  }

  .roster-slot-row {
    border-bottom: 1px dashed #dddddd !important;
    padding: 3px 0 !important;
    font-size: 9pt !important;
  }

  .slot-label {
    color: #555555 !important;
    font-weight: 700 !important;
  }

  .slot-player-empty {
    color: #888888 !important;
    font-style: italic !important;
  }

  .slot-player-filled {
    color: #000000 !important;
  }

  /* For printing roster strength cleanly */
  #panel-strength {
    display: block !important;
  }
  
  .strength-leaderboard-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    page-break-inside: auto !important;
  }

  .strength-rank-card {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    padding: 8px 12px !important;
  }

  .strength-badge {
    background: #eeeeee !important;
    color: #000000 !important;
  }

  .strength-badge.badge-1 { background: #eab308 !important; color: #000000 !important; }
  .strength-badge.badge-2 { background: #cbd5e1 !important; color: #000000 !important; }
  .strength-badge.badge-3 { background: #cd7f32 !important; color: #ffffff !important; }

  .strength-team-name { color: #000000 !important; }
  .strength-manager { color: #555555 !important; }
  .strength-score-main { color: #000000 !important; }
  .strength-score-bench { color: #555555 !important; }
  .strength-bar-wrapper { background: #eeeeee !important; }
  .strength-bar { background: #555555 !important; }
  .pos-strength-badge {
    background: #eeeeee !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
  }

  /* For printing NFL depth charts cleanly */
  #panel-nfldepth {
    display: block !important;
  }
  
  .nfl-field {
    border: 2px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
  
  .field-node-circle {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
  }

  .field-node-name {
    color: #000000 !important;
    text-shadow: none !important;
  }
}

/* --- Roster Strength Standings styling (Screen Only) --- */
.strength-leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
  overflow-y: auto;
  max-height: 100%;
}

.strength-rank-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.strength-rank-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.strength-rank-card.rank-1 {
  border-color: rgba(234, 179, 8, 0.3);
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.08);
}

.strength-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.strength-badge.badge-1 {
  background: #eab308;
  color: #0f172a;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}

.strength-badge.badge-2 {
  background: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 0 10px rgba(203, 213, 225, 0.4);
}

.strength-badge.badge-3 {
  background: #cd7f32;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.strength-team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.strength-team-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.strength-manager {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.strength-graph-section {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.strength-score-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.strength-score-main {
  color: var(--accent-primary);
}

.strength-score-bench {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
}

.strength-bar-wrapper {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary) 0%, #38bdf8 100%);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.rank-1 .strength-bar {
  background: linear-gradient(90deg, #eab308 0%, #fef08a 100%);
}

.strength-badges-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pos-strength-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.pos-strength-badge.star {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.15);
}

/* --- NFL Depth Charts visual styles (Screen Only) --- */
.nfl-field {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 220px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1e3a1e 0%, #14532d 100%);
  border: 4px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 10px;
}

.nfl-field::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 10% 100%;
  pointer-events: none;
}

.nfl-field-lineup {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  z-index: 1;
}

.field-position-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.field-node-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  background: #0f172a;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transition: all 0.25s ease;
}

.field-node-circle.drafted {
  border-color: #64748b;
  box-shadow: none;
  background: #334155;
  color: #94a3b8;
}

.field-node-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  max-width: 90px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-node-name.drafted {
  color: #94a3b8;
  font-weight: 400;
  text-decoration: line-through;
}

.status-badge {
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.status-badge.available {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.status-badge.drafted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* --- Positional Run Warnings & Probability Meters --- */
.run-alert-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: pulseGlow 2s infinite ease-in-out;
  margin-bottom: 0.75rem;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); border-color: rgba(239, 68, 68, 0.6); }
  100% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.3); }
}

.recs-probability-meter {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.recs-probability-bar {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.recs-probability-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.prob-high { background: #22c55e; }
.prob-med { background: #eab308; }
.prob-low { background: #ef4444; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-animate {
  animation: spin 1.2s infinite linear !important;
}

.injury-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  display: inline-block;
  vertical-align: middle;
}
.injury-badge.status-out {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.injury-badge.status-ir {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.6);
}
.injury-badge.status-q {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.injury-badge.status-susp {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.4);
}

