* {
  font-family: 'Tajawal', sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #1c1f26;
  color: #f1f1f1;
  scroll-behavior: smooth;
}

header {
  background: #2a2d35;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  margin-left: 10px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: #f1f1f1;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  color: #ff8800;
}

main {
  text-align: center;
}

section {
  padding: 3rem 1rem;
}

input, select, button {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0.75rem auto;
  padding: 0.6rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
}

button {
  background: #ff8800;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #e66a00;
}

.players-table {
  width: 100%;
  border-collapse: collapse;
  background: #2c2f36;
  color: #f9f9f9;
  text-align: center;
}

.players-table th,
.players-table td {
  padding: 1rem;
  border-bottom: 1px solid #444;
}

.players-table tr:nth-child(even) {
  background-color: #24272d;
}

.rating-stars i {
  color: #ff8800;
}

.search-box {
  width: 90%;
  max-width: 400px;
  padding: 0.6rem;
  border-radius: 0.5rem;
  border: none;
  margin-bottom: 2rem;
}

#filterForm {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

#filterForm select {
  background: #2c2f36;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #444;
  font-size: 1rem;
  min-width: 200px;
}

.table-wrapper {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #333;
  border-radius: 10px;
  margin: auto;
  width: 90%;
  max-width: 900px;
}

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #2a2d35;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
}

.popup-content p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.hidden {
  display: none;
}
