* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  background: #f4f6f8;
  color: #1f2937;
  padding: 40px;
}

.container {
  max-width: 1200px;
  margin: auto;
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

h1 {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 600;
}


/* Formulário */
.upload-form {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.file-upload {
  position: relative;
  overflow: hidden;
}

.file-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload span {
  display: inline-block;
  padding: 12px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload span:hover {
  background: #eef2ff;
  border-color: #ef8c44;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: #111827; /* preto grafite */
  color: #F9FAFB;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
  background: #1F2937;
}

button:active {
  transform: scale(0.98);
}

/* Tabela */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f1f5f9;
}

th, td {
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
}

th {
  font-weight: 600;
  color: #475569;
}

tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s;
}

tbody tr:nth-child(even) {
  background: #f9fafb; /* cinza bem leve */
}

tbody tr:nth-child(odd) {
  background: #ffffff; /* branco */
}

tbody tr:hover {
  background: #eef2ff;
}

tbody tr:hover td {
  filter: brightness(0.97);
}

tbody tr:hover td {
  filter: brightness(0.97);
}

/* Vitórias */
th.v {
  background: #d1efdc;
}
td.v {
	background: #DCFCE7;
}
td.v, th.v {
  color: #166534;
  font-weight: 600;
}

/* Empates */
th.e {
  background: #ede9b6;
}
td.e {
  background: #FEF9C3;
}
td.e, th.e {
  color: #854D0E;
  font-weight: 600;
}

/* Derrotas */
th.d {
  background: #edd2d2;
}
td.d {
  background: #FEE2E2;
}
td.d, th.d {
  color: #7F1D1D;
  font-weight: 600;
}

/* Gols Feitos (GF) */
th.gf {
  background: #d6dcf3;
}
td.gf {
  background: #E0E7FF;
}
td.gf, th.gf {
  color: #3730A3;
  font-weight: 600;
}

/* Assistências (ASS) */
th.ass {
  background: #c2ede4;
}
td.ass {
  background: #CCFBF1;
}
td.ass, th.ass {
  color: #0F766E;
  font-weight: 600;
}

/* Jogador */
.player {
	font-size: 16;
	font-weight: bold;
}


/* Últimas Partidas */
.last-matches {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.win {
  background: #22c55e; /* verde */
}

.dot.draw {
  background: #facc15; /* amarelo */
}

.dot.loss {
  background: #ef4444; /* vermelho */
}

/* ===== DESTAQUE DE CLASSIFICAÇÃO ===== */

/* Top 4 – verde suave */
tbody tr:nth-child(-n + 4) {
  background-color: #ecfdf5; /* verde bem claro */
}

tbody tr:nth-child(-n + 4):hover {
  background-color: #d1fae5;
}

/* Últimos 4 – vermelho bem clarinho */
tbody tr:nth-last-child(-n + 2) {
  background-color: #fef2f2; /* vermelho suave */
}

tbody tr:nth-last-child(-n + 2):hover {
  background-color: #fee2e2;
}

/* ===== AJUSTES MOBILE ===== */
@media (max-width: 768px) {

  body {
    padding: 16px;
  }

  .container {
    padding: 16px;
    border-radius: 10px;
  }

  h1 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  /* Formulário */
  .upload-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .upload-form button {
    width: 100%;
  }

  /* Tabela */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 900px; /* força scroll horizontal */
  }

  th, td {
    padding: 10px 12px;
    font-size: 12px;
  }

  /* Nome fixo */
  td.player,
  th:first-child {
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 2;
    font-weight: 600;
  }

  thead th {
    top: 0;
    z-index: 3;
  }

  /* Últimas partidas menores */
  .last-matches {
    gap: 4px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}
