/* ========================= */
/* GLOBAL                    */
/* ========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f7fb;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================= */
/* LAYOUT                    */
/* ========================= */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ========================= */
/* SIDEBAR                   */
/* ========================= */
.sidebar {
    width: 260px;
    background: #0f172a;
    color: #fff;
    padding: 20px;
}

.sidebar-brand {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-brand img {
    width: 70px;
    margin-bottom: 10px;
}

.sidebar-brand h2 {
    font-size: 18px;
}

.sidebar-brand span {
    font-size: 13px;
    opacity: 0.8;
}

.sidebar-menu a {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.05);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #2563eb;
}

.btn-sidebar {
    background: #22c55e !important;
    text-align: center;
}

/* ========================= */
/* CONTENT                   */
/* ========================= */
.content {
    flex: 1;
    padding: 30px;
}

/* ========================= */
/* HERO                      */
/* ========================= */
.hero {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 28px;
}

.hero p {
    margin-top: 10px;
    font-size: 15px;
}

.hero-btn {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
}

.btn.primary {
    background: #22c55e;
    color: #fff;
}

/* ========================= */
/* SECTION & CARD            */
/* ========================= */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.bg-soft {
    background: #eef2ff;
    padding: 20px;
    border-radius: 12px;
}

.card,
.info-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ========================= */
/* GRID                      */
/* ========================= */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ========================= */
/* SELECT                    */
/* ========================= */
.select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* ========================= */
/* FOOTER                    */
/* ========================= */
.footer {
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

/* ========================= */
/* RESPONSIVE MOBILE (HP)    */
/* ========================= */
@media (max-width: 768px) {

    .layout {
        flex-direction: column;
    }

    /* SIDEBAR JADI TOP NAV */
    .sidebar {
        width: 100%;
        padding: 15px;
    }

    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .sidebar-brand img {
        width: 45px;
    }

    .sidebar-brand h2 {
        font-size: 16px;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .sidebar-menu a {
        flex: 1 1 48%;
        text-align: center;
        font-size: 13px;
    }

    /* CONTENT */
    .content {
        padding: 16px;
    }

    /* HERO */
    .hero {
        padding: 24px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-btn .btn {
        width: 100%;
        text-align: center;
    }

    /* GRID JADI 1 KOLOM */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

}
