﻿/* header.css */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}
.page-title h1 {
    font-size: 34px;
    font-weight: 400;
    margin: 0;
}

.page-title p {
    color: rgba(255,255,255,.60);
    margin: 2px 0 0;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.main-content {
    border-left: solid 1px #1d1c1c;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 48px 48px 0px;
    max-width: 100%;
}
/* ===== Hero card dell'Overview ===== */
.panel {
    background: #1C1C1C;
    border-radius: 28px; /* più arrotondata */
    padding: 28px 28px;
    box-shadow: none;
}

/* titolo sezione */
.section-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 16px;
}

/* ===== Griglia interno pannello ===== */
.xp-overview {
    display: grid;
    grid-template-columns: 360px 1fr; /* sinistra “metric”, destra chart */
    align-items: center;
    gap: 34px;
    min-height: 360px;
    position: relative;
}

    /* divisore verticale come nello shot */
    .xp-overview::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 22px;
        bottom: 22px;
        width: 1px;
        background: rgba(255,255,255,.15);
        transform: translateX(-40%); /* leggermente spostato verso sx per assecondare l'occhio */
    }

/* blocco sinistro */
.xp-left h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 18px;
}

.chip {
    display: inline-block;
    background: #F5B46B;
    color: #000;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 16px;
}

/* blocco destro: grafico + legenda */
.xp-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 44px;
}

/* dimensioni precise del pie */
.xp-pie {
    width: 320px;
    height: 320px;
}

/* legenda */
.xp-legend {
    margin-top: 10px;
}

    .xp-legend ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .xp-legend li {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #eee;
        font-size: 14px;
    }

    .xp-legend .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
    }

.dot-gov {
    background: #F5B46B;
}
/* Government  */
.dot-ind {
    background: #4A90E2;
}
/* Industry    */
.dot-aca {
    background: #DB4646;
}
/* Academy     */
.dot-civ {
    background: #43A055;
}
/* CivilSociety*/

/* responsive */
@media (max-width: 1100px) {
    .xp-overview {
        grid-template-columns: 1fr;
    }

        .xp-overview::before {
            display: none;
        }

    .xp-right {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Header sticky */
.header {
    position: sticky;
    top: 0;
    z-index: 1000; /* resta sopra i contenuti */
    background: var(--dm-bg); /* sfondo solido per lo sticky */
}

    /* Bottone dentro header: posizione “naturale” */
    .header .sidebar-toggle {
        position: relative;
        left: 0;
        top: 0;
        margin-right: 8px;
        background: #1C1C1C;
        border: 1px solid #3d3d3d;
        color: #fff;
        padding: 8px 10px;
        border-radius: 8px;
        line-height: 0;
    }

@media (min-width: 769px) {
    .header .sidebar-toggle {
        display: none;
    }
}
