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

.container {
  width: 100%;
}

.filters {
  padding: 1.25rem;

  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.refresh-btn {
  background-color: #49b2d4;
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  border-radius: 25px !important;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  margin-left: auto;
}

.refresh-btn:hover {
  background-color: #3a9dc0;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.filter-group label {
  font-weight: 600;
  color: #333;
}

.filter-group select,
.filter-group input {
  padding: 0.5rem 0.75rem;
  border: 2px solid #ddd;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  min-width: 7.5rem;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #49b2d4;
}

.tabs {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0 1.25rem;
  background-color: transparent;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background-color: #e0e0e0;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #181e33;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 8px;
}

.tab-btn:hover {
  background-color: #49b2d4;
  color: #ffffff;
}

.tab-btn.active {
  background-color: #181e33;
  color: #ffffff;
}

.loading {
  text-align: center;
  padding: 3.75rem;
  color: #666;
  font-size: 1.25rem;
}

#results-container {
  padding: 0;

}

tbody{
  
border-left: 1px solid #e0e0e0;
border-right: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
}


.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  
}

.results-table th {
  background-color: #181e33;
  color: white;
  padding: 0.9375rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.results-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  font-weight: normal;
  font-size: 0.9em;
  background-color: #fbfbfb;
}

.results-table tbody tr:hover td {
  background-color: #f1f1f1;
}

/* Ranking number styling */
.results-table td:first-child {
  color: #181e33;
  width: 3.75rem;
  text-align: center;
}

/* Medal styling for top 3 */
.results-table tbody tr:nth-child(1) td:first-child {
  color: #FFD700;
}

.results-table tbody tr:nth-child(2) td:first-child {
  color: #C0C0C0;
}

.results-table tbody tr:nth-child(3) td:first-child {
  color: #CD7F32;
}

/* Card colors */
.card {
  display: inline-block;
  width: 1.875rem;
  height: 1.25rem;
  border-radius: 0.1875rem;
  border: 1px solid #ccc;
}

.card.white {
  background-color: #ffffff;
  border: 1px solid #999;
}

.card.yellow {
  background-color: #FFD700;
}

.card.red {
  background-color: #dc3545;
}

.card-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.no-data {
  text-align: center;
  padding: 3.75rem;
  color: #999;
  font-size: 1.125rem;
}

.error {
  background-color: #ffebee;
  color: #c62828;
  padding: 1.25rem;
  border-radius: 0.375rem;
  margin: 1.25rem;
}

.nationality {
  color: #666;
  text-align: center;
}

.nationality .flag-icon {
  width: 1.5rem;
  height: 1.125rem;
}

.athlete-name {
  color: #333;
}

.points {
  color: #181e33;
}

/* Center align specific columns */
.results-table th:nth-child(3),
.results-table td:nth-child(3),
.results-table th:nth-child(4),
.results-table td:nth-child(4),
.results-table th:nth-child(5),
.results-table td:nth-child(5),
.results-table th:nth-child(6),
.results-table td:nth-child(6) {
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .tabs {
    overflow-x: auto;
  }

  .tab-btn {
    font-size: 0.875rem;
    padding: 0.75rem;
    white-space: nowrap;
  }

  .results-table th,
  .results-table td {
    padding: 0.5rem 0.375rem;
  }

  #results-container {
    overflow-x: auto;
  }

  .filters {
    padding: 0.9375rem;
  }
}
