/* =====================================================
   DASHBOARD ADMIN - PORTAL DESA OELOMIN
   ===================================================== */

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

body {
    font-family: "Poppins", sans-serif;
    background: #eef3f7;
    color: #193e30;
    font-size: 13px;
}


/* =====================================================
   WRAPPER
   ===================================================== */

.wrapper {
    display: flex;
    min-height: 100vh;
}


/* =====================================================
   SIDEBAR
   ===================================================== */

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #006b36;
    color: #ffffff;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.logo {
    height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #ffffff;
    padding: 5px;
    margin-bottom: 15px;
}

.logo h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}


/* =====================================================
   SIDEBAR MENU
   ===================================================== */

.sidebar>ul {
    list-style: none;
    padding: 15px 0;
}

.sidebar li {
    list-style: none;
}

.sidebar li>a {
    height: 50px;
    padding: 0 32px;

    display: flex;
    align-items: center;
    gap: 15px;

    color: #ffffff;
    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition: 0.2s ease;
}

.sidebar li>a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar li>a i {
    width: 18px;
    text-align: center;
    font-size: 16px;
}


/* MENU AKTIF */

.sidebar li.active>a {
    background: #08a653;
    border-left: 4px solid #ffd54f;
    padding-left: 28px;
    font-weight: 600;
}


/* =====================================================
   MANAGEMEN DATA
   ===================================================== */

.demografi-menu>a {
    position: relative;
}

.demografi-arrow {
    margin-left: auto;
    font-size: 11px !important;
    transition: transform 0.2s ease;
}

.demografi-menu.open .demografi-arrow {
    transform: rotate(180deg);
}

.demografi-submenu {
    display: none;
    list-style: none;
    background: #005c30;
}

.demografi-menu.open .demografi-submenu {
    display: block;
}

.demografi-submenu li a {
    display: block;
    padding: 10px 20px 10px 65px;

    color: #d9eee3;
    text-decoration: none;

    font-size: 11px;
    transition: 0.2s ease;
}

.demografi-submenu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}


/* =====================================================
   CONTENT
   ===================================================== */

.content {
    width: calc(100% - 260px);
    margin-left: 260px;
    min-height: 100vh;

    padding: 30px 38px 45px;
}


/* =====================================================
   TOPBAR
   ===================================================== */

.topbar {
    width: 100%;
    min-height: 68px;

    background: #ffffff;
    border-radius: 12px;

    padding: 13px 20px;

    display: flex;
    align-items: center;

    box-shadow: 0 5px 18px rgba(25, 80, 60, 0.07);

    margin-bottom: 35px;
}


/* =====================================================
   SEARCH
   ===================================================== */

.search-box {
    display: flex;
    align-items: center;

    width: 355px;
    height: 38px;
}

.search-box input {
    width: 100%;
    height: 38px;

    padding: 0 13px;

    border: 1px solid #dce6e1;
    border-right: none;

    border-radius: 8px 0 0 8px;

    background: #ffffff;

    color: #193e30;
    font-family: "Poppins", sans-serif;
    font-size: 11px;

    outline: none;
}

.search-box input:focus {
    border-color: #087443;
}

.search-box input::placeholder {
    color: #899991;
}

.search-box button {
    width: 45px;
    height: 38px;

    border: none;
    border-radius: 0 8px 8px 0;

    background: #087443;
    color: #ffffff;

    cursor: pointer;

    transition: 0.2s ease;
}

.search-box button:hover {
    background: #065f37;
}

.search-box button i {
    font-size: 13px;
}


/* =====================================================
   ADMIN TOPBAR
   ===================================================== */

.admin-info {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 9px;

    color: #193e30;

    font-size: 12px;
    font-weight: 600;
}


/* FOTO ADMIN */

.foto-admin {
    width: 38px;
    height: 38px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid #e8f5ec;

    display: block;
}


/* FOTO DEFAULT JIKA BELUM ADA */

.foto-admin-default {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #087443;
    color: #ffffff;
}

