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


.round-tabs .btn:hover { background: #cfc0c0; }

.round-panel {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}


.Loppusijoitukset {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.player-card {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.player-card:hover {
    transform: scale(1.02);
}
.player-card .header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 8px;
}
.bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin: 8px 0;
}
.bar .fill {
    height: 100%;
    background-color: #4caf50;
    border-radius: 4px;
}
.bar.low .fill {
    background-color: #f44336;
}
.bar.mid .fill {
    background-color: #ff9800;
}
.bar.ok .fill {
    background-color: #4caf50;
}
.chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.chip {
    background-color: #eee;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}
#playerFilter {
    margin: 20px;
    padding: 8px;
    width: 300px;
    font-size: 1em;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

.tournament-select {
  font-size: 1em;
  padding: 6px;
  border-radius: 4px;
}


.round-panel {
  animation: fadeIn 0.5s ease-in-out;
  margin: 20px;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.player-card {
  background-color: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.player-card:hover {
  transform: scale(1.02);
}

.player-card .header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 8px;
}

.bar {
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  margin: 8px 0;
}

.bar .fill {
  height: 100%;
  background-color: #4caf50;
  border-radius: 4px;
}

.bar.low .fill { background-color: #f44336; }
.bar.mid .fill { background-color: #ff9800; }
.bar.ok .fill  { background-color: #4caf50; }

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  background-color: #eee;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.9em;
}

#playerFilter {
  margin: 20px;
  padding: 8px;
  width: 300px;
  font-size: 1em;
}

/* Tumma teema */
body.dark-theme {
  background-color: #222;
  color: #eee;
}

body.dark-theme .player-card {
  background-color: #333;
  color: #eee;
}

body.dark-theme .chip {
  background-color: #555;
}

/* Mobiilituki */
@media (max-width: 600px) {
  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  #playerFilter {
    width: 100%;
  }
}

.btn {
    background: #fff;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn--ghost {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}
.btn--ghost:hover {
    background: #333;
    color: #fff;
}

h1 { text-align:center; margin-bottom:20px; }

