/* General resets */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  opacity: 0.025; /* Adjust this value as needed */
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.3); /* semi-transparent black overlay */
  background-blend-mode: darken;
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ee8eb4; /* fallback color */
  margin: 0;
  padding: 0;
  color: #000;
  
  background-image: url('https://raw.githubusercontent.com/RoumyaDas/SPL/main/background.png'); 
  /* keep this only if you're using ::before */
}



.footnote {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
  font-style: italic;
}

.tabs button {
  background-color: #e6f0ff;  /* light sky blue */
  border: 1px solid #5a8ad6;
  color: #004080;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  padding: 10px 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.tabs button:hover {
  background-color: #c0d4ff;
}

.tabs button.active {
  background-color: #0050c8;
  color: white;
  border-color: #0044aa;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}


/* Tab containers */
.tab-content {
  display: none;
  padding-top: 10px;
}

.main-tab.active {
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
  border-bottom: 2px solid #000;
}
/* Stats Tab Visibility */
#stats.tab-content {
  display: none;
}

#stats.tab-content.active {
  display: block;
}

/* Stats Tab Button Styling */
.main-tab[data-tab="stats"] {
  /* Match your existing tab style */
  padding: 10px 18px;
  margin: 0 4px 4px 0;
  background-color: #e6f0ff;  /* light sky blue */
  border: 1px solid #5a8ad6;
  color: #004080;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;

}
   
  

.main-tab[data-tab="stats"].active {
  background-color: #4CAF50;
  color: white;
}



.tab-content.active {
  display: block;
}

/* Subtab contents */
.season-subtab-content {
  display: none;
  background-color: #eaf2ff; /* sky blue */
  padding: 16px;
  border-radius: 8px;
}
.season-subtab-content.active {
  display: block;
}


/* Pre block */
.subtab-pre-content {
  white-space: pre-wrap; 
  background: #eaf2ff; /* sky blue to match parent */
  padding: 6px; 
  border: 1px solid #ccc; 
  /* height: 300px; */
  /* overflow-y: auto; */
  height: auto !important;
  overflow-y: visible !important;
  border-radius: 4px;
}




/* Stats Tab Styles */
#stats .tabs button {
  padding: 10px 18px;
  margin: 0 4px 4px 0;
  background-color: #e6f0ff;  /* light sky blue */
  border: 1px solid #5a8ad6;
  color: #004080;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}


#stats .tabs button.active {
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
}

#statsSearch {
  padding: 8px;
  margin-bottom: 10px;
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#stats-table-container table {
  width: 100%;
  border-collapse: collapse;
}

#stats-table-container th, 
#stats-table-container td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-size: 12px;  /* or any smaller size like 11px or 10px */
}

#stats-table-container th {
  background-color: #f2f2f2;
  cursor: pointer;
}

#stats-table-container tr:nth-child(even) {
  background-color: #f9f9f9;
}

#stats-table-container tr:hover {
  background-color: #f1f1f1;
}

/*special section tab styling*/

#special .tabs button {
  display: inline-block;
  padding: 10px 18px;
  margin-right: 6px;
  border: 1px solid #5a8ad6;
  background-color: #e6f0ff;
  color: #004080;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

#special .tabs button:hover {
  background-color: #c0d4ff;
}

#special .tabs button.active {
  background-color: #0050c8;
  color: white;
  border-color: #0044aa;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

#special table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
}

#special th {
  background-color: #0074D9;
  color: white;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

#special th:hover {
  background-color: #005bb5;
}

#special td {
  padding: 10px 16px;
  border-bottom: 1px solid #dde4f2;
  font-size: 14px;
  vertical-align: middle;
  color: #222;
}

#special td:first-child {
  font-size: 13.5px;
  font-weight: 600;
  color: #003366;
  white-space: nowrap;
}

#special tbody tr:hover {
  background-color: #f1f9ff;
}

#specialSearch {
  padding: 8px 14px;
  width: 250px;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid #a3b1d1;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#specialSearch:focus {
  border-color: #005bb5;
  box-shadow: 0 0 6px rgba(0, 91, 181, 0.5);
}



