body {
  font-family: Arial, sans-serif;
  background: #f0f0f0;
  margin: 0;
  padding: 1rem;
}
h1 {
  text-align: center;
  color: #2c3e50;
}
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.tab-button {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  cursor: pointer;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
}
.tab-button.active {
  background: #2980b9;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.table-wrapper {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: white;
}
th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}
th {
  background: #34495e;
  color: white;
}

.form-container {
  max-width: 500px;
  margin-top: 20px;
  padding: 20px;
  background-color: #fafafa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

input[type="text"],
input[type="date"] {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.error-box {
  background-color: #ffe6e6;
  border: 1px solid #ff4d4d;
  color: #cc0000;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 4px;
  font-size: 14px;
}
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  align-items: flex-end;
}

.filter-form .form-group {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
}

.filter-form label {
  font-weight: bold;
  margin-bottom: 6px;
}

.filter-form select {
  padding: 6px;
  border-radius: 4px;
  font-size: 14px;
}

.filter-form .hint {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* Stacked filter layout */
.filter-form.stacked {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-form .form-group {
  display: flex;
  flex-direction: column;
}

.filter-form label {
  font-weight: bold;
  margin-bottom: 6px;
}

.filter-form select {
  padding: 6px;
  font-size: 14px;
  border-radius: 4px;
}
.form-card {
  max-width: 500px;
  margin: 30px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-card h2 {
  margin-bottom: 10px;
}

.form-card label {
  font-weight: bold;
  margin-bottom: 4px;
}

.form-card input,
.form-card select {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-card button {
  margin-top: 10px;
}

.input-block {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  box-sizing: border-box;
}
.compact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-end;
  max-width: 600px;
  padding: 1rem;
}

.compact-form .form-group {
  flex: 1 1 100%;
}
/* Admin Stats Filter Styling */
#filterForm.form-card {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  width: 100%;
}

#filterForm label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#filterForm select {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
}
.readonly-field input[readonly] {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
}
.button.secondary {
  background-color: #eee;
  color: #333;
  border: 1px solid #ccc;
}

@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  td {
    position: relative;
    padding-left: 50%;
  }
  td::before {
    position: absolute;
    left: 1rem;
    font-weight: bold;
  }
}
/* Player Stats Tab - Clean Mobile Formatting */
.player-stats-section {
  background: white;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.player-stats-section h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}
.player-stats-section table {
  margin-top: 0.5rem;
}