.foto-admin-default i {
    font-size: 15px;
}


/* =====================================================
   JUDUL DASHBOARD
   ===================================================== */

.content>h1 {
    max-width: 1000px;
    margin: 0 auto 5px;

    color: #193e30;
    font-size: 25px;
    font-weight: 700;
}

.content>h1+p {
    max-width: 1000px;
    margin: 0 auto 24px;

    color: #7b8c85;
    font-size: 11px;
}


/* =====================================================
   CARDS
   ===================================================== */

.cards {
    max-width: 1000px;
    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;
}


/* LINK CARD */

.card-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}


/* CARD */

.card {
    min-height: 145px;

    padding: 21px 20px;

    border-radius: 12px;

    background: #ffffff;

    box-shadow: 0 5px 18px rgba(25, 80, 60, 0.07);

    border: 1px solid #edf3ef;

    transition: 0.2s ease;

    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";

    position: absolute;

    width: 60px;
    height: 60px;

    right: -18px;
    bottom: -20px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.25);
}

.card:hover {
    transform: translateY(-4px);

    box-shadow: 0 9px 22px rgba(25, 80, 60, 0.11);
}


/* ICON CARD */

.card>i {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    margin-bottom: 12px;

    font-size: 17px;
}


/* ANGKA */

.card h2 {
    font-size: 24px;
    line-height: 1;

    margin-bottom: 7px;

    font-weight: 700;
}


/* LABEL */

.card p {
    color: #718078;
    font-size: 11px;
    font-weight: 500;
}


/* =====================================================
   WARNA CARD
   ===================================================== */


/* HIJAU */

.card.hijau>i {
    background: #e8f5ec;
    color: #087443;
}

.card.hijau h2 {
    color: #087443;
}


/* BIRU */

.card.biru>i {
    background: #eaf2fb;
    color: #3275ad;
}

.card.biru h2 {
    color: #3275ad;
}


/* ORANGE */

.card.orange>i {
    background: #fff3df;
    color: #d98b22;
}

.card.orange h2 {
    color: #d98b22;
}


/* MERAH */

.card.merah>i {
    background: #fff0f0;
    color: #d34b4b;
}

.card.merah h2 {
    color: #d34b4b;
}


/* =====================================================
   HILANGKAN UNDERLINE CARD
   ===================================================== */

.card-link i,
.card-link h2,
.card-link p {
    text-decoration: none !important;
}


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

@media (max-width: 1000px) {

    .sidebar {
        width: 220px;
    }

    .content {
        width: calc(100% - 220px);
        margin-left: 220px;

        padding: 25px 25px 40px;
    }

    .logo h2 {
        font-size: 19px;
    }

    .sidebar li>a {
        padding-left: 22px;
        padding-right: 20px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}


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

@media (max-width: 700px) {

    .wrapper {
        display: block;
    }

    .sidebar {
        position: relative;

        width: 100%;
        min-height: auto;
    }

    .logo {
        height: 135px;
    }

    .logo img {
        width: 58px;
        height: 58px;
        margin-bottom: 8px;
    }

    .logo h2 {
        font-size: 18px;
    }

    .sidebar>ul {
        padding: 5px 0 10px;
    }

    .sidebar li>a {
        height: 44px;
        padding: 0 22px;
    }

    .content {
        width: 100%;
        margin-left: 0;

        padding: 18px 15px 30px;
    }

    .topbar {
        margin-bottom: 25px;
        padding: 11px 13px;
    }

    .search-box {
        width: 100%;
    }

    .admin-info {
        display: none;
    }

    .content>h1 {
        font-size: 21px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 125px;
    }
}


/* =====================================================
   MOBILE KECIL
   ===================================================== */

@media (max-width: 480px) {

    .content {
        padding: 15px 12px 25px;
    }

    .topbar {
        border-radius: 9px;
    }

    .content>h1 {
        font-size: 19px;
    }

    .content>h1+p {
        font-size: 10px;
    }

    .card {
        padding: 18px;
    }

    .card h2 {
        font-size: 22px;
    }
}