@font-face {
  font-family: 'thmanyah sans';
  src: url('../fonts/thmanyahsans/thmanyahsans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'thmanyah sans';
  src: url('../fonts/thmanyahsans/thmanyahsans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'thmanyah sans';
  src: url('../fonts/thmanyahsans/thmanyahsans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'thmanyah sans';
  src: url('../fonts/thmanyahsans/thmanyahsans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'thmanyah sans';
  src: url('../fonts/thmanyahsans/thmanyahsans-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'thmanyah sans', sans-serif;
  direction: rtl;
  background-color: #f4f7f6;
  color: #333;
  margin: 0;
  padding: 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 30px;
}

.school-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

h1 {
  color: #2c3e50;
  margin: 0;
}

/* Search Section */
.search-section {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group label {
  font-weight: 500;
  color: #34495e;
}

.input-group input,
.input-group select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #3498db;
}

#inquiry-btn {
  padding: 12px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: inherit;
}

#inquiry-btn:hover {
  background-color: #2980b9;
}

#inquiry-btn:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.error-message {
  color: #e74c3c;
  margin-top: 15px;
  text-align: center;
  display: none;
  font-weight: bold;
}

/* Result Section */
.result-section {
  max-width: 800px;
  margin: 30px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.student-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ecf0f1;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.info-row {
  display: flex;
  gap: 10px;
  font-size: 18px;
}

.info-label {
  font-weight: bold;
  color: #2c3e50;
}

.info-value {
  color: #16a085;
  font-weight: 500;
}

/* Table Design */
.table-group-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background-color: #34495e;
  padding: 10px 15px;
  border-radius: 5px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.total-title {
  background-color: #e67e22;
}

.result-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.grid-row {
  display: flex;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.grid-row:nth-child(even) {
  background-color: #f1f2f6;
}

.grid-row:hover {
  background-color: #e8f4f8;
}

.grid-cell {
  padding: 12px 15px;
  flex: 1;
}

.key-cell {
  font-weight: bold;
  color: #2c3e50;
  border-left: 1px solid #ddd;
  max-width: 40%;
}

.value-cell {
  font-weight: 500;
  font-size: 16px;
}

.total-grid .grid-row {
  background-color: #fdf3e7;
  border-color: #f39c12;
}

.total-grid .grid-row:nth-child(even) {
  background-color: #fae5d3;
}

.total-grid .key-cell {
  border-left: 1px solid #f39c12;
}

.result-value-cell {
  font-weight: bold;
  font-size: 18px;
}
