/* ==================== پنل استاد ==================== */

.teacher-dashboard {
  animation: fadeIn 0.4s ease;
}

.teacher-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.teacher-stat-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.teacher-stat-card i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 10px;
}

.teacher-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

/* جدول دانش‌آموزان */
.students-table-container {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.students-table {
  width: 100%;
  border-collapse: collapse;
}

.students-table th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 12px;
  text-align: center;
}

.students-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.students-table tr:hover {
  background: var(--light);
}

.view-student-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
}

/* مودال جزئیات دانش‌آموز */
.student-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.student-modal-content {
  background: white;
  border-radius: 24px;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 25px;
}

.student-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.close-modal {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* فرم تعیین تکلیف */
.assignment-form {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}

.assignment-form input,
.assignment-form select,
.assignment-form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
}

.assignment-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
}
