body {
  background-color: black;
}

#roster-table {
  background: #000000;
  border-spacing: 0;
  border-collapse: collapse;
  font-family: inherit;
  color: #ffffffb9;
  margin: 0;
  padding: 0;
}

#roster .lcars-container,
#rosterhist .lcars-container {
  margin: 20px auto;
  width: 90%;
  max-width: 1400px;
  background: #000000;
  border-radius: 20px;
  box-shadow: 0 0 20px orange;
  overflow: hidden;
  position: relative;
}

#roster .lcars-header,
#rosterhist .lcars-header {
  background: orange;
  color: #000000;
  padding: 15px;
  font-size: 2em;
  font-weight: bold;
  border-radius: 20px 20px 0 0;
  text-align: center;
  position: relative;
}

#roster #roster-container,
#rosterhist #roster-history-container {
  position: relative;
  padding: 12px;
}

#roster .column-toggles {
  position: relative;
  z-index: 50;
  display: block;
  margin: 0 0 10px 0;
  padding: 10px 12px;
  background: linear-gradient(145deg, #111, #222);
  border: 2px solid orange;
  border-radius: 12px;
  box-shadow:
    0 4px 12px rgba(255, 153, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow-x: auto;
  white-space: nowrap;
}

#roster .column-toggles label {
  background: linear-gradient(145deg, orange, orange);
  padding: 6px 12px;
  border-radius: 20px;
  border: 2px solid #000000;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.2s ease;
  font-size: 0.8em;
  letter-spacing: 1px;
  margin-right: 8px;
  cursor: pointer;
  display: inline-block;
}

#roster .column-toggles label:hover {
  box-shadow: 0 0 15px #ffcc00;
  transform: translateY(-1px);
}

#roster .table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
  border: 2px solid rgba(255, 153, 0, 0.35);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
}

#roster table#roster-table {
  width: max-content;
  min-width: 1400px;
  border-collapse: collapse;
}

#roster .table-scroll table#roster-table {
  min-width: 2600px;
}

#roster table#roster-table th,
#roster table#roster-table td {
  border-right: 1px solid rgba(255,204,0,0.2);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,204,0,0.10);
  resize: horizontal;
  overflow: hidden;
}

#roster table#roster-table thead th {
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(2px);
  z-index: 5;
}

#roster table#roster-table tbody tr:nth-child(odd) {
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
}

#roster table#roster-table tbody tr:nth-child(even) {
  background: linear-gradient(90deg, #0f3460 0%, #1a1a2e 100%);
}

#roster .stat-bar {
  display: inline-block;
  height: 10px;
  border-radius: 5px;
}

#roster .stat-power { background: #ffcc00; }
#roster .stat-helps { background: #00ccff; }

#roster .lcars-container::before,
#rosterhist .lcars-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  z-index: 1;
}

#roster .lcars-container::after,
#rosterhist .lcars-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,204,0,0.03) 2px,
    rgba(255,204,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* Tournament highlighting */
#roster-table th[data-column="bracket"],
#roster-table th[data-column="score"],
#roster-table th[data-column="tasks"],
#roster-table th[data-column="activeTask"],
#roster-table th[data-column="position"] {
  border-left: 3px solid #ff9900 !important;
  box-shadow:
    0 0 8px #ff9900,
    inset 0 0 8px rgba(255, 153, 0, 0.3) !important;
  background: transparent !important;
  color: #fff !important;
  font-weight: bold;
}

#roster-table td[data-column="bracket"],
#roster-table td[data-column="score"],
#roster-table td[data-column="tasks"],
#roster-table td[data-column="activeTask"],
#roster-table td[data-column="position"] {
  border-left: 2px solid #ff6600 !important;
  box-shadow: inset 0 0 6px rgba(255, 153, 0, 0.4) !important;
  background: rgba(255, 153, 0, 0.05) !important;
  color: #fff !important;
}

#roster .tournament-score-bar {
  display: inline-block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #00ff88, #ffcc00, #ff6600);
  box-shadow: 0 0 8px currentColor;
  margin-right: 8px;
  vertical-align: middle;
}

#roster-table .column-resizer:hover {
  background: rgba(255,204,0,0.8) !important;
}

#roster-table,
#roster-table thead tr,
#roster-table tbody tr {
  border-spacing: 0;
}
#roster-table th,
#roster-table td {
  border: 1px solid rgba(255,204,0,0.3);
}
#roster-table th:last-child,
#roster-table td:last-child {
  border-right: none;
}

#roster-inner {
  max-height: none;
  overflow: visible;
  position: relative;
}

.roster-table-viewport {
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
  width: 100%;
}

.roster-pagination {
  align-items: center;
  color: #ff9900;
  display: flex;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: bold;
  gap: 10px;
  justify-content: center;
  margin: 0 0 12px;
  min-width: max-content;
}

.roster-pagination:last-child {
  margin: 12px 0 0;
}

.roster-page-button {
  align-items: center;
  background: #000000;
  border: 1px solid #ff9900;
  border-radius: 50%;
  color: #ff9900;
  cursor: pointer;
  display: inline-flex;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: bold;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  width: 34px;
}

.roster-page-button:hover:not(:disabled),
.roster-page-button:focus-visible:not(:disabled) {
  background: #ff9900;
  box-shadow: 0 0 12px rgba(255, 153, 0, 0.65);
  color: #000000;
  outline: none;
}

.roster-page-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.roster-page-status {
  min-width: 210px;
  text-align: center;
}

#roster-history-inner {
  position: relative;
}

.roster-history-empty {
  color: #ff9900;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  margin: 0;
  padding: 15px;
  text-align: center;
}
