body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #f1f5f9;
    padding: 0;
    color: #1e293b;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e3a8a;
    color: white;
    padding: 0 20px;
    height: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-left .logo {
    height: 150px;
}

.navbar-right a {
    color: white;
    text-decoration: none;
    margin-left: 24px;
    font-weight: 600;
    transition: 0.2s ease;
}

.navbar-right a:hover {
    text-decoration: underline;
    color: #93c5fd;
}

.judul-laman {
    text-align: center;
}

/* Filter */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px;
}

.filter-section input,
.filter-section select,
.filter-section button {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 4px;
}

.filter-section button {
    background-color: #1e3a8a;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.filter-section button:hover {
    background-color: #3b82f6;
}

label {
    margin-top: 10px;
}

/* Data Output */
.result-container {
    margin: 0 auto 40px auto;
    max-width: 800px;
    padding: 0 16px;
}

.entry {
    background: #ffffff;
    padding: 20px 24px;
    margin-bottom: 20px;
    border-left: 6px solid #3b82f6;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: 0.2s ease;
}

.entry:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.entry b {
    color: #1e3a8a;
}

.entry a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

.entry a:hover {
    text-decoration: underline;
}

/* Pagination */
/* Pagination */
.pagination-container{
  display:flex;
  flex-wrap:wrap;               /* bisa turun baris rapi */
  justify-content:center;
  gap:.5rem;                    /* jarak antar item */
  margin:30px 0;
}

.pagination-container button,
.pagination-container .page-ellipsis{
  display:inline-flex;          /* biar bisa center vertikal */
  align-items:center;
  justify-content:center;
  min-width:36px;               /* ukuran konsisten */
  height:36px;
  padding:0 .6rem;              /* tidak bikin tinggi dobel */
  background-color:#e5e7eb;
  border:1px solid #cbd5e1;
  border-radius:8px;
  font-weight:600;
  line-height:1;                /* cegah teks “menyundul” */
  cursor:pointer;
  user-select:none;
}

.pagination-container button:hover{
  background-color:#d1d5db;
}

.pagination-container .active-page{
  background-color:#1e3a8a;
  color:#fff;
  border-color:#1e3a8a;
}

.pagination-container .is-disabled{
  opacity:.5;
  cursor:not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-section input,
    .filter-section select,
    .filter-section button {
        width: 100%;
        box-sizing: border-box;
    }

    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px;
        text-align: center;
    }

    .navbar-left,
    .navbar-right {
        margin: 6px 0;
    }

    .result-container {
        padding: 0 12px;
    }
}

/* Tambahan style table & toggle */
.toggle-mode {
    text-align: center;
    margin: 10px 0 0 0;
}

.toggle-mode button {
    padding: 10px 18px;
    font-weight: bold;
    background-color: #1e3a8a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 10px;
}

.toggle-mode button:hover {
    background-color: #3b82f6;
}

.table-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 16px;
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.table-container th,
.table-container td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #bfc9da;
    /* border semua sisi antar cell */
    background: white;
}

.table-container th {
    background-color: #1e3a8a;
    color: white;
    font-weight: bold;
}

.table-container tr:hover td {
    background-color: #f1f5f9;
}

/* Rounded corners for outer table only */
.table-container table thead th:first-child {
    border-top-left-radius: 8px;
}

.table-container table thead th:last-child {
    border-top-right-radius: 8px;
}

.table-container table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.table-container table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}