/* teacher-dashboard.css — Teacher dashboard styling */

.teacher-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0.8rem;
  padding: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.teacher-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primaire);
}

.teacher-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--primaire);
}

.teacher-tab {
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
}

.teacher-tab[data-actif="1"] {
  color: var(--primaire);
  font-weight: 700;
}

.teacher-tab:hover {
  color: var(--primaire);
}

#ecran-teacher-dashboard {
  background: #f8f9fa;
  min-height: 100vh;
}

/* Modal styles for detail views */
#teacher-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#teacher-detail-modal > div {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive for tablets */
@media (max-width: 768px) {
  .teacher-card {
    padding: 1rem;
  }

  .teacher-tab {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  #teacher-detail-modal > div {
    padding: 1.5rem;
    width: 95%;
  }
}

/* Progress bar colors */
.progress-bar-success {
  background: var(--succes);
}

.progress-bar-warning {
  background: #FF9800;
}

.progress-bar-danger {
  background: #F44336;
}

/* Grid layouts for stats */
.teacher-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.teacher-stats-grid > .teacher-card {
  text-align: center;
}

/* Table styles for detailed analytics */
.teacher-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.teacher-table th,
.teacher-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.teacher-table th {
  background: #f5f5f5;
  font-weight: 600;
  color: var(--primaire);
}

.teacher-table tbody tr:hover {
  background: #f9f9f9;
}

/* Badge styles for status */
.teacher-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.teacher-badge--success {
  background: #D4EDDA;
  color: #155724;
}

.teacher-badge--warning {
  background: #FFF3CD;
  color: #856404;
}

.teacher-badge--info {
  background: #D1ECF1;
  color: #0c5460;
}

/* Form styling */
.teacher-form-group {
  margin-bottom: 1.5rem;
}

.teacher-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.teacher-form-group input,
.teacher-form-group select,
.teacher-form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
}

.teacher-form-group input:focus,
.teacher-form-group select:focus,
.teacher-form-group textarea:focus {
  outline: none;
  border-color: var(--primaire);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Button styles for teacher interface */
.btn-teacher-primary {
  background: var(--primaire);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-teacher-primary:hover {
  background: #1976D2;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-teacher-primary:active {
  transform: scale(0.98);
}

.btn-teacher-secondary {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

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

/* Color coding for performance levels */
.perf-excellent {
  color: var(--succes);
}

.perf-bon {
  color: #4CAF50;
}

.perf-acceptable {
  color: #FF9800;
}

.perf-faible {
  color: #F44336;
}