/* Records tab */
#records {
  background-color: #ffe7ce; /* a distinct pastel tone */
  padding: 20px;
  min-height: 600px;
  border-radius: 8px;
}

#recordsSearch {
  padding: 8px 14px;
  width: 250px;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid #a3b1d1;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#recordsSearch:focus {
  border-color: #d18400;
  box-shadow: 0 0 6px rgba(209, 132, 0, 0.5);
}

#records table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border: 1px solid #aaa;
  margin-top: 12px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
}

#records th, #records td {
  border: 1px solid #ccc;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}

#records th {
  background-color: #ffdaaa;
  color: #333;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

#records tr:nth-child(even) {
  background-color: #f9f9f9;
}

#records tr:hover {
  background-color: #fff6e6;
}


/* NEWS tab */
.news-flex {
  display: flex;
  gap: 24px;
}

.news-left {
  width: 300px;
  background-color: #f3f4fa;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid #ccc;
}

.news-card {
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  color: #002244;
  transition: background 0.2s;
}

.news-card:hover {
  background-color: #e1e9ff;
}

.news-right {
  flex: 1;
  background: #fff;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.news-detail-title {
  margin-top: 0;
  color: #003366;
  font-size: 18px;
  font-weight: bold;
}

.news-detail-body {
  margin-top: 12px;
  white-space: pre-wrap;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
}

#newsSearch {
  padding: 8px 12px;
  margin-bottom: 12px;
  width: 300px;
  font-size: 14px;
  border: 1px solid #aaa;
  border-radius: 6px;
  outline: none;
  transition: box-shadow 0.2s ease;
}

#newsSearch:focus {
  border-color: #0074D9;
  box-shadow: 0 0 6px rgba(0, 116, 217, 0.3);
}

#news-pagination button {
  background-color: #e6f0ff;
  border: 1px solid #5a8ad6;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

#news-pagination button:hover:enabled {
  background-color: #c0d4ff;
}

#news-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.news-pagination-row {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.news-pagination-row button {
  background-color: #e6f0ff;
  border: 1px solid #5a8ad6;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.news-pagination-row button:hover:enabled {
  background-color: #c0d4ff;
}

.news-pagination-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}



/* Container for Career tab */
#careerSection, #career {
  background-color: #eaf2ff;
  padding: 20px;
  min-height: 600px;
  box-sizing: border-box;
  border-radius: 8px;
}

/* Career Sub-tabs */
.career-subtab {
  display: inline-block;
  padding: 10px 18px;
  margin-right: 6px;
  border: 1px solid #5a8ad6;
  background-color: #e6f0ff;
  color: #004080;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.career-subtab:hover {
  background-color: #c0d4ff;
}

.career-subtab.active {
  background-color: #0050c8;
  color: white;
  border-color: #0044aa;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.pagination-buttons button.active {
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
  border: 1px solid #388E3C;
}


/* Career table styling */
#career table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
}

/* Table header */
#career th {
  background-color: #0074D9;
  color: white;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

#career th:hover {
  background-color: #005bb5;
}

/* Table cells */
#career td {
  padding: 10px 16px;
  border-bottom: 1px solid #dde4f2;
  font-size: 14px;
  vertical-align: middle;
  color: #222;
}

/* First column - player names */
#career td:first-child {
  font-size: 13.5px;
  font-weight: 600;
  color: #003366;
  white-space: nowrap;
}

/* Row hover effect */
#career tbody tr:hover {
  background-color: #f1f9ff;
}

/* Search box styling */
#careerSearch {
  padding: 8px 14px;
  width: 250px;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid #a3b1d1;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#careerSearch:focus {
  border-color: #005bb5;
  box-shadow: 0 0 6px rgba(0, 91, 181, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  #career {
    padding: 10px;
  }

  #career th, #career td {
    padding: 8px 10px;
    font-size: 13px;
  }

  #careerSearch {
    width: 100%;
  }
}

