/* dashboard.css */

.dashboard-scope {
    /* NOUVELLES VARIABLES CLAIRES */
    --db-red: #d32f2f;
    --db-bg-light: #f4f7f6;      /* Fond de page gris très léger */
    --db-sidebar-bg: #ffffff;   /* Sidebar blanche */
    --db-card-bg: #ffffff;      /* Cartes blanches */
    --db-border: #e0e0e0;       /* Bordures discrètes */
    --db-text-dark: #2c3e50;    /* Texte principal sombre */
    --db-muted: #7f8c8d;        /* Texte secondaire gris */
    
    display: flex;
    min-height: 100vh;
    background-color: var(--db-bg-light);
    font-family: 'Raleway', sans-serif;
    color: var(--db-text-dark);

    margin-top: 70px; 
}

.dashboard-scope * { box-sizing: border-box; }

/* Sidebar isolée */
.dashboard-scope .db-sidebar-nav {
    width: 280px;
    background: var(--db-sidebar-bg);
    border-right: 1px solid var(--db-border);
    display: flex;
    flex-direction: column;

    position: fixed;
    top: 70px; 
    bottom: 0;
    left: 0;
    z-index: 10;
}

.dashboard-scope .db-logo-area {
    padding: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    color: var(--db-red);
}

.dashboard-scope .db-nav-list { list-style: none; padding: 0; margin: 0; flex: 1; }

.dashboard-scope .db-nav-list a {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    color: var(--db-muted);
    text-decoration: none;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.dashboard-scope .db-nav-list a:hover, 
.dashboard-scope .db-nav-list a.db-active {
    color: var(--db-red);
    background: rgba(211, 47, 47, 0.05); /* Léger fond rouge au survol */
    border-left-color: var(--db-red);
}

.dashboard-scope .db-footer-logout { 
    padding: 20px 30px; 
    border-top: 1px solid var(--db-border); 
}

/* Zone de contenu */
.dashboard-scope .db-view-panel {
    flex: 1;
    padding: 50px;
    background-color: var(--db-bg-light);
    margin-left: 280px; 
}

.dashboard-scope .db-title { 
    font-size: 2.2em; 
    margin-bottom: 40px; 
    color: var(--db-text-dark); 
    font-weight: 700;
}

.dashboard-scope .db-card {
    background: var(--db-card-bg);
    border: 1px solid var(--db-border);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); /* Petite ombre pour décoller du fond */
}

.dashboard-scope .db-info-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
}

.dashboard-scope .db-label {
    display: block;
    color: var(--db-muted);
    font-size: 0.75em; 
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.dashboard-scope .db-value { 
    font-size: 1.1em; 
    font-weight: 700; 
    color: var(--db-text-dark); 
}

.dashboard-scope .db-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-left: 4px solid var(--db-red);
}

.dashboard-scope .db-btn-red {
    background: var(--db-red);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s;
}

.dashboard-scope .db-btn-red:hover {
    background: #b71c1c;
}