.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "Noto Sans TC", sans-serif;
}

.pagination a,
.pagination button {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  background-color: white;
  font-weight: 600;
  font-size: 16px;
  width: 44px;
  height: 44px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  text-decoration: none;
}

.pagination a:hover,
.pagination button:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.pagination .active-page-btn {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
  font-weight: bold;
}

/* Modal Style */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  text-align: center;
  font-family: "Noto Sans TC", sans-serif;
}

.modal-box h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.modal-box input {
  width: 60%;
  padding: 8px;
  font-size: 16px;
  margin-top: 10px;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.modal-actions button {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.modal-actions button:first-child {
  background: #ccc;
  color: #000;
}

.modal-actions button:last-child {
  background: #0d6efd;
  color: #fff;
}

.error-text {
  color: red;
  margin-top: 10px;
  font-size: 14px;
}
