.cp-analytics{
    margin:40px 0;
}

/*==========================
    SECTION TITLE
==========================*/

.cp-section-title{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:24px;
    font-size:28px;
    font-weight:800;
    color:#0f172a;
}

.cp-section-title:after{
    content:"";
    flex:1;
    height:2px;
    background:#e5e7eb;
    border-radius:10px;
}

/*==========================
    TOP CARDS
==========================*/

.cp-analytics-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-bottom:30px;
}

.cp-card{

    position:relative;
    overflow:hidden;

    background:#fff;
    border-radius:20px;

    padding:24px;

    border:1px solid #edf2f7;

    box-shadow:0 10px 30px rgba(15,23,42,.08);

    transition:.35s;
}

.cp-card:before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:5px;

    height:100%;

    background:linear-gradient(180deg,#2563eb,#60a5fa);

}

.cp-card:hover{

    transform:translateY(-6px);

    box-shadow:0 20px 45px rgba(37,99,235,.18);

}

.cp-card h3{

    margin:0;

    font-size:36px;

    font-weight:800;

    color:#111827;

}

.cp-card span{

    display:block;

    margin-top:8px;

    color:#64748b;

    font-size:15px;

    font-weight:600;

}

/*==========================
    CHART AREA
==========================*/

.cp-chart-grid{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:24px;

    margin-top:10px;

}

.cp-chart-card{

    background:#fff;

    border-radius:22px;

    padding:28px;

    border:1px solid #edf2f7;

    box-shadow:0 12px 35px rgba(15,23,42,.08);

}

.cp-chart-title{

    font-size:22px;

    font-weight:700;

    color:#111827;

    margin-bottom:20px;

}

.cp-chart-card canvas{

    width:100%!important;

    height:320px!important;

}

/*==========================
    DONUT
==========================*/

.cp-donut{

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

}

.cp-donut canvas{

    width:100%!important;

    max-width:260px;

    height:260px!important;

    margin:0 auto;

}

/*==========================
    LEGEND
==========================*/

.cp-chart-legend{

    margin-top:20px;

    display:grid;

    gap:10px;

}

.cp-chart-legend div{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:10px 14px;

    border-radius:12px;

    background:#f8fafc;

    font-size:14px;

    color:#334155;

}

/*==========================
    RESPONSIVE
==========================*/

@media(max-width:1200px){

.cp-chart-grid{

grid-template-columns:1fr;

}

.cp-donut canvas{

max-width:220px;

height:220px!important;

}

}

@media(max-width:992px){

.cp-analytics-cards{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:600px){

.cp-analytics{

margin:20px 0;

}

.cp-analytics-cards{

grid-template-columns:1fr;

}

.cp-card{

padding:18px;

}

.cp-card h3{

font-size:28px;

}

.cp-chart-card{

padding:18px;

}

.cp-chart-card canvas{

height:250px!important;

}

.cp-donut canvas{

max-width:180px;

height:180px!important;

}

.cp-chart-title{

font-size:18px;

}

}