
/* ==========================================================
   ADMIN DASHBOARD CSS
   File: dashboard.css
========================================================== */


/* ==========================
   DASHBOARD CONTAINER
========================== */

.dashboard-container{

    max-width:var(--container-width,1600px);

    margin:0 auto;

    padding:0;

}


/* ==========================
   DASHBOARD HEADER
========================== */

.dashboard-header{

    padding:10px 20px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    background:var(--card-bg);

    border-radius:var(--card-radius);

    box-shadow:var(--card-shadow);

    border:var(--border-width) solid var(--border);

}


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

.dashboard-title{

    font-size:var(--font-4xl);

    font-weight:var(--fw-bold);

    color:var(--heading-color);

    margin-bottom:var(--space-1);

}


/* ==========================
   SUBTITLE
========================== */

.dashboard-subtitle{

    font-size:var(--font-lg);

    color:var(--text-muted);

    margin:0;

}

.dashboard-subtitle strong{

    color:var(--primary,#2563eb);

}


/* ==========================
   DASHBOARD CARD
========================== */

.dashboard-card{

    position:relative;

    overflow:hidden;

    border-radius:16px;

    transition:all .3s ease;

    min-height:145px;

    box-shadow:var(--card-shadow);

}

.dashboard-card::before{

    content:"";

    position:absolute;

    width:90px;

    height:90px;

    top:-30px;

    right:-30px;

    background:rgba(255,255,255,.12);

    border-radius:50%;

    transition:.3s;

}

.dashboard-card:hover{

    transform:translateY(-4px);

    box-shadow:0 12px 28px rgba(0,0,0,.15)!important;

}

.dashboard-card:hover::before{

    transform:scale(1.1);

}


/* ==========================
   CARD BODY
========================== */

.dashboard-card .card-body{

    position:relative;

    z-index:2;

    padding:16px 12px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

}


/* ==========================
   CARD ICON
========================== */

.card-icon{

    width:48px;

    height:48px;

    margin:0 auto;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:rgba(255,255,255,.20);

    font-size:22px;

    margin-bottom:8px;

}

.card-icon i{

    color:#fff;

}


/* ==========================
   CARD TITLE
========================== */

.card-label{

    font-size:14px;

    font-weight:600;

    margin:0;

    opacity:.95;

}


/* ==========================
   CARD VALUE
========================== */

.card-value{

    font-size:26px;

    font-weight:800;

    line-height:1.2;

    margin:8px 0;

}


/* ==========================
   DASHBOARD LINK
========================== */

.dashboard-link{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:4px;

    padding:6px 12px;

    border-radius:25px;

    background:rgba(255,255,255,.18);

    color:#fff;

    font-size:12px;

    font-weight:600;

    text-decoration:none;

    transition:.25s;

}

.dashboard-link:hover{

    background:#fff;

    color:#2563eb;

}


/* ==========================
   ANALYTICS SECTION
========================== */

.dashboard-container .row.mt-4{

    margin-top:24px!important;

}


/* ==========================
   RESPONSIVE - TABLET
========================== */

@media (max-width:768px){

    .dashboard-container{

        padding:12px;

    }

    .dashboard-title{

        font-size:24px;

    }

    .dashboard-subtitle{

        font-size:14px;

    }

    .dashboard-card{

        min-height:125px;

    }

    .dashboard-card .card-body{

        padding:14px 10px;

    }

    .card-icon{

        width:42px;

        height:42px;

        font-size:18px;

    }

    .card-label{

        font-size:13px;

    }

    .card-value{

        font-size:22px;

    }

    .dashboard-link{

        padding:5px 10px;

        font-size:11px;

    }

}


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

@media (max-width:576px){

    .dashboard-header{

        padding:10px 15px;

    }

    .dashboard-title{

        font-size:20px;

    }

    .dashboard-subtitle{

        font-size:13px;

    }

    .dashboard-card{

        min-height:115px;

        border-radius:14px;

    }

    .dashboard-card .card-body{

        padding:12px 8px;

    }

    .card-icon{

        width:38px;

        height:38px;

        font-size:16px;

        margin-bottom:6px;

    }

    .card-label{

        font-size:12px;

    }

    .card-value{

        font-size:20px;

        margin:6px 0;

    }

    .dashboard-link{

        padding:4px 9px;

        font-size:11px;

    }

}

