/* Extrait de teacher-dashboard.html. Ordre historique : 16. */
/* ========== STYLES SUPERVISION LIVE - VERSION PRO ========== */

/* Boutons de filtres */
.supervision-filter-btn {
    background: #f3f4f6;
    color: #4b5563;
    border: 2px solid transparent;
}

.supervision-filter-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.supervision-filter-btn.active {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    border-color: #0d9488;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* Cartes élèves - REDESIGN COMPLET LISIBLE */
.student-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.student-card.sos::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.student-card.stagnant::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.student-card.active::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.student-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

/* Avatar */
.student-card .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Barre de progression REDESIGN */
.progress-bar {
    background: #e5e7eb;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.4);
}

/* Badges statut LISIBLES */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge.sos {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.badge.stagnant {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 2px solid #fcd34d;
}

.badge.active {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 2px solid #6ee7b7;
}

/* Bouton action */
.action-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Animation entrée des cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.student-card {
    animation: fadeInUp 0.4s ease-out backwards;
}

.student-card:nth-child(1) { animation-delay: 0.05s; }
.student-card:nth-child(2) { animation-delay: 0.1s; }
.student-card:nth-child(3) { animation-delay: 0.15s; }
.student-card:nth-child(4) { animation-delay: 0.2s; }
.student-card:nth-child(5) { animation-delay: 0.25s; }
.student-card:nth-child(6) { animation-delay: 0.3s; }

/* Textes cartes - CONTRASTE AMÉLIORÉ */
.student-card h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.student-card p {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.student-card .progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.student-card .progress-label span {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

.student-card .progress-label .percentage {
    color: #10b981;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .student-card {
        padding: 16px;
    }
    
    .student-card .avatar {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}
