.csv-table-container {
  overflow-x: auto;
  margin: 0 0;
  background: #180c00;
}

.csv-table {
  width: auto;
  border-collapse: collapse;
  font-family: "Fira Code", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-stretch: condensed;
  font-optical-sizing: auto;
  letter-spacing: 0.1px;
  background: ##180c00;
  color: #e66f00;
  overflow: hidden;
}

.csv-table thead {
  background: #180c00;
  position: sticky;
  top: 0;
  z-index: 10;
}

.csv-table th {
  padding: 7px 2px 2px;
  text-align: left;
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  color: #e66f00;
  border-bottom: 5px solid #000000;
  user-select: none;
  position: relative;
  box-sizing: border-box;
}

.csv-table th:hover {
  background: #180c00;
}

.csv-table th .sort-indicator {
  margin-left: 0px;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.csv-table th:hover .sort-indicator {
  opacity: 0.6;
}

.csv-table td {
  padding: 7px 2px;
  border-bottom: 1px solid #000000;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.csv-table tbody tr {
  transition: background-color 0.2s ease;
}

.csv-table tbody tr:hover {
  background: #321900;
}

.csv-table tbody tr:last-child td {
  border-bottom: none;
}

/* Team logo styling */
.csv-table .team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
}

/* Optional: Smooth color transition when sorting changes gradient colors */
.csv-table td[style*="background-color"] {
  font-weight: 400;
  text-align: center;
  position: relative;
  transition: backround-color 2000ms ease-in-out;
}

/* Numeric columns alignment */
.csv-table td:not(:first-child):not(:nth-child(2)) {
  text-align: center;
}

/* First column (team names) styling */
.csv-table td:nth-child(2) {
  color: #e66f00;
}

/* Error message styling */
.error {
  color: #af0f00;
  padding: 20px;
  text-align: center;
  background: #180c00;
  border-left: 4px solid #af0f00;
}

/* Loading state */
.csv-table-loading {
  text-align: center;
  padding: 40px;
  color: #180c00;
  font-style: italic;
}

.csv-table-loading::after {
  content: '...';
  animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

.csv-table th:first-child,
.csv-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #180c00;
}

.csv-table th:first-child {
  z-index: 15; /* Higher z-index for header */
  background: #180c00;
}

.csv-table tbody tr:hover td:first-child {
  background: #321900;
}

/* Accessibility improvements */
.csv-table th:focus,
.csv-table td:focus {
  outline: 2px solid #e66f00;
  outline-offset: -2px;
}

/* Print styles */
@media print {
  .csv-table {
    background: white;
    color: black;
  }
  
  .csv-table th {
    background: #f0f0f0;
    color: black;
  }
  
  .csv-table tbody tr:hover {
    background: none;
  }
}
