* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  font-family: Arial, sans-serif;
  color: #2b2b2b;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 140, 0, 0.35), transparent 35%),
    linear-gradient(135deg, #fff7ed, #f8fafc);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #9a3412;
  letter-spacing: 1px;
}

.btn-admin,
button {
  display: inline-block;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.btn-admin:hover,
button:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
  transform: translateY(-1px);
}

button:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.filter-box {
  margin-top: 20px;
  padding: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.12);
}

.filter-box input,
.filter-box select,
input {
  padding: 11px 13px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  outline: none;
}

.filter-box input {
  flex: 1;
  min-width: 240px;
}

.filter-box input:focus,
.filter-box select:focus,
input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;

  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

th {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 13px;
  text-align: left;
  font-size: 14px;
}

td {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
  font-size: 14px;
}

tr:nth-child(even) {
  background: rgba(255, 237, 213, 0.35);
}

tr:hover {
  background: rgba(251, 146, 60, 0.18);
}

.pagination {
  margin-top: 20px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 18px;
}

#pageInfo {
  font-weight: bold;
  color: #9a3412;
}

#loginBox {
  max-width: 380px;
  margin: 30px auto;
  padding: 22px;

  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

#loginInfo {
  color: #dc2626;
  font-size: 14px;
}

@media (max-width: 768px) {
  body {
    padding: 14px;
    background:
      radial-gradient(circle at top, rgba(249, 115, 22, 0.35), transparent 30%),
      linear-gradient(180deg, #fff7ed, #ffffff);
  }

  h1 {
    font-size: 24px;
    line-height: 1.25;
    margin-top: 8px;
    margin-bottom: 18px;
  }

  .btn-admin,
  button {
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    font-size: 14px;
  }

  .filter-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    margin-top: 18px;
    border-radius: 22px;
  }

  .filter-box input,
  .filter-box select,
  input {
    width: 100%;
    border-radius: 14px;
    font-size: 14px;
    padding: 13px;
  }

  table {
    display: block;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    overflow: visible;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 14px;
    margin-top: 18px;
  }

  tr {
    display: block;
    padding: 14px;
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(249, 115, 22, 0.18);
    box-shadow: 0 14px 35px rgba(249, 115, 22, 0.12);
  }

  tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.68);
  }

  tr:hover {
    background: rgba(255, 247, 237, 0.9);
  }

  td {
    display: flex;
    justify-content: space-between;
    gap: 14px;

    padding: 10px 0;
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);

    font-size: 14px;
    text-align: right;
    word-break: break-word;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #9a3412;
    text-align: left;
    min-width: 95px;
  }

  td[data-label="Nama"] {
    display: block;
    text-align: left;
    font-size: 16px;
    font-weight: 800;
    color: #7c2d12;
    padding-bottom: 12px;
  }

  td[data-label="Nama"]::before {
    display: block;
    content: "Nama";
    font-size: 12px;
    margin-bottom: 4px;
    color: #ea580c;
  }

  .pagination {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
  }

  #pageInfo,
  #pageInfoAdmin {
    display: block;
    text-align: center;
    font-size: 14px;
    order: -1;
  }

  #loginBox {
    margin: 22px auto;
    padding: 18px;
    border-radius: 22px;
  }
}

th {
  user-select: none;
}

th:hover {
  filter: brightness(1.08);
  cursor: pointer;
}
