* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #FFD700;
  color: #0d0d0d;
  min-height: 100vh;
}

header {
  background: #000000;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 4px solid #CC0000;
}

header h1 {
  font-size: 1.6rem;
  color: #FFD700;
  letter-spacing: 1px;
}

header .subtitle {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 2px;
}

nav {
  margin-left: auto;
}

nav a {
  color: #FFD700;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 7px 16px;
  border: 2px solid #CC0000;
  border-radius: 4px;
  font-weight: 700;
  background: #CC0000;
  transition: all 0.2s;
}

nav a:hover {
  background: #aa0000;
  border-color: #aa0000;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px;
}

h2 {
  font-size: 1.1rem;
  color: #0d0d0d;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #CC0000;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

/* Naam sectie */
.name-section {
  background: #454545;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 4px 4px 0 #333;
}

.name-section .name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.name-section label {
  font-weight: 700;
  color: #FFD700;
  white-space: nowrap;
  font-size: 1rem;
}

.name-section input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  background: #FFD700;
  border: 2px solid #CC0000;
  border-radius: 6px;
  color: #0d0d0d;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.name-section input:focus {
  border-color: #FFD700;
  outline: 2px solid #FFD700;
}

.name-hint {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 8px;
}

/* Rangschikking */
.leaderboard {
  background: #454545;
  border: 2px solid #333;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 4px 4px 0 #333;
}

.leaderboard table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard th {
  background: #333;
  color: #FFD700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  text-align: left;
}

.leaderboard td {
  padding: 13px 16px;
  border-top: 1px solid #555;
  color: #f0f0f0;
}

.rank {
  font-size: 0.85rem;
  color: #aaa;
  width: 32px;
  font-weight: 700;
}

