/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --blue: #f06191;
    --blue-dark: #f06191;

    --green: #64b4f5;
    --green-dark: #64b4f5;

    --bg: #f5f8fb;

    --text: #1f2937;
    --muted: #7b8794;

    --border: #e5eaf0;

    --white: #ffffff;

    --shadow:
        0 8px 25px rgba(24, 70, 100, 0.07);
}


/* =========================================================
   BODY
========================================================= */

body {

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background-color : #ffffff;

    color: var(--text);

    min-height: 100vh;
}


/* =========================================================
   WRAPPER
========================================================= */

.dashboard-wrapper {

    display: flex;

    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
========================================================= */

/*.sidebar {

    width: 250px;

    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #155d96 0%,
            #104e7f 100%
        );

    color: white;

    position: fixed;

    left: 0;
    top: 0;

    z-index: 1000;

    display: flex;

    flex-direction: column;

    box-shadow:
        5px 0 25px rgba(0,0,0,.08);
}*/


/* LOGO */

/*.sidebar-logo {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 25px 22px;

    border-bottom:
        1px solid rgba(255,255,255,.12);
} */

/*.logo-icon {

    width: 45px;
    height: 45px;

    border-radius: 12px;

    background:
        rgba(255,255,255,.15);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 21px;
}*/

/*.sidebar-logo h5 {

    margin: 0;

    font-size: 17px;

    font-weight: 700;

    letter-spacing: .3px;
}

.sidebar-logo small {

    opacity: .7;

    font-size: 10px;
}*/


/* MENU */

/*.sidebar-menu {

    padding: 25px 13px;

    flex: 1;
}*/

/*
.menu-item {

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 13px 16px;

    margin-bottom: 7px;

    border-radius: 10px;

    color:
        rgba(255,255,255,.75);

    text-decoration: none;

    transition: .25s;
}

.menu-item i {

    width: 20px;

    text-align: center;
}

.menu-item:hover {

    background:
        rgba(255,255,255,.1);

    color: white;
}

.menu-item.active {

    background: white;

    color: var(--blue);

    font-weight: 600;

    box-shadow:
        0 5px 15px rgba(0,0,0,.08);
}

*/

/* SIDEBAR BOTTOM */


.sidebar-bottom {

    padding: 15px;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {

    margin-left: 50px;

    margin-right: 25px;

    width: calc(100% - 100px);

    min-height: 100vh;

    padding: 25px 35px;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;
}

.page-title h2 {

    font-size: 25px;

    font-weight: 700;

    color: #7cb341;

    margin-bottom: 5px;
}

.page-title p {

    color: var(--muted);

    font-size: 14px;
}


/* RIGHT */

.topbar-right {

    display: flex;

    align-items: center;

    gap: 22px;
}


/* PERIOD */

.period-filter {

    display: flex;

    align-items: center;

    gap: 8px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 9px;

    padding: 9px 12px;

    box-shadow:
        0 3px 12px rgba(0,0,0,.03);
}

.period-filter i {

    color: var(--blue);
}

.period-filter select {

    border: none;

    outline: none;

    font-size: 13px;

    color: #475569;

    background: white;

    cursor: pointer;
}


/* USER */

.user-profile {

    display: flex;

    align-items: center;

    gap: 10px;
}

.user-avatar {

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background:
        #e8f1f8;

    color: var(--blue);

    display: flex;

    justify-content: center;
    align-items: center;
}

.user-info {

    display: flex;

    flex-direction: column;
}

.user-info strong {

    font-size: 13px;
}

.user-info small {

    color: var(--muted);

    font-size: 11px;
}


/* MOBILE BUTTON */

.mobile-menu-btn {

    display: none;

    border: none;

    background: white;

    padding: 10px;

    border-radius: 8px;
}


/* =========================================================
   SUMMARY CARDS
========================================================= */

.summary-section {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 35px;
}

.summary-card {

    background: white;

    border:
        1px solid var(--border);

    border-radius: 13px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow: var(--shadow);

    transition: .25s;
}

.summary-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 30px rgba(24,70,100,.10);
}

.summary-icon {

    width: 50px;
    height: 50px;

    border-radius: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.summary-icon.blue {

    background: #e8f2fa;
    color: var(--blue);
}

.summary-icon.green {

    background: #eff8df;
    color: var(--green-dark);
}

.summary-icon.orange {

    background: #fff5df;
    color: #e59a16;
}

.summary-icon.red {

    background: #fff0f0;
    color: #e25353;
}

.summary-card span {

    font-size: 12px;

    color: var(--muted);
}

.summary-card h3 {

    margin-top: 3px;

    font-size: 23px;

    color: #183b56;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;
}

.section-header h3 {

    font-size: 20px;

    color: #183b56;

    margin-bottom: 3px;
}

.section-header p {

    color: var(--muted);

    font-size: 13px;
}


/* VIEW BUTTON */

.view-control {

    display: flex;

    gap: 5px;

    background: white;

    padding: 4px;

    border-radius: 8px;

    border:
        1px solid var(--border);
}

.view-btn {

    border: none;

    background: transparent;

    width: 35px;
    height: 32px;

    border-radius: 6px;

    color: #8995a1;

    cursor: pointer;
}

.view-btn.active {

    background: #eaf3f9;

    color: var(--blue);
}


/* =========================================================
   INDICATOR GRID
========================================================= */

.indicator-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}


/* =========================================================
   INDICATOR CARD
========================================================= */

.indicator-card {

    background: white;

    border:
        2px solid var(--green);

    border-radius: 17px;

    padding: 13px;

    box-shadow:
        0 5px 18px rgba(50,100,50,.05);

    transition: .3s;

    overflow: hidden;
}

.indicator-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 12px 28px rgba(50,100,50,.12);
}


