/* sg-stats-manager/public/css/sgsm-public-style.css (Corrigé) */
.sgsm-stats-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #3c434a;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Grille des indicateurs KPI */
.sgsm-grid-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}
.sgsm-kpi-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
.sgsm-kpi-icon .dashicons {
    font-size: 28px;
    color: #2271b1;
    background-color: #f0f6fc;
    border-radius: 50%;
    padding: 8px;
    line-height: 1;
}
.sgsm-kpi-label {
    font-size: 13px;
    color: #50575e;
}
.sgsm-kpi-value {
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

/* Cartes principales */
.sgsm-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.sgsm-main-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
.sgsm-main-card h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}
.sgsm-detailed-item {
    margin-bottom: 15px;
}
.sgsm-detailed-item strong {
    display: block;
    margin-bottom: 5px;
    color: #1d2327;
}
.sgsm-detailed-item p, .sgsm-detailed-item ul {
    margin: 0;
    padding: 0;
    padding-left: 20px;
    color: #50575e;
}
.sgsm-detailed-item ul { list-style: disc; }
.sgsm-detailed-item li { margin-bottom: 5px; }

/* --- SECTION GRAPHIQUE CORRIGÉE --- */
.sgsm-sessions-chart-card {
    padding-bottom: 25px;
}
.sgsm-chart-container {
    width: 100%;
    position: relative;
}
.sgsm-chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 180px;
    gap: 10px;
    border-left: 2px solid #eef0f3;
    border-bottom: 2px solid #eef0f3;
    padding-left: 10px;
    padding-top: 10px;
}
.sgsm-chart-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.sgsm-chart-bar-container {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.sgsm-chart-bar {
    /* background-color: #2271b1; <-- SUPPRIMÉ */
    width: 80%;
    margin: 0 auto;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease-out; /* Changé pour 'all' pour inclure le filtre */
    min-height: 1px;
}
.sgsm-chart-bar:hover {
    /* background-color: #3388cc; <-- SUPPRIMÉ */
    transform: translateY(-5px); /* On ajoute un léger effet de lévitation */
    filter: brightness(115%); /* <-- AJOUTÉ : Éclaircit la couleur de base au survol */
}
.sgsm-chart-value {
    font-size: 12px;
    font-weight: bold;
    color: #3c434a;
    margin-bottom: 4px;
}
.sgsm-chart-label {
    font-size: 11px;
    color: #646970;
    margin-top: 6px;
}

/* Messages */
.sgsm-login-required, .sgsm-error {
    padding: 10px 15px;
    border-radius: 3px;
    margin-bottom: 15px;
    border: 1px solid transparent;
}
.sgsm-login-required {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}
.sgsm-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}