/* ===== TEACHER PROFILE STYLES ===== */

/* Cours en attente section */
.cours-en-attente {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cours-en-attente h3 {
  color: #333;
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.cours-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 25px;
}

.liste-demandes {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.no-demandes {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-style: italic;
}

.demande-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 15px;
  padding: 20px;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.demande-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.demande-info h4 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: #1f2937;
}

.demande-info p {
  margin: 3px 0;
  font-size: 14px;
  color: #6b7280;
}

.demande-actions {
  display: flex;
  gap: 10px;
}

.btn-accepter, .btn-refuser {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-accepter {
  background: #10b981;
  color: white;
  border: 2px solid #10b981;
}

.btn-accepter:hover {
  background: #059669;
  border-color: #059669;
  transform: scale(1.05);
}

.btn-refuser {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.btn-refuser:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Teacher Benefits */
.teacher-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.benefit-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 15px;
  padding: 25px;
  color: #333;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: #3b82f6;
}

.benefit-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.benefit-card h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.benefit-card p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Teacher Stats */
.teacher-stats {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
}

.teacher-stats h4 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

/* Matieres Grid */
.matieres-disponibilites {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.matieres-disponibilites h3 {
  color: #333;
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.disponibilites-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 25px;
}

/* Autorisation info box */
.autorisation-info {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  border-radius: 15px;
  padding: 25px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.info-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.info-content h4 {
  margin: 0 0 10px 0;
  color: #92400e;
  font-size: 18px;
  font-weight: 600;
}

.info-content p {
  margin: 0 0 15px 0;
  color: #78350f;
  line-height: 1.6;
}

.btn-demande-autorisation {
  background: white;
  color: #92400e;
  border: 2px solid #fbbf24;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 15px;
}

.btn-demande-autorisation:hover {
  background: #fef3c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.matieres-autorisees-title {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 15px 0;
}

.no-matieres-autorisees {
  text-align: center;
  color: #999;
  padding: 30px;
  font-style: italic;
  background: #f9fafb;
  border-radius: 10px;
  border: 2px dashed #e5e7eb;
}

.matiere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.matiere-item {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.matiere-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.matiere-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.matiere-status {
  font-size: 14px;
  font-weight: 600;
  min-width: 120px;
}

.matiere-indisponible {
  color: #ef4444;
}

.matiere-disponible {
  color: #10b981;
}

.matiere-label {
  flex: 1;
  font-weight: 500;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .teacher-benefits {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .matiere-grid {
    grid-template-columns: 1fr;
  }
  
  .demande-item {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .demande-actions {
    width: 100%;
    justify-content: center;
  }
  
  .cagnotte-container {
    padding: 20px;
  }
}

/* Cagnotte styles */
.cagnotte-container {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 30px;
  margin: 30px 0;
  color: #333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cagnotte-header h3 {
  margin: 0 0 5px 0;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.cagnotte-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.cagnotte-montant {
  text-align: center;
  padding: 30px 0;
  border-top: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
  margin: 20px 0;
}

.montant-value {
  font-size: 56px;
  font-weight: 800;
  color: #10b981;
  text-shadow: none;
}

.cagnotte-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.detail-item {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-label {
  font-size: 14px;
  color: #6b7280;
}

.detail-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

/* Remuneration card */
.remuneration-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #10b981;
  border-radius: 15px;
  padding: 25px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}

.remuneration-icon {
  font-size: 56px;
  flex-shrink: 0;
}

.remuneration-info h4 {
  margin: 0 0 10px 0;
  color: #065f46;
  font-size: 20px;
  font-weight: 600;
}

.remuneration-montant {
  font-size: 36px;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 10px;
}

.remuneration-montant span {
  font-size: 18px;
  color: #059669;
  font-weight: 600;
}

.remuneration-info p {
  margin: 0;
  color: #047857;
  line-height: 1.6;
  font-size: 14px;
}

.stat-card-money {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.stat-card-money .stat-icon {
  filter: brightness(1.2);
}

.stat-card-money .stat-value,
.stat-card-money .stat-label,
.stat-card-money .stat-unit {
  color: white;
}

/* Responsive for remuneration */
@media (max-width: 768px) {
  .remuneration-card {
    flex-direction: column;
    text-align: center;
  }
  
  .remuneration-montant {
    font-size: 28px;
  }
}

/* Timer and notifications */
.timer-text {
  font-weight: 600;
  color: #059669;
  margin-top: 5px;
}

.timer-countdown {
  color: #10b981;
  font-weight: 700;
  font-size: 16px;
}

.auto-refuse-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fef2f2;
  border: 2px solid #ef4444;
  color: #991b1b;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  z-index: 10000;
  animation: slideIn 0.3s ease-out;
  font-weight: 600;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.demande-item[data-request-id] {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
