header img{
    width:100px;
}

header {
    display:flex;
    align-items: center;
    margin-bottom:30px;
}


header h1{
    margin:0;
    padding-left:20px
}body {
  margin: 0;
  padding: 24px;
  background: #111318;
  color: #fff;
  font-family: Arial, sans-serif;
}

.diablo-app {
  max-width: 1200px;
  margin: 0 auto;
  background: #1b1f27;
  border-radius: 14px;
  padding: 20px;
  box-sizing: border-box;
}

.diablo-app * {
  box-sizing: border-box;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.toolbar-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f0c96d;
  font-size: 16px;
}

.selected-counter-label {
  color: #cfd7e6;
}

.toolbar button,
.teams-toolbar button,
.export-toolbar button,
.match-actions button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  background: #d6a439;
  color: #111;
}

.toolbar button:hover,
.teams-toolbar button:hover,
.export-toolbar button:hover,
.match-actions button:hover {
  opacity: .92;
}

.table-wrap {
  overflow-x: auto;
}

#players-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #222834;
}

#players-table th,
#players-table td {
  border: 1px solid #3a4354;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

#players-table th {
  background: #2d3544;
  color: #f0c96d;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .03em;
}

#players-table td {
  background: #222834;
}

#players-table tr.is-selected td {
  background: #4b3b12;
}

#players-table .row-index {
  width: 60px;
  text-align: center;
  font-weight: 700;
  color: #f0c96d;
}

#players-table input[type="text"],
#players-table input[type="number"],
#players-table select {
  width: 100%;
  border: 1px solid #4a5469;
  border-radius: 6px;
  background: #12161e;
  color: #fff;
  padding: 8px 10px;
  font-size: 14px;
}

#players-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.delete-row {
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
  background: #b13232;
  color: #fff;
}

.summary-wrap {
  margin-top: 22px;
}

.summary-wrap label {
  display: block;
  margin-bottom: 8px;
  color: #f0c96d;
  font-weight: 700;
}

#selected-summary,
#discord-export {
  width: 100%;
  border: 1px solid #4a5469;
  border-radius: 8px;
  background: #12161e;
  color: #fff;
  padding: 12px;
  resize: vertical;
}

.status {
  margin-top: 14px;
  min-height: 20px;
  color: #cfd7e6;
  font-size: 14px;
}

.status.ok {
  color: #8ee28e;
}

.status.error {
  color: #ff8d8d;
}

.teams-generator,
.league-generator,
.export-generator {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #3a4354;
}

.teams-generator h2,
.league-generator h2,
.export-generator h2 {
  margin: 0 0 14px;
  color: #f0c96d;
  font-size: 20px;
}

.teams-toolbar,
.export-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.teams-toolbar label {
  font-weight: 700;
}

.teams-toolbar select {
  border: 1px solid #4a5469;
  border-radius: 8px;
  padding: 10px 12px;
  background: #12161e;
  color: #fff;
}

.teams-output,
.league-output {
  display: grid;
  gap: 18px;
}

.team-card,
.round-card,
.standings-card {
  background: #222834;
  border: 1px solid #3a4354;
  border-radius: 12px;
  padding: 14px;
}

.team-card h3,
.round-card h3,
.standings-card h3 {
  margin: 0 0 10px;
  color: #f0c96d;
}

.team-meta {
  margin: 0 0 12px;
  color: #cfd7e6;
  font-size: 14px;
}

.team-card table,
.round-card table,
.standings-card table {
  width: 100%;
  border-collapse: collapse;
}

.team-card th,
.team-card td,
.round-card th,
.round-card td,
.standings-card th,
.standings-card td {
  border: 1px solid #3a4354;
  padding: 8px;
  text-align: left;
}


#teams-output td{
	width:25%;
}

.team-card th,
.round-card th,
.standings-card th {
  background: #2d3544;
  color: #f0c96d;
}

.teams-warning {
  color: #ffb3b3;
  font-weight: 700;
}

.match-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.match-actions button {
  padding: 8px 10px;
}

.match-row.is-played td {
  background: #1f2e1f;
}

.bye-label {
  color: #f0c96d;
  font-weight: 700;
}

.standings-output {
  margin-bottom: 18px;
}