/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Header Styles ===== */
.header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
  animation: slideDown 0.6s ease;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
  font-size: 1.1em;
  opacity: 0.9;
}

/* ===== Table Styles ===== */
.table-wrapper {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: slideUp 0.6s ease;
}

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

thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

thead th {
  padding: 16px;
  text-align: left;
  font-size: 0.95em;
  border-bottom: 2px solid #5568d3;
}

tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: #f5f5f5;
}

tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

tbody td {
  padding: 14px 16px;
  color: #333;
}

/* ===== Table Cell Classes ===== */
.pos {
  font-weight: 700;
  color: #667eea;
  font-size: 1.1em;
}

.deelnemer {
  font-weight: 500;
  color: #333;
}

.totaal {
  font-weight: 600;
  color: #764ba2;
  font-size: 1.05em;
}

/* ===== Button Styles ===== */
.refresh-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 30px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.refresh-btn:active {
  transform: translateY(0);
}

/* ===== Status Messages ===== */
.loading {
  text-align: center;
  padding: 40px;
  color: white;
}

.error {
  background: #ff6b6b;
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  animation: shake 0.5s;
}

.last-update {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
  margin-top: 15px;
}

/* ===== Animations ===== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8em;
  }

  thead th {
    padding: 12px 8px;
    font-size: 0.85em;
  }

  tbody td {
    padding: 10px 8px;
  }

  table {
    font-size: 0.9em;
  }
}