.rank-1 { color: #FFD700; }
.rank-2 { color: #ccc; }
.rank-3 { color: #cd7f32; }

tr.my-row td {
  background: #4a3d00;
}

.pts {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFD700;
  text-align: right;
}

.pts-detail {
  font-size: 0.8rem;
  color: #aaa;
}

/* Match kaarten */
.match-card {
  background: #454545;
  border: 2px solid #333;
  border-left: 5px solid #CC0000;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 3px 3px 0 #333;
  transition: box-shadow 0.15s, transform 0.15s;
}

.match-card:hover {
  box-shadow: 5px 5px 0 #333;
  transform: translateY(-1px);
}

.match-card.played {
  border-left-color: #666;
  opacity: 0.85;
  box-shadow: 2px 2px 0 #333;
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.match-teams {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f0f0;
}

.match-date {
  font-size: 0.8rem;
  color: #aaa;
}

.match-result {
  font-size: 0.95rem;
  color: #FFD700;
  background: #CC0000;
  padding: 4px 14px;
  border-radius: 4px;
  font-weight: 700;
}

.match-result.pending {
  color: #aaa;
  background: #555;
  font-weight: 400;
}

/* Pronostiek invoer */
.prediction-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.prediction-row label {
  font-size: 0.85rem;
  color: #ccc;
  white-space: nowrap;
  font-weight: 600;
}

.score-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-inputs input[type="number"] {
  width: 56px;
  padding: 8px;
  text-align: center;
  background: #FFD700;
  border: 2px solid #454545;
  border-radius: 6px;
  color: #0d0d0d;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s;
}

.score-inputs input[type="number"]:focus {
  border-color: #CC0000;
}

.score-inputs .dash {
  color: #ccc;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Knoppen */
.btn {
  padding: 8px 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: #CC0000;
  color: #FFD700;
  border-color: #CC0000;
}

.btn-primary:hover {
  background: #aa0000;
  border-color: #aa0000;
}

.btn-danger {
  background: #454545;
  color: #CC0000;
  border-color: #CC0000;
}

.btn-danger:hover {
  background: #CC0000;
  color: #FFD700;
}

.btn-secondary {
  background: #555;
  color: #f0f0f0;
  border-color: #666;
}

.btn-secondary:hover {
  background: #666;
}

.played-label {
  font-size: 0.82rem;
  color: #aaa;
  font-style: italic;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
}

.badge-gold { background: #FFD700; color: #0d0d0d; }
.badge-green { background: #2a7a00; color: #FFD700; }
.badge-red { background: #CC0000; color: #FFD700; }

/* Admin stijlen */
.form-section {
  background: #454545;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 28px;
  box-shadow: 4px 4px 0 #333;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 6px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  background: #FFD700;
  border: 2px solid #555;
  border-radius: 6px;
  color: #0d0d0d;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #CC0000;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

/* Admin match kaart */
.admin-match-card {
  background: #454545;
  border: 2px solid #333;
  border-left: 5px solid #CC0000;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 3px 3px 0 #333;
}

.admin-match-card .match-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.result-section {
  background: #383838;
  border: 2px solid #555;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.result-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFD700;
  font-weight: 800;
  margin-bottom: 10px;
}

.result-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-form input[type="number"] {
  width: 64px;
  padding: 10px;
  text-align: center;
  background: #FFD700;
  border: 2px solid #555;
  border-radius: 6px;
  color: #0d0d0d;
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s;
}

.result-form input:focus {
  border-color: #CC0000;
}

.result-form .dash {
  color: #ccc;
  font-size: 1.3rem;
  font-weight: 700;
}

.result-saved {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.result-saved .score-display {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFD700;
  background: #CC0000;
  padding: 6px 20px;
  border-radius: 6px;
  letter-spacing: 3px;
}

.preds-section {
  border-top: 1px solid #555;
  padding-top: 10px;
  margin-top: 4px;
}

.preds-title {
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 700;
}

.pred-item {
  display: inline-block;
  margin: 3px 8px 3px 0;
  font-size: 0.82rem;
  color: #ccc;
}

/* Gokken van anderen */
.others-toggle {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #555;
}

.btn-toggle {
  background: none;
  border: none;
  color: #FFD700;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}

.btn-toggle:hover {
  color: #ffe033;
}

.others-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.other-pred {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: #383838;
  border-radius: 6px;
  border-left: 3px solid #555;
}

.other-pred-me {
  border-left-color: #FFD700;
  background: #4a3d00;
}

.other-name {
  font-size: 0.88rem;
  color: #ccc;
  min-width: 100px;
  font-weight: 600;
}

.other-pred-me .other-name {
  color: #FFD700;
}

.other-score {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f0f0;
  min-width: 50px;
}

/* Inline bewerformulier */
.edit-form {
  background: #383838;
  border: 2px solid #FFD700;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.edit-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.edit-form-row .form-group {
  min-width: 140px;
}

/* Login kaart */
.login-card {
  max-width: 420px;
  margin: 60px auto 0;
  background: #454545;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 5px 5px 0 #333;
}

.login-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-hint {
  font-size: 0.78rem;
  color: #888;
  margin-top: 14px;
  line-height: 1.5;
}

/* Header nav knop */
.btn-nav {
  background: none;
  border: 1px solid #666;
  border-radius: 4px;
  color: #aaa;
  font-size: 0.85rem;
  padding: 5px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-nav:hover {
  border-color: #CC0000;
  color: #f0f0f0;
}

/* Gebruikerskaarten */
.user-card {
  background: #454545;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 3px 3px 0 #333;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f0;
}

.user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Lege staat */
.empty-state {
  text-align: center;
  color: #888;
  padding: 40px;
  font-style: italic;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #454545;
  color: #FFD700;
  padding: 12px 20px;
  border-radius: 8px;
  border-left: 4px solid #FFD700;
  font-size: 0.9rem;
  z-index: 999;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-weight: 600;
}

.toast.success { border-color: #2a7a00; color: #90ee60; }
.toast.error { border-color: #CC0000; color: #ff9999; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
