@charset "UTF-8";
/* table.css — table layout, cell alignment, scrollable, fonts */
.table-container {
  border-radius: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.table th,
.table td {
  text-align: center;
  vertical-align: middle;
}

#roster {
  border-collapse: collapse;
  width: 100%;
  font-family: "Monaspace Neon", monospace;
  text-align: center; /* center all cell content */
}

#roster th,
#roster td {
  padding: 0.4em 0.6em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  vertical-align: middle;
  white-space: nowrap; /* prevent wrapping vertically */
}

#roster th {
  background-color: #141414;
  color: #f5f5ff;
  position: sticky;
  top: 0;
  z-index: 2;
}

#roster td.rating-cell {
  font-size: 1.2em;
  cursor: pointer;
}

/* sorting arrow */
.sort-arrow {
  font-size: 0.8em;
  margin-left: 4px;
}

/* filter icon */
.filter-icon {
  cursor: pointer;
  margin-left: 4px;
  color: #ccc;
}

.filter-icon:hover {
  color: #fff;
}

.column-header-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.column-header-search {
  width: 100%;
}

.column-header-search-input {
  width: 100%;
  min-width: 0;
}

/* column filter dropdown */
.column-filter {
  position: absolute;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  z-index: 1100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.9rem;
  display: none;
  padding: 0.4em;
}

.column-filter.open {
  display: block;
}

.column-filter label {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.player-stats-filter-panel {
  display: flex;
  flex-direction: column;
}

.player-stats-filter-heading {
  letter-spacing: 0.08em;
}

.player-stats-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}

.player-stats-filter-item {
  position: relative;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.player-stats-filter-item-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5f5ff;
}

.column-filter.player-stats-filter-menu {
  top: calc(100% + 0.35rem);
  left: 0;
  width: 220px;
  z-index: 1200;
}

.player-stats-grid {
  position: relative;
  border-collapse: collapse;
}

.player-stats-grid th,
.player-stats-grid td {
  background: #141414;
}

.player-stats-grid .sticky-column {
  position: sticky;
  background: #141414;
}

.player-stats-grid th.sticky-column {
  top: 0;
  z-index: 5;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.player-stats-grid td.sticky-column {
  top: 0;
  z-index: 3;
}

.player-stats-grid .sticky-column-1 {
  left: var(--sticky-column-left-1, 0);
}

.player-stats-grid .sticky-column-2 {
  left: var(--sticky-column-left-2, 0);
}

.player-stats-grid .sticky-column-0 {
  left: var(--sticky-column-left-0, 0);
}

.table-row-number,
.table-row-number-header {
  min-width: 3rem;
  width: 3rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f5f5ff;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.table-row-number-header {
  background: rgba(0, 0, 0, 0.35);
}

/* generic editable-row affordance */
.editable-row {
  transition: background 0.12s ease;
}

.editable-row:hover {
  background: rgba(122, 0, 181, 0.08);
  cursor: pointer;
}

.table-meta {
  font-size: 0.9rem;
  color: #cfcfcf;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.table-meta-indicator {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #eaeaea;
  min-height: 2rem;
  font-weight: 600;
}

#roster .row-number-cell {
  min-width: 3rem;
  font-weight: 600;
  color: #9c9c9c;
  border-right: 1px solid #333;
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.15);
  text-align: center;
  letter-spacing: 0.05em;
}

#roster th.row-number-header {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #1f1f1f;
  min-width: 3rem;
}

#roster tr.team-colored td.team-name-cell {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#roster tr.team-colored td.row-number-cell {
  border-left: 4px solid var(--team-primary, transparent);
}

.team-name-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 120px;
}

.team-cell-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-pill {
  min-width: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--team-primary, #7b3fff);
  color: var(--team-secondary, #0b0b0b);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.65);
}

.dataset-panel .team-pill-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.dataset-panel .team-pill-label {
  font-size: 0.75rem;
  color: #cfcfcf;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-team-selector {
  gap: 0.35rem;
}

.schedule-team-selector label {
  font-size: 0.75rem;
  color: #cfcfcf;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.schedule-team-panel {
  width: 260px;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.4rem;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 1200;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.schedule-team-panel label {
  cursor: pointer;
}

.schedule-team-panel .form-check-input {
  margin: 0;
}

.schedule-team-win,
.schedule-team-loss,
.schedule-team-tie {
  border-radius: 0.45rem;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
  border: none;
  box-shadow: none;
  background-clip: padding-box;
}

.dataset-panel table td.schedule-team-win,
#roster td.schedule-team-win {
  background: rgba(40, 167, 69, 0.65);
  color: #d4ffed;
}

.dataset-panel table td.schedule-team-loss,
#roster td.schedule-team-loss {
  background: rgba(220, 53, 69, 0.65);
  color: #ffdae0;
}

.dataset-panel table td.schedule-team-tie,
#roster td.schedule-team-tie {
  background: rgba(13, 110, 253, 0.65);
  color: #d8e7ff;
}

.rating-star {
  transition: color 0.15s ease, transform 0.15s ease, text-shadow 0.15s ease;
  display: inline-flex;
  padding: 0.1rem;
  border-radius: 50%;
}

.rating-star:hover {
  transform: scale(1.2);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5ff;
}

.status-chip.status-act {
  background: rgba(40, 167, 69, 0.2);
  border-color: rgba(40, 167, 69, 0.45);
  color: #7cf6d0;
}

.status-chip.status-ir {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.45);
  color: #ffe49b;
}

.status-chip.status-ps {
  background: rgba(13, 110, 253, 0.2);
  border-color: rgba(13, 110, 253, 0.45);
  color: #a5c6ff;
}

.status-chip.status-sus {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.45);
  color: #ff9aa2;
}

.status-chip.status-default {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #f0f0f0;
}

.status-chip.pos-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #f0f0f0;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fce9b3;
}

.gradient-cell {
  transition: background 0.25s ease;
}

#roster tbody tr:nth-child(odd) td {
  background-color: rgba(20, 20, 20, 0.05);
}

#roster tbody tr:nth-child(even) td {
  background-color: rgba(20, 20, 20, 0.03);
}

#roster td.row-number-cell {
  background-color: rgba(0, 0, 0, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #dcdcdc;
}

.column-filter {
  background: #141414;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 0.5rem;
  width: 220px;
  box-sizing: border-box;
}

.column-filter .filter-action-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.column-filter .filter-action-row button {
  flex: 1;
}

.column-filter label {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #f5f5ff;
}

.column-filter input[type=checkbox] {
  accent-color: #7b3fff;
}

#pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  padding: 0.25rem;
}

.page-btn {
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #f5f5ff;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.page-btn.active {
  background: #7b3fff;
  border-color: #7b3fff;
}

.page-btn:hover {
  background: rgba(123, 63, 255, 0.25);
  border-color: rgba(123, 63, 255, 0.4);
}

.pagination-controls {
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.pagination-controls label {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .table-meta {
    gap: 0.4rem;
    justify-content: flex-start;
  }
  #pagination {
    justify-content: flex-start;
  }
  .pagination-controls {
    justify-content: space-between;
  }
  .table-container {
    border-radius: 0.35rem;
  }
}
