/* Base styling */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fb;
  color: #222;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

/* Headings */
h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Filters */
label {
  margin-right: 0.5rem;
  font-weight: 500;
}

select {
  margin-right: 1rem;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
}

th {
  background-color: #f1f3f5;
  color: #333;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

td {
  border-bottom: 1px solid #e2e2e2;
}

/* Pagination */
#pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

#pagination button {
  background-color: #f0f0f0;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#pagination button:hover {
  background-color: #e2e2e2;
}

#pagination button.active {
  background-color: #007BFF;
  color: #fff;
  font-weight: bold;
}

#pagination span {
  align-self: center;
  padding: 0 0.3rem;
  font-size: 0.9rem;
  color: #888;
}

/* Message */
#resultMessage {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 400;
  color: #333;
}

#resultMessage strong {
  font-weight: 600;
  color: #007BFF;
}

.infobox {
  margin-top: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.grid li {
  background: #f2f2f2;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  transition: background 0.2s;
}
.grid li:hover {
  background: #e0e0e0;
}
.grid a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}