#schedule .tabs button {
  margin: 4px 4px 0 0;
  background-color: #e6f0ff;  /* light sky blue */
  border: 1px solid #5a8ad6;
  color: #004080;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  padding: 10px 18px;
}

#schedule .tabs button.active {
  background-color: #58e687;
  color: white;
  font-weight: bold;
}

.schedule-table-container {
  display: none;
  margin-top: 15px;
}

.schedule-table-container.active {
  display: block;
}

.schedule-table-container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.schedule-table-container th, 
.schedule-table-container td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.schedule-table-container th {
  background-color: #f4f4f4;
}

.schedule-table-container tr:nth-child(even) {
  background-color: #f9f9f9;
}



/* Combined Points Table Styles */
#combined {
  background-color: #eaf2ff;
  padding: 20px;
  min-height: 600px;
  box-sizing: border-box;
  border-radius: 8px;
}

#combined table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
}

#combined th {
  background-color: #0074D9;
  color: white;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

#combined th:hover {
  background-color: #005bb5;
}

#combined td {
  padding: 10px 16px;
  border-bottom: 1px solid #dde4f2;
  font-size: 14px;
  vertical-align: middle;
  color: #222;
}

#combined td:first-child {
  font-size: 13.5px;
  font-weight: 600;
  color: #003366;
  white-space: nowrap;
}

#combined tbody tr:hover {
  background-color: #f1f9ff;
}

#combinedSearch {
  padding: 8px 14px;
  width: 250px;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid #a3b1d1;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#combinedSearch:focus {
  border-color: #005bb5;
  box-shadow: 0 0 6px rgba(0, 91, 181, 0.5);
}

.combined-points-subtab-content {
  display: none;
}
.combined-points-subtab-content.active {
  display: block;
}
.combined-points-subtab.active {
  background-color: #444;
  color: white;
}

/* Optional: Ensure new tab content matches others */
#player-mappings table {
  border-collapse: collapse;
  width: 100%;
}
#player-mappings th, #player-mappings td {
  border: 1px solid #ccc;
  padding: 5px;
  text-align: left;
}


#squads .tabs button {
  padding: 10px 16px;
  margin-right: 6px;
  border: 1px solid #5a8ad6;
  background-color: #e6f0ff;
  color: #004080;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

#squads .tabs button:hover {
  background-color: #c0d4ff;
}

#squads .tabs button.active {
  background-color: #0050c8;
  color: white;
  border-color: #0044aa;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.squad-table-container {
  display: none;
  margin-top: 15px;
}

.squad-table-container.active {
  display: block;
}

.squad-table-container table {
  width: 100%;
  border-collapse: collapse;
}

.squad-table-container th,
.squad-table-container td {
  font-size: 9px;  /* font inside the table */
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.squad-table-container th {
  background-color: #f4f4f4;
  cursor: pointer;
}

.squad-table-container tr:nth-child(even) {
  background-color: #f9f9f9;
}

.squad-table-container tr:hover {
  background-color: #f1f1f1;
}


.csv-table-output,
.schedule-table-container,
.career-table,
.squad-table-container {
  background-color: #cedffa; /* or any other sky tone */
  border-radius: 8px;
  padding: 16px;
}


/* === Wes Anderson Tab Styling === */

/* For #stats tab */
#stats {
  background-color: #f8c7cc; /* Wes pink */
}

/* For #schedule tab */
#schedule {
  background-color: #919067; /* yellow-green */
}

/* For #career tab */
#career {
  background-color: #d6a83f; /* mustard */
}

/* For #about tab */
#about {
  background-color: #a385a9; /* pink-ish */
}

/* For tables in #special */
#special table {
  background-color: #fae7b5; /* tan */
}

/* Table headers in #combined */
#combined th {
  background-color: #694f4f; /* deep brown */
  color: #fff;
}


/* === Column filter inputs === */
th .col-filter {
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  padding: 2px 4px;
}

th .num-range {
  display: flex;
  gap: 4px;
}

th .num-range > input {
  width: 100%;
}
