body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f3d24;
  color: white;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #0a2e1b;
}

button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #00c26f;
  color: black;
  cursor: pointer;
  font-weight: bold;
}

main {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 20px;
  padding: 20px;
}

.pool,
.stats {
  background: #134f2c;
  padding: 10px;
  border-radius: 10px;
  max-height: 80vh;
  overflow-y: auto;
}

.player {
  background: #1c6b3e;
  padding: 8px;
  margin-bottom: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-info {
  display: flex;
  flex-direction: column;
}

.p-name {
  font-weight: bold;
}

.p-club {
  font-size: 0.75em;
  color: #aaddbb;
}

.p-role {
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
  font-weight: bold;
}

/* Field Slots */
.slot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.slot-name {
  font-weight: bold;
  font-size: 0.95em;
}

.slot-club {
  font-size: 0.75em;
  color: #ddd;
}

.player.active {
  background: #00c26f;
  color: black;
}

.field {
  background: linear-gradient(#0c6b1d, #064012);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.row-3 .slot {
  width: 30%;
}

.row-4 .slot {
  width: 22%;
}

.row-1 .slot {
  width: 30%;
}

.slot {
  height: 80px;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}

.slot.filled {
  background: rgba(0, 0, 0, 0.3);
  border-style: solid;
}

.add-player-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  background: #1c6b3e;
  padding: 10px;
  border-radius: 6px;
}

.add-player-form input,
.add-player-form select {
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #0f3d24;
  background: #eaeaea;
}

.add-player-form button {
  margin-top: 5px;
  background: #00ff88;
  color: #000;
}

.rules-info {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  font-size: 0.9em;
  color: #cceedd;
}

.rules-info summary {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 5px;
}

.rules-content p {
  margin: 5px 0;
}

.rules-content ul {
  padding-left: 20px;
  margin: 5px 0;
}