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

:root {
  --cream: #faf9fb;
  --sand: #ece6f0;
  --stone: #c7bdd2;
  --lilac: #8d72a8;
  --lilac-light: #c8b6dc;
  --lilac-pale: #f1eaf6;
  --dark: #1c1c1c;
  --mid: #4a4a4a;
  --muted: #8a8a8a;
  --white: #ffffff;

  --font-display: "Cormorant Garant", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius-card: 4px;
  --radius-pill: 100px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  height: 68px;
  background: rgba(250, 249, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--dark);
  text-transform: uppercase;
}
.logo span {
  color: var(--lilac);
}

.nav-menu {
  display: flex;
  gap: 36px;
}
.nav-menu a {
  text-decoration: none;
  color: var(--mid);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--dark);
}
.nav-menu a.active {
  border-bottom: 1px solid var(--dark);
  padding-bottom: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  font-size: 18px;
  color: var(--dark);
  text-decoration: none;
  transition: color var(--transition);
}
.icon-btn:hover {
  color: var(--lilac);
}

.user-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  padding: 6px 14px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-pill);
}
.logout-btn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--dark);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
}
.logout-btn:hover {
  background: var(--lilac);
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  padding: 60px 6% 52px;
}
.page-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-eyebrow span {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--lilac);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--lilac);
}
.page-hero p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
}

/* ── HISTORY SECTION ── */
.history-section {
  padding: 60px 6% 100px;
}

.history-wrapper {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.history-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--sand);
}
.history-title h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--dark);
}
#history-count {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--stone);
}

/* ── TABLE ── */
.table-responsive {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}
.history-table thead {
  background: var(--cream);
}
.history-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--sand);
}
.history-table td {
  padding: 20px;
  border-bottom: 1px solid var(--sand);
  font-size: 14px;
  color: var(--mid);
  vertical-align: middle;
}
.history-table tbody tr:hover {
  background: var(--lilac-pale);
}
.history-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.status-badge.selesai {
  background: #edf7f0;
  color: #2d7a4f;
  border: 1px solid #b8dfc9;
}
.status-badge.proses {
  background: var(--lilac-pale);
  color: var(--lilac);
  border: 1px solid var(--lilac-light);
}
.status-badge.batal {
  background: #fdf2f2;
  color: #a33232;
  border: 1px solid #f0c0c0;
}

/* ── DETAIL BUTTON ── */
.detail-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--dark);
  background: transparent;
  border: 1px solid var(--stone);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.detail-btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

/* ── EMPTY STATE ── */
.empty-history {
  text-align: center;
  padding: 80px 20px !important;
}
.empty-history h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 10px;
}
.empty-history p {
  color: var(--muted);
  font-size: 14px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--sand);
  padding: 36px 6%;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark);
}
.footer-logo span {
  color: var(--lilac);
}
footer p {
  font-size: 12px;
  color: var(--muted);
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .navbar {
    padding: 0 5%;
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px;
  }
  .nav-menu {
    order: 3;
    width: 100%;
    gap: 18px;
    padding-bottom: 4px;
  }
  .page-hero {
    padding: 36px 5% 40px;
  }
  .history-section {
    padding: 36px 5% 60px;
  }
  .history-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .history-table {
    min-width: 700px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
