/* Teacher Profile Styles */

.teacher-profile-container {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.profile-image-wrapper {
  flex: 1;
  min-width: 200px;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}

.profile-info {
  flex: 2;
  min-width: 300px;
}

.profile-title {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

.profile-subtitle {
  color: #666;
  margin-bottom: 15px;
  font-size: 16px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.profile-field {
  color: #999;
  font-size: 12px;
  margin-bottom: 5px;
}

.profile-value {
  color: #333;
  font-weight: 600;
}

.section-divider {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
  margin-top: 20px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.verification-documents {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.document-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.document-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #0052cc;
}

.document-image {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 4px;
  cursor: pointer;
  background-color: #f9f9f9;
}

.document-hint {
  color: #666;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

/* Status Badges */
.status-badge {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.status-approved {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-pending {
  background-color: #fff3e0;
  color: #e65100;
}

.status-rejected {
  background-color: #ffebee;
  color: #c62828;
}

.status-active {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-inactive {
  background-color: #ffebee;
  color: #c62828;
}

/* Teacher Reviews */
.teacher-reviews-section {
  direction: rtl;
}

.reviews-panel {
  background: #fff;
}

.reviews-title {
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  text-align: right;
}

.reviews-list {
  display: flex;
  flex-direction: column;
}

.review-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.review-item:first-child {
  padding-top: 0;
}

.review-item-hidden {
  opacity: 0.68;
}

.review-item-deleted {
  background: #f8fafc;
  border-radius: 8px;
  padding-inline: 12px;
}

.review-meta-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.review-time {
  color: #b0b0b0;
  font-size: 14px;
  white-space: nowrap;
}

.review-rating-wrap {
  align-items: center;
  display: flex;
  gap: 8px;
}

.review-rating {
  color: #6b7280;
  direction: ltr;
  font-size: 14px;
  white-space: nowrap;
}

.review-star {
  color: #f7b500;
}

.review-avatar {
  border-radius: 50%;
  height: 32px;
  object-fit: cover;
  width: 32px;
}

.review-status {
  border-radius: 999px;
  font-size: 12px;
  padding: 2px 8px;
}

.review-status-approved {
  background: #e8f5e9;
  color: #2e7d32;
}

.review-status-pending {
  background: #fff3e0;
  color: #e65100;
}

.review-status-deleted {
  background: #f3f4f6;
  color: #6b7280;
}

.review-comment {
  color: #8a8f98;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 4px;
  text-align: right;
}

.review-reasons {
  color: #9a3412;
  font-size: 12px;
  margin: 4px 0;
}

.review-delete-reason {
  color: #991b1b;
  font-size: 12px;
  font-weight: 600;
  margin: 4px 0;
}

.review-moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.review-action-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 0;
}

.review-toggle-button {
  color: #006be6;
}

.review-toggle-button:hover {
  color: #004ea8;
  text-decoration: underline;
}

.review-warning-button {
  color: #b45309;
}

.review-warning-button:hover {
  color: #92400e;
  text-decoration: underline;
}

.review-danger-button {
  color: #c62828;
}

.review-danger-button:hover {
  color: #991b1b;
  text-decoration: underline;
}

.reviews-empty-state {
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  color: #8a8f98;
  padding: 24px;
  text-align: center;
}

/* Action Buttons */
.action-buttons {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-success {
  background-color: #2e7d32;
  color: white;
}

.btn-success:hover {
  background-color: #1b5e20;
}

.btn-danger {
  background-color: #c62828;
  color: white;
}

.btn-danger:hover {
  background-color: #ad1457;
}

.btn-warning {
  background-color: #ff9800;
  color: white;
}

.btn-warning:hover {
  background-color: #e65100;
}

.btn-primary {
  background-color: #0052cc;
  color: white;
}

.btn-primary:hover {
  background-color: #0043a3;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.image-modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-image {
  width: 100%;
  height: 500px;
  object-fit: contain;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
}

.modal-close:hover {
  background-color: #f0f0f0;
}

/* Student Profile Styles */
.student-profile-container {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
