/* ==========================================================
   CARD STATISTIK
========================================================== */

.stats-card{

    background:#ffffff;

    border-radius:20px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    padding:22px;

    width:100%;

    height:520px;

    display:flex;

    flex-direction:column;

    overflow:hidden;

    transition:.3s ease;

}

.stats-card:hover{

    transform:translateY(-4px);

    box-shadow:0 15px 35px rgba(0,0,0,.12);

}

/* =======================================
   HEADER
======================================= */

.stats-card-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

    flex-shrink:0;

}

.stats-card-header div{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:18px;

    font-weight:700;

    color:#8b5a00;

}

.stats-card-header i{

    font-size:22px;

    color:#8b5a00;

}

.stats-card-header .badge{

    background:#ffbf00;

    color:#222;

    padding:8px 14px;

    font-size:14px;

    font-weight:700;

    border-radius:999px;

}

/* =======================================
   CHART
======================================= */

.chart-box{

    position:relative;

    width:100%;

    height:240px;

    flex-shrink:0;

}

.chart-box canvas{

    width:100%!important;

    height:100%!important;

}

/* =======================================
   LEGEND
======================================= */

.stats-legend{

    flex:1;

    margin-top:18px;

}

.legend-item{

    display:flex;

    align-items:center;

    gap:10px;

    padding:8px 0;

    border-bottom:1px solid #f3f3f3;

    font-size:15px;

}

.legend-item:last-child{

    border-bottom:none;

}

.legend-item strong{

    margin-left:auto;

    color:#222;

    font-size:16px;

}

.legend-item small{

    color:#666;

    margin-left:8px;

}

.legend-color{

    width:12px;

    height:12px;

    border-radius:50%;

    flex-shrink:0;

}

/* =======================================
   FOOTER
======================================= */

.stats-total{

    margin-top:auto;

    border-top:1px solid #ececec;

    padding-top:18px;

    text-align:center;

    flex-shrink:0;

}

.stats-total small{

    display:block;

    color:#666;

    font-size:15px;

    margin-bottom:6px;

}

.stats-total h3{

    margin:0;

    color:#8b5a00;

    font-size:42px;

    font-weight:700;

    line-height:1;

}

.stats-total span{

    display:block;

    margin-top:8px;

    color:#444;

    font-size:18px;

}

/* =======================================
   RESPONSIVE
======================================= */

@media(max-width:992px){

    .stats-card{

        height:auto;

        min-height:480px;

    }

}

@media(max-width:768px){

    .stats-card{

        padding:18px;

    }

}