/**
 * Role Dashboard — Generic role-based dashboard styling
 * Uses --role-color CSS variable set inline by PHP
 */

/* ── Header ── */
.role-dashboard-header {
    border-left: 4px solid var(--role-color, #3498db);
    padding-left: 1.25rem;
}

.role-dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--role-color, #3498db);
    margin-bottom: 0.25rem;
}

.role-dashboard-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ── Stats bar ── */
.role-stat-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 0.5rem;
    transition: box-shadow 0.2s ease;
}

.role-stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.role-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--role-color, #3498db);
    line-height: 1.2;
}

.role-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.25rem;
}

/* ── Section cards ── */
.role-section-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1.5rem;
    min-height: 140px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.role-section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--role-color, #3498db);
}

.role-section-card:hover .role-section-icon-wrap {
    background: var(--role-color, #3498db);
    color: #fff;
}

/* Icon circle */
.role-section-icon-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: color-mix(in srgb, var(--role-color, #3498db) 12%, #fff);
    color: var(--role-color, #3498db);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.role-section-card:hover .role-section-icon-wrap {
    transform: scale(1.08);
}

/* Body */
.role-section-body {
    flex: 1;
    min-width: 0;
}

.role-section-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.3rem;
}

.role-section-desc {
    font-size: 0.88rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Badge "Bientôt disponible" */
.role-badge-soon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--role-color, #3498db) 10%, #fff);
    color: var(--role-color, #3498db);
    border: 1px solid color-mix(in srgb, var(--role-color, #3498db) 25%, #fff);
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .role-dashboard-title {
        font-size: 1.35rem;
    }

    .role-section-card {
        padding: 1.15rem;
        min-height: auto;
    }

    .role-section-icon-wrap {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }

    .role-section-label {
        font-size: 1rem;
    }

    .role-stat-value {
        font-size: 1.25rem;
    }
}
