/**
 * Styles pour le tableau de bord Enseignant
 * 
 * @package Soft_Academia_SM
 * @since 1.0.0
 */

/* Les styles sont directement intégrés dans le template pour plus de cohérence et performances */
/* Ce fichier peut être utilisé pour des styles additionnels si nécessaire */

/* Reset de base pour le dashboard */
.saspm-teacher-dashboard-page .site-header,
.saspm-teacher-dashboard-page .site-footer,
.saspm-teacher-dashboard-page .site-navigation {
    display: none !important;
}

.saspm-teacher-dashboard-page .site-content {
    padding: 0 !important;
    margin: 0 !important;
}

.saspm-teacher-dashboard-page #primary {
    width: 100% !important;
    max-width: 100% !important;
}

/* Masquer la barre d'admin pour un affichage fullscreen */
body.saspm-teacher-dashboard-page {
    margin-top: 0 !important;
}

/* Scrollbar personnalisée pour le sidebar */
.saspm-teacher-sidebar::-webkit-scrollbar {
    width: 8px;
}

.saspm-teacher-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.saspm-teacher-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.saspm-teacher-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Animations supplémentaires */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.saspm-stat-card {
    animation: fadeIn 0.6s ease-out;
}

.saspm-stat-card:nth-child(1) { animation-delay: 0.1s; }
.saspm-stat-card:nth-child(2) { animation-delay: 0.2s; }

.saspm-course-card {
    animation: slideInUp 0.5s ease-out;
}

.saspm-course-card:nth-child(1) { animation-delay: 0.1s; }
.saspm-course-card:nth-child(2) { animation-delay: 0.2s; }
.saspm-course-card:nth-child(3) { animation-delay: 0.3s; }
.saspm-course-card:nth-child(4) { animation-delay: 0.4s; }

/* Empty state styling supplémentaire */
.saspm-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.saspm-empty-state .dashicons-welcome-learn-more {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .saspm-courses-grid {
        grid-template-columns: 1fr !important;
    }
    
    .saspm-course-card {
        margin-bottom: 15px;
    }
}

/* Print styles */
@media print {
    .saspm-teacher-sidebar,
    .saspm-quick-actions,
    .saspm-course-actions {
        display: none !important;
    }
    
    .saspm-teacher-dashboard {
        grid-template-columns: 1fr;
    }
    
    .saspm-course-card {
        page-break-inside: avoid;
    }
}

/* Hover effects pour les cours */
.saspm-course-card:hover .saspm-course-actions {
    opacity: 1;
    transform: translateY(0);
}

.saspm-course-actions {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Badge pour le statut des cours */
.saspm-course-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.saspm-course-status.active {
    background-color: #c6f6d5;
    color: #22543d;
}

.saspm-course-status.draft {
    background-color: #fed7d7;
    color: #742a2a;
}
