/* Thème spécialisé pour les étudiants de Dembancane */

:root {
  /* Couleurs spécifiques à l'éducation sénégalaise */
  --dembacane-green: #2E8B57;
  --dembacane-gold: #685905;
  --dembacane-red: #DC143C;
  --education-blue: #1E3A8A;
  --success-green: #10B981;
  --warning-orange: #543703;
  
  /* Gradients éducatifs */
  --gradient-education: linear-gradient(135deg, var(--dembacane-green), var(--education-blue));
  --gradient-success: linear-gradient(135deg, var(--success-green), var(--dembacane-green));
  --gradient-warning: linear-gradient(135deg, var(--warning-orange), var(--dembacane-gold));
}

/* Badges spécialisés pour les catégories étudiantes */
.badge-cours { background: var(--gradient-education) !important; }
.badge-diplome { background: var(--gradient-success) !important; }
.badge-orientation { background: var(--gradient-warning) !important; }
.badge-stage { background: linear-gradient(135deg, #DC143C, #B91C1C) !important; }
.badge-bourse { background: linear-gradient(135deg, #0891B2, #0E7490) !important; }
.badge-vie { background: linear-gradient(135deg, #0c021e, #5B21B6) !important; }
.badge-projet { background: linear-gradient(135deg, #EC4899, #BE185D) !important; }
.badge-numerique { background: linear-gradient(135deg, #374151, #111827) !important; }
.badge-actualites { background: linear-gradient(135deg, #059669, #047857) !important; }

/* Cartes spécialisées pour étudiants */
.student-card {
  background: var(--card-background);
  color: var(--text-color);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(46, 139, 87, 0.1);
  overflow: hidden;
  position: relative;
}

body.dark-mode .student-card {
  background: var(--dark-card-bg) !important;
  color: var(--dark-text-primary) !important;
}

.student-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-education);
}

.student-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(46, 139, 87, 0.2);
}

/* Indicateurs de niveau académique */
.academic-level {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.level-lycee { background: linear-gradient(135deg, #FEF3C7, #FCD34D); color: #92400E; }
.level-licence { background: linear-gradient(135deg, #DBEAFE, #60A5FA); color: #1E40AF; }
.level-master { background: linear-gradient(135deg, #E0E7FF, #8B5CF6); color: #5B21B6; }
.level-doctorat { background: linear-gradient(135deg, #FEE2E2, #F87171); color: #DC2626; }

/* Statistiques étudiantes */
.student-stats {
  background: var(--gradient-education);
  color: white;
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.student-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.1"/></svg>');
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stat-item-enhanced {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.stat-item-enhanced:hover {
  transform: scale(1.05);
}

.stat-number-large {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dembacane-gold);
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Boutons d'action étudiants */
.btn-student-primary {
  background: var(--gradient-education);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-student-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(46, 139, 87, 0.4);
  color: white;
}

.btn-student-secondary {
  background: var(--gradient-warning);
  border: none;
  color: #000;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-student-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
  color: #000;
}

/* Alertes éducatives */
.alert-student-info {
  background: linear-gradient(135deg, #EBF8FF, #DBEAFE);
  border: none;
  border-left: 4px solid var(--education-blue);
  border-radius: 15px;
  padding: 1.5rem;
  color: #1E40AF;
}

.alert-student-success {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: none;
  border-left: 4px solid var(--success-green);
  border-radius: 15px;
  padding: 1.5rem;
  color: #065F46;
}

.alert-student-warning {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: none;
  border-left: 4px solid var(--warning-orange);
  border-radius: 15px;
  padding: 1.5rem;
  color: #92400E;
}

/* Timeline académique */
.academic-timeline {
  position: relative;
  padding: 2rem 0;
}

.academic-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-education);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 10px;
  width: 20px;
  height: 20px;
  background: var(--dembacane-gold);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 4px var(--dembacane-green);
}

.timeline-content {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 1px solid rgba(46, 139, 87, 0.1);
}

body.dark-mode .timeline-content {
  background: var(--dark-card-bg) !important;
  color: var(--dark-text-primary) !important;
}

/* Cartes de progression */
.progress-card {
  background: var(--card-background);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(46, 139, 87, 0.1);
  position: relative;
  overflow: hidden;
}

body.dark-mode .progress-card {
  background: var(--dark-card-bg) !important;
  color: var(--dark-text-primary) !important;
}

.progress-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-success);
}

.progress-bar-custom {
  height: 12px;
  border-radius: 6px;
  background: #E5E7EB;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-success);
  border-radius: 6px;
  transition: width 1s ease;
}

/* Styles spéciaux pour le calendrier étudiant */
.student-calendar-event {
  background: var(--gradient-education) !important;
  border-left: 3px solid var(--dembacane-gold);
  position: relative;
}

.student-calendar-event::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--dembacane-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.academic-event-badge {
  background: var(--gradient-education);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.discussion-item {
  background: var(--card-background);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

body.dark-mode .discussion-item {
  background: var(--dark-card-bg) !important;
  color: var(--dark-text-primary) !important;
}

.discussion-item:hover {
  transform: translateX(5px);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .student-stats {
    padding: 1.5rem;
  }
  
  .stat-number-large {
    font-size: 2rem;
  }
  
  .btn-student-primary,
  .btn-student-secondary {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .academic-timeline::before {
    left: 20px;
  }
  
  .timeline-item::before {
    left: 12px;
    width: 16px;
    height: 16px;
  }
}

/* Animations spéciales */
.bounce-in {
  animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.slide-up {
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Icônes éducatives personnalisées */
.icon-education {
  width: 60px;
  height: 60px;
  background: var(--gradient-education);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

.icon-success {
  background: var(--gradient-success);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.icon-warning {
  background: var(--gradient-warning);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
  color: #000;
}