.panel-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 3rem;
    text-align: left;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.dashboard-header p {
    color: var(--text-muted);
}

.dashboard-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Cartes */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Couleurs icônes par rôle */
.icon-admin { color: #6366f1; }
.icon-prof { color: #f59e0b; }
.icon-student { color: #10b981; }

.stat-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-description.warning {
    color: var(--danger);
    font-weight: 600;
}

/* Badges */
.stat-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    color: var(--text-main);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.stat-badge.success {
    background: #d1fae5;
    color: #065f46;
}

/* État désactivé */
.card-disabled {
    opacity: 0.6;
    background: #f8fafc;
    cursor: not-allowed;
}

/* Messages flash */
.flash {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    animation: slideDown 0.4s ease-out;
}

.flash-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.flash-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.flash .material-symbols-outlined {
    font-size: 1.4rem;
}

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