*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI',sans-serif;
    background:#f4f6fb;
    overflow-x:hidden;
}

/* Sidebar */

.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:250px;
    height:100vh;
    background:#1d2240;
    color:#fff;
    overflow-y:auto;
    transition:.3s;
    z-index:1000;
}

.logo{
    padding:20px;
    border-bottom:1px solid rgba(255,255,255,.08);
    text-align:center;
}

.logo h4{
    color:#fff;
    font-weight:700;
    margin-bottom:5px;
}

.logo small{
    color:#bfc8ff;
}

.sidebar small{
    display:block;
    padding:15px 20px 5px;
    color:#8f96c5;
    font-size:11px;
    letter-spacing:1px;
    font-weight:600;
}

.sidebar ul{
    list-style:none;
    padding:0;
    margin:0;
}

.sidebar ul li{
    margin:2px 0;
}

.sidebar ul li a{
    display:flex;
    align-items:center;
    gap:12px;
    color:#cfd4ff;
    text-decoration:none;
    padding:12px 20px;
    border-left:4px solid transparent;
    transition:.3s;
    font-size:15px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active{

    background:#2d325f;
    border-left-color:#ff4fa3;
    color:#fff;

}

.sidebar ul li a i{
    width:20px;
}

/* Main */

.main{
    margin-left:250px;
    min-height:100vh;
    transition:.3s;
}

.topbar{

    height:70px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 25px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
    position:sticky;
    top:0;
    z-index:900;

}

.search-box{

    width:320px;

}

.content{

    padding:25px;

}

.card-box{

    background:#fff;
    border-radius:15px;
    padding:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
    margin-bottom:20px;

}

.table-box{

    background:#fff;
    border-radius:15px;
    padding:20px;
    overflow:auto;

}

canvas{

    width:100%!important;
    height:auto!important;

}

/* Overlay */

.overlay{

    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:999;

}

/* Mobile */

@media(max-width:991px){

.sidebar{

    left:-250px;

}

.sidebar.show{

    left:0;

}

.overlay.show{

    display:block;

}

.main{

    margin-left:0;

}

.topbar{

    padding:0 15px;

}

.search-box{

    display:none;

}

.content{

    padding:15px;

}

}

/* Desktop */

@media(min-width:992px){

#menuToggle{

    display:none;

}

}
/* =============================
   FIX MAIN CONTENT
============================= */

.main-content{
    margin-left:250px;
    width:calc(100% - 250px);
    min-height:100vh;
    padding:20px;
    transition:.3s;
    overflow-x:hidden;
}

.main-content .container-fluid{
    padding-left:0;
    padding-right:0;
    max-width:100%;
}

.dashboard-card{
    height:100%;
}

.card{
    width:100%;
}

.table-responsive{
    overflow-x:auto;
}

canvas{
    max-width:100%;
}

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

@media(max-width:991px){

.main-content{
    margin-left:0;
    width:100%;
    padding:15px;
}

.card{
    margin-bottom:15px;
}

.topbar{
    flex-wrap:wrap;
    gap:10px;
    height:auto;
    padding:15px;
}

.search-box{
    display:none;
}

}

.chart-container{
    position: relative;
    width: 100%;
    height: 350px;
}

@media (max-width:991px){

    .chart-container{
        height:220px;
    }

}