/* The .nav-item-fantasy rules (a green tint and a NEW badge on the
   'Upcoming Matches' nav item, site-wide) were removed on 2026-09-12.
   base.html linked this file as fantasy-assist.css from the day it was
   added (May 2025), so nothing here had ever loaded; when the link was
   fixed the badge appeared on every page for a feature over a year old
   and was dropped at my request. base.html still carries the class. */









/* Fantasy Assist specific styles */
.weights-form-container {
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.weights-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.weights-title h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.weights-title p {
  font-size: 0.9rem;
  color: #6b7280;
}

.weights-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.weight-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.weight-item label {
  font-size: 0.9rem;
  font-weight: 500;
}

.weight-item input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 1rem;
}

.weight-item-readonly input {
  background-color: #f3f4f6;
  color: #6b7280;
}

.weight-error {
  text-align: center;
  color: #dc2626;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background-color: #fee2e2;
  border-radius: 5px;
}

.weights-actions {
  text-align: center;
}

.update-weights {
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}

/* Fantasy Points Tables Styling */
.fantasy-points-container {
  margin-bottom: 3rem;
}

.team-heading {
  text-align: center;
  color: var(--primary-color);
  margin: 2rem 0 1.5rem;
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.team2-container .team-heading {
  color: var(--secondary-color);
}

.fantasy-component {
  margin-bottom: 2.5rem;
}

.fantasy-component h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.team2-container .fantasy-component h3 {
  color: var(--secondary-color);
}

.fantasy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.fantasy-table th,
.fantasy-table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.fantasy-table th {
  background-color: #f3f4f6;
  font-weight: 600;
  white-space: nowrap;
}

.fantasy-table th.highlight,
.fantasy-table td.highlight {
  background-color: #e6f2ff;
}

.team2-container .fantasy-table th.highlight,
.team2-container .fantasy-table td.highlight {
  background-color: #e6fff0;
}

.fantasy-table tr:hover {
  background-color: #f9fafb;
}

.fantasy-table .num {
  text-align: right;
}

.fantasy-table .player-name {
  font-weight: 500;
}

/* Responsive fixes for mobile */
@media (max-width: 768px) {

  
  .weights-inputs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .fantasy-table th,
  .fantasy-table td {
    font-size: 0.9rem;
    padding: 0.5rem 0.4rem;
  }
  
  /* Ensure sticky columns work */
  .sticky-column th:first-child,
  .sticky-column td:first-child {
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 10;
    box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
  }
  
  .sticky-column th:first-child {
    z-index: 11;
    background-color: #f3f4f6;
  }
}