* {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  text-decoration: none;
  list-style: none;
  background-color: transparent;
  width: auto;
}

body {
  display: grid;
  font-family: sans-serif;
}

/* NAVIGATION */
nav {
  display: flex;
  justify-content: space-between; /* Logo left, menu right */
  align-items: center;
  background-color: #323232;
  padding: 0 20px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

nav img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

nav li {
  display: flex;
  align-items: center;
  font-family: sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  height: 50px;
  padding: 0 20px;
  white-space: nowrap;
}

nav li a {
  color: #fff;
  text-decoration: none;
}

#player-search {
  margin-left: 10px;
  padding: 5px;
  border-radius: 4px;
  border: none;
}

/* Main section for the player table */
.stats-table-section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.table-container {
  overflow-x: auto;
}

#players-table-container table {
  width: 95%;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.95rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#players-table-container thead {
  background-color: #007a33;
  color: white;
}

#players-table-container th {
  padding: 12px 15px;
  text-align: left;
}

#players-table-container td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #players-table-container table {
    font-size: 0.85rem;
  }

  #players-table-container th,
  #players-table-container td {
    padding: 10px;
  }
}

/* Style default DataTables sorting icons */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
  font-family: 'Font Awesome 6 Free', Arial, sans-serif;
  font-weight: 900;
  margin-left: 8px;
  color: #ffffff;
  opacity: 0.7;
}

table.dataTable thead .sorting:after {
  content: '\f0dc'; /* Font Awesome sort icon */
}

table.dataTable thead .sorting_asc:after {
  content: '\f0de'; /* Sort up */
}

table.dataTable thead .sorting_desc:after {
  content: '\f0dd'; /* Sort down */
}

/* FOOTER */
footer {
  background-color: #e6e8ec;
  text-align: center;
  font-family: sans-serif;
  color: #000;
  padding-top: 10px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

footer ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

footer ul li img {
  width: 20px;
  height: 20px;
}

footer a {
  color: #000;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .data-box {
  background-color: #000;
  color: #fff;
  padding: 1rem;
  margin: 1rem auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

footer .data-box .text-xs {
  font-size: 0.75rem;
  text-transform: uppercase;
}

footer .data-box img {
  width: 64px; /* match w-16 */
}

footer .policy-links {
  margin: 1rem 0;
  font-size: 1rem;
}

footer .copyright {
  padding: 1rem 0;
  font-size: 0.875rem;
}
footer .py-8 img {
  width: 15px;
}

footer .w-16 {
  width: 50px;
}