html, body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
}

header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffff;
}

nav {
    padding: 22px 26px;
    text-align: right;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #38482f;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
}

nav ul li a.active,
nav ul li a:hover {
    color: #80918b;
}

.main-content {
    width: 100%;
    min-height: calc(100vh - 64px); /* tinggi navbar */
    background: url('../images/bg.png') center center / cover no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box; 
}

/* ===== DATA TABLE WRAPPER ===== */
.data-table {
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ===== DATA TOOLS ===== */
.data-tools {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.data-tools label {
    font-size: 14px;
    margin-right: 6px;
}

/* ===== DROPDOWN TAHUN ===== */
#tahun {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 14px;
    background-color: #ffffff;
    color: #333333;
    cursor: pointer;
    transition: 0.3s;
}

#tahun:hover {
    border-color: #38482f;
}

#tahun:focus {
    outline: none;
    border-color: #2f6b3f;
    box-shadow: 0 0 0 2px rgba(56, 72, 47, 0.2);
}

#tahun option {
    padding: 6px 10px;
}

/* ===== TABLE ===== */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: #38482f;
    color: #ffffff;
}

thead th {
    padding: 12px 10px;
    text-align: center;
    font-weight: bold;
}

tbody td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

tbody tr:hover {
    background: #f4f7f4;
}

.pagination {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    min-width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}

.pagination a {
    background: #38482f;
    color: #fff;
    text-decoration: none;
}

.pagination a:hover {
    background: #2c3925;
}

.pagination span.active {
    background: #b0c7b6;
    color: #2c3925;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .main-content {
        padding: 20px 12px;
    }

    /* NAVBAR */
    nav {
        padding: 20px;
        text-align: center;
    }

    nav ul li {
        margin-left: 12px;
    }

    .data-tools {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    #tahun {
        width: 75%;
        font-size: 12px;
    }

    /* TABLE */
    table {
        font-size: 12px;
    }

    thead th,
    tbody td {
        padding: 8px 6px;
    }
}