/* =========================================================
   CARD TITLE
========================================================= */

.indicator-title {

    min-height: 74px;

    background:
        linear-gradient(
            135deg,
            #17639e,
            #145582
        );

    border-radius: 13px;

    padding: 14px 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: white;

    font-size: 14px;

    line-height: 1.25;

    font-weight: 700;

    text-transform: uppercase;
}


/* =========================================================
   PERCENTAGE
========================================================= */

.indicator-percentage {

    text-align: center;

    font-size: 23px;

    font-weight: 800;

    color: #111827;

    margin-top: 18px;
}


/* =========================================================
   DONUT
========================================================= */

.chart-wrapper {

    position: relative;

    width: 190px;

    height: 190px;

    margin:
        0 auto 5px;
}

.chart-wrapper canvas {

    width: 100% !important;
    height: 100% !important;
}


/* =========================================================
   LEGEND
========================================================= */

.indicator-legend {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8px;

    margin-top: 10px;

    padding:
        0 10px 8px;
}

.legend-item {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    font-weight: 700;

    color: #1f2937;
}

.legend-value {

    padding:
        8px 11px;

    border-radius: 6px;

    color: white;

    font-size: 13px;

    font-weight: 800;

    min-width: 64px;

    text-align: center;
}

.legend-value.standard {

    background:
        var(--blue);
}

.legend-value.capaian {

    background:
        var(--green);
}


/* =========================================================
   STATUS
========================================================= */

.indicator-status {

    text-align: center;

    margin:
        8px 10px 5px;

    padding: 6px;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 700;
}

.status-success {

    color: #4d7810;

    background: #f0f8df;
}

.status-warning {

    color: #9a6800;

    background: #fff7df;
}

.status-danger {

    color: #a63131;

    background: #fff0f0;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    display: flex;

    justify-content: space-between;

    color: #8b98a5;

    font-size: 11px;

    padding:
        25px 5px 10px;

    margin-top: 20px;

    border-top:
        1px solid var(--border);
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 1200px) {

    .indicator-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .summary-section {

        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 768px) {

    .sidebar {

        transform:
            translateX(-100%);

        transition: .3s;
    }

    .sidebar.show {

        transform:
            translateX(0);
    }

    .main-content {

        margin-left: 0;

        width: 100%;

        padding:
            18px;
    }

    .mobile-menu-btn {

        display: inline-block;

        margin-right: 10px;

        color: var(--blue);
    }

    .topbar {

        align-items: flex-start;
    }

    .topbar-right {

        gap: 8px;
    }

    .user-info {

        display: none;
    }

    .period-filter select {

        max-width: 90px;
    }

    .page-title h2 {

        font-size: 18px;
    }

    .page-title p {

        font-size: 11px;
    }

    .summary-section {

        grid-template-columns:
            1fr 1fr;

        gap: 10px;
    }

    .summary-card {

        padding: 13px;

        gap: 10px;
    }

    .summary-icon {

        width: 40px;
        height: 40px;

        font-size: 16px;
    }

    .summary-card h3 {

        font-size: 18px;
    }

    .indicator-grid {

        grid-template-columns:
            1fr;
    }

    .section-header {

        margin-top: 10px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .summary-section {

        grid-template-columns:
            1fr;
    }

    .topbar {

        flex-direction: column;

        gap: 15px;
    }

    .topbar-right {

        width: 100%;

        justify-content: space-between;
    }

    
}



/* =========================================================
   EMPTY DATA
========================================================= */

.empty-data {

    grid-column: 1 / -1;

    background: white;

    border: 2px dashed #dce5eb;

    border-radius: 17px;

    padding: 70px 20px;

    text-align: center;

    color: #8a98a5;

}


.empty-data i {

    font-size: 55px;

    color: #96ce2f;

    margin-bottom: 15px;

}


.empty-data h3 {

    color: #526270;

    font-size: 20px;

    margin-bottom: 5px;

}


.empty-data p {

    font-size: 13px;

}