/* ==========================
   SMART BENTO DASHBOARD
   style.css
========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f4f7fb;
    color:#2d3436;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
}

.wrapper{
    display:flex;
    min-height:100vh;
}

/* ======================
SIDEBAR
====================== */

.sidebar{
    width:280px;
    background:#17375e;
    color:#fff;
    display:flex;
    flex-direction:column;
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    overflow-y:auto;
    box-shadow:0 0 20px rgba(0,0,0,.15);
}

.logo{
    text-align:center;
    padding:30px 20px;
    border-bottom:1px solid rgba(255,255,255,.1);
}

.logo img{
    width:90px;
    margin-bottom:15px;
}

.logo h3{
    font-size:22px;
    font-weight:600;
}

.logo p{
    font-size:13px;
    opacity:.8;
}

.sidebar ul{
    list-style:none;
    padding:20px 0;
}

.sidebar ul li{
    padding:15px 25px;
    cursor:pointer;
    transition:.3s;
    display:flex;
    align-items:center;
    gap:14px;
    font-size:15px;
}

.sidebar ul li i{
    width:22px;
    text-align:center;
}

.sidebar ul li:hover,
.sidebar ul li.active{
    background:#2f5da9;
}

.profile{
    margin-top:auto;
    padding:20px;
    border-top:1px solid rgba(255,255,255,.1);
    display:flex;
    align-items:center;
    gap:15px;
}

.profile img{
    width:55px;
    height:55px;
    border-radius:50%;
}

.profile h5{
    margin-bottom:2px;
    font-size:16px;
}

.profile span{
    font-size:13px;
    opacity:.75;
}

/* ======================
MAIN
====================== */

.main{
    margin-left:280px;
    width:calc(100% - 280px);
    padding:30px;
}

/* ======================
TOPBAR
====================== */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.topbar h1{
    font-size:32px;
    font-weight:700;
}

.topbar p{
    color:#777;
}

.top-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.date-box{
    background:#fff;
    padding:12px 18px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

.notification{
    position:relative;
    width:48px;
    height:48px;
    border-radius:50%;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

.notification span{
    position:absolute;
    top:-4px;
    right:-2px;
    width:20px;
    height:20px;
    background:red;
    color:#fff;
    border-radius:50%;
    font-size:11px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.admin{
    display:flex;
    align-items:center;
    gap:12px;
}

.admin img{
    width:50px;
    height:50px;
    border-radius:50%;
}

.admin p{
    margin:0;
    font-size:13px;
}

/* ======================
CARDS
====================== */

.card{
    border:none;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.card-header{
    background:#fff;
    border-bottom:1px solid #ececec;
    font-weight:600;
    padding:18px 22px;
}

.card-body{
    padding:22px;
}

.dashboard-card{
    height:100%;
}

/* ======================
STATISTICS
====================== */

.stat-card{
    padding:22px;
    display:flex;
    align-items:center;
    gap:18px;
}

.stat-card h6{
    color:#777;
    font-size:14px;
}

.stat-card h2{
    font-size:30px;
    margin:4px 0;
    font-weight:700;
}

.stat-card p{
    margin:0;
    color:#888;
}

.icon{
    width:70px;
    height:70px;
    border-radius:18px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:28px;
}

.blue{
    background:#3b82f6;
}

.green{
    background:#10b981;
}

.orange{
    background:#f59e0b;
}

.red{
    background:#ef4444;
}

/* ======================
BUTTONS
====================== */

.btn-primary{
    background:#17375e;
    border:none;
}

.btn-primary:hover{
    background:#2f5da9;
}

.btn-outline-primary{
    border-color:#17375e;
    color:#17375e;
}

.btn-outline-primary:hover{
    background:#17375e;
    color:#fff;
}

/* ======================
TABLE
====================== */

.table thead{
    background:#17375e;
    color:#fff;
}

.table th{
    border:none;
}

.table td{
    vertical-align:middle;
}

.table img{
    border-radius:10px;
}

.badge{
    padding:8px 12px;
    font-size:13px;
}

/* ======================
CANVAS
====================== */

canvas{
    max-height:320px;
}

/* ======================
FOOTER
====================== */

footer{
    color:#666;
    font-size:14px;
}

/* ======================
SCROLLBAR
====================== */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#2f5da9;
    border-radius:20px;
}

/* ======================
RESPONSIVE
====================== */

@media(max-width:1200px){

.main{
    padding:20px;
}

}

@media(max-width:992px){

.sidebar{
    position:relative;
    width:100%;
    height:auto;
}

.main{
    margin-left:0;
    width:100%;
}

.wrapper{
    flex-direction:column;
}

.topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
}

.top-right{
    width:100%;
    justify-content:space-between;
    flex-wrap:wrap;
}

}

@media(max-width:768px){

.stat-card{
    flex-direction:column;
    text-align:center;
}

.admin{
    display:none;
}

.logo h3{
    font-size:20px;
}

.topbar h1{
    font-size:26px;
}

}

@media(max-width:576px){

.sidebar ul li{
    font-size:14px;
    padding:12px 18px;
}

.card-body{
    padding:18px;
}

.table{
    font-size:14px;
}

.date-box{
    font-size:14px;
}

}