:root{

    --background:#F5F7FB;

    --sidebar:#0D1B3D;
    --sidebar-light:#162C5F;

    --primary:#3B82F6;
    --primary-light:#60A5FA;

    --success:#22C55E;
    --warning:#F59E0B;
    --danger:#EF4444;

    --text:#111827;
    --text-light:#64748B;

}

/* ===================================== */
/* RESET */
/* ===================================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;

}

body{

    min-height:100vh;

    display:flex;

    background:

    radial-gradient(
        circle at top right,
        rgba(59,130,246,.08),
        transparent 30%
    ),

    radial-gradient(
        circle at bottom left,
        rgba(96,165,250,.05),
        transparent 25%
    ),

    var(--background);

}

/* ===================================== */
/* SIDEBAR */
/* ===================================== */

.sidebar{

    width:270px;

    position:fixed;

    top:0;
    left:0;
    bottom:0;

    padding:30px 20px;

    background:

    linear-gradient(
        180deg,
        var(--sidebar),
        var(--sidebar-light)
    );

    color:white;

    box-shadow:
    0 20px 40px rgba(0,0,0,.25);

}

.logo{

    font-size:24px;

    font-weight:800;

    margin-bottom:40px;

}

.sidebar nav{

    display:flex;
    flex-direction:column;
    gap:10px;

}

.sidebar nav a{

    text-decoration:none;

    color:white;

    padding:14px 18px;

    border-radius:16px;

    transition:.25s;

}

.sidebar nav a:hover{

    background:
    rgba(255,255,255,.08);

}

.sidebar nav a.active{

    background:var(--primary);

}

/* ===================================== */
/* MAIN */
/* ===================================== */

.main-content{

    flex:1;

    margin-left:270px;

    padding:35px;

}

/* ===================================== */
/* HEADER */
/* ===================================== */

.page-header{

    margin-bottom:30px;

}

.page-header h1{

    font-size:38px;

    font-weight:800;

    color:var(--text);

}

.page-header p{

    margin-top:8px;

    color:var(--text-light);

}

/* ===================================== */
/* SCORE */
/* ===================================== */

.score-section{

    margin-bottom:25px;

}

.score-card{

    background:white;

    border-radius:35px;

    padding:35px;

    text-align:center;

    position:relative;

    overflow:hidden;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

}

.score-card::before{

    content:"";

    position:absolute;

    top:-80px;
    right:-80px;

    width:180px;
    height:180px;

    border-radius:50%;

    background:

    radial-gradient(
        rgba(59,130,246,.08),
        transparent
    );

}

.score-card span{

    color:var(--text-light);

}

.score-value{

    font-size:80px;

    font-weight:900;

    color:var(--primary);

    margin-top:10px;

}

.score-status{

    margin-top:10px;

    font-size:22px;

    font-weight:700;

}

/* ===================================== */
/* ANALYSIS GRID */
/* ===================================== */

.analysis-grid{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:25px;

    margin-bottom:25px;

}

.analysis-card{

    background:white;

    border-radius:30px;

    padding:25px;

    position:relative;

    overflow:hidden;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

    margin-bottom:25px;

}

.analysis-card::before{

    content:"";

    position:absolute;

    top:-50px;
    right:-50px;

    width:120px;
    height:120px;

    border-radius:50%;

    background:

    radial-gradient(
        rgba(59,130,246,.08),
        transparent
    );

}

.analysis-card h3{

    margin-bottom:20px;

    font-size:22px;

}

/* ===================================== */
/* ALERTS */
/* ===================================== */

.alert-item{

    padding:15px;

    border-radius:16px;

    margin-bottom:12px;

    background:#FEF2F2;

    color:#991B1B;

    font-weight:600;

}

/* ===================================== */
/* TIPS */
/* ===================================== */

.tip-item{

    padding:15px;

    border-radius:16px;

    margin-bottom:12px;

    background:#EFF6FF;

    color:#1E40AF;

    font-weight:600;

}

/* ===================================== */
/* GOALS */
/* ===================================== */

.goal-projection{

    background:#F8FAFC;

    border-radius:20px;

    padding:18px;

    margin-bottom:15px;

}

.goal-projection h4{

    margin-bottom:10px;

    font-size:18px;

}

.goal-projection p{

    color:var(--text-light);

    margin-bottom:5px;

}

/* ===================================== */
/* TRENDS */
/* ===================================== */

.trend-card{

    background:#F8FAFC;

    border-radius:20px;

    padding:18px;

    margin-bottom:15px;

}

.trend-positive{

    color:var(--success);

    font-weight:700;

}

.trend-negative{

    color:var(--danger);

    font-weight:700;

}

/* ===================================== */
/* KPI */
/* ===================================== */

.kpi-grid{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:20px;

}

.mini-kpi{

    background:white;

    border-radius:25px;

    padding:25px;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

}

.mini-kpi span{

    color:var(--text-light);

}

.mini-kpi h2{

    margin-top:10px;

    font-size:30px;

    font-weight:800;

}

/* ===================================== */
/* RESPONSIVE */
/* ===================================== */

@media(max-width:1200px){

    .analysis-grid{

        grid-template-columns:1fr;

    }

    .kpi-grid{

        grid-template-columns:
        repeat(2,1fr);

    }

}

@media(max-width:768px){

    .sidebar{

        width:90px;

    }

    .main-content{

        margin-left:90px;

        padding:20px;

    }

    .logo{

        font-size:14px;

    }

    .sidebar nav a{

        text-align:center;

        font-size:11px;

    }

    .kpi-grid{

        grid-template-columns:1fr;

    }

    .score-value{

        font-size:60px;

    }

}