/* Grades page specific styles */
.grades-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Vazirmatn", sans-serif;
  color: #333;
}

.grades-container h2 {
  text-align: right;
  margin-bottom: 20px;
  color: #444;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Changed from flex-end to center */
  align-items: flex-end; /* Keeps labels aligned with selects */
  gap: 15px;
  margin-bottom: 30px;
  direction: rtl;
}

.filter-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the label and select in the group */
  gap: 5px;
}

.filter-group label {
  font-size: 14px;
  color: #555;
  text-align: center;
}

.filters-row select {
  width: 200px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 16px;
  text-align: right;
  direction: rtl;
}

.filters-row select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.grades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.grade-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: right;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: #333;
  display: block;
}

.grade-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.grade-item h4 {
  margin: 0 0 10px;
  color: #2a2a2a;
  font-size: 1.2rem;
}

.grade-info p {
  margin: 5px 0;
  color: #666;
  font-size: 0.9rem;
}

.not-found-message {
  text-align: center;
  width: 100%;
  color: #999;
  font-size: 1.2rem;
  margin-top: 50px;
}
/* Grades page specific styles */
/* ... سایر استایل‌ها ... */

.grades-container #pagination-container {
  display: flex;
  justify-content: center; /* وسط چین کردن دکمه‌ها */
  margin-top: 30px;
  gap: 10px; /* فاصله بین دکمه‌ها */
}

#pagination-container button {
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px 15px; /* پدینگ برای بزرگ کردن دکمه */
  font-size: 1.1rem; /* سایز فونت */
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

#pagination-container button:hover:not(.active) {
  background-color: #f0f0f0;
  border-color: #999;
}

#pagination-container button.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
  cursor: default; /* غیرفعال کردن کلیک روی دکمه صفحه جاری */
}

#pagination-container button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
