/* Style uniforme pour toutes les pages (sauf landing et auth) */

/* Fond bleu foncé pour le conteneur principal */
.figma-dashboard {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    min-height: 100vh;
}

/* Wrapper pour le contenu principal avec padding */
.figma-dashboard .main-content {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%) !important;
    padding: 84px 2rem 2rem 2rem !important; /* 60px topbar + 24px espace en haut */
    min-height: 100vh;
}

/* Conteneur de contenu blanc avec bords arrondis et ombre */
.unified-content-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 0;
    min-height: calc(100vh - 180px);
    max-height: none;
    overflow: visible;
}

/* Sidebar et topbar avec fond bleu foncé */
.figma-dashboard #sidebar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%) !important;
    box-shadow: none !important;
}

.figma-dashboard .topbar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%) !important;
    color: #fff !important;
    z-index: 1200;
}

.figma-dashboard .topbar *,
.figma-dashboard .topbar a,
.figma-dashboard .topbar .user-info {
    color: #fff !important;
}

/* Ajustements pour les cartes et sections dans le wrapper */
.unified-content-wrapper .card,
.unified-content-wrapper .stat-card,
.unified-content-wrapper .dashboard-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: none;
    margin-bottom: 1.5rem;
}

.unified-content-wrapper .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    padding: 1em 1.5em;
}

.unified-content-wrapper .card-body {
    padding: 1.5em;
}

/* Banners par rôle */
.role-banner {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 2em !important;
}

.role-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.role-banner i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.role-banner h1 {
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 768px) {
    .figma-dashboard .main-content {
        padding: 84px 1rem 1rem 1rem !important; /* 60px topbar + 24px espace en haut */
    }
    
    .unified-content-wrapper {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .role-banner {
        padding: 1em 1.5em !important;
        flex-direction: column;
        text-align: center;
        gap: 0.8em !important;
    }
    
    .role-banner i {
        font-size: 1.5rem !important;
    }
    
    .role-banner h1 {
        font-size: 1.2rem !important;
    }
    
    .role-banner span {
        font-size: 0.85rem !important;
    }
}

