:root {
  --primary: #00bfa6;
  --primary-dark: #009784;
  --primary-soft: rgba(0, 191, 166, 0.08);
  --bg: #f3f4f6;
  --card-bg: #ffffff;
  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Arial, sans-serif;
  background:
    radial-gradient(circle at top left, #e0f2fe 0, transparent 55%),
    radial-gradient(circle at top right, #ecfdf5 0, transparent 60%),
    linear-gradient(to bottom, #f9fafb, #e5e7eb);
  min-height: 100vh;
  color: var(--text-main);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 32px;
}


/* TOP NAV */

.topnav {
  position: sticky;
  top: 0;
  z-index: 40;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 0 8px;
  margin-bottom: 12px;

  background: rgba(243, 247, 249, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 230, 234, 0.85);
}


.topnav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-pill {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, #e0f2fe 0, transparent 55%),
    linear-gradient(135deg, #00bfa6, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.26);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

.metric-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

/* BUTTONS */

.btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 191, 166, 0.45);
}

.btn-outline {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.btn-outline:hover {
  background: #f9fafb;
}

.btn-ghost {
  background: #ffffff;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: #f3f4f6;
  color: var(--text-main);
}

.btn-secondary {
  background: #111827;
  border-color: #111827;
}

.btn-secondary:hover {
  background: #020617;
  border-color: #020617;
}

/* SEARCH BAR */

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0 14px;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.3);
}

.search-icon {
  font-size: 14px;
  margin-right: 6px;
}

.search-input-wrap input {
  border: none;
  outline: none;
  padding: 9px 0;
  width: 100%;
  font-size: 13px;
  background: transparent;
}

/* -------------------------
   FILTER BAR
-------------------------- */

.filter-shell {
  margin: 24px 0 14px;
}

.filter-bar {
  background: #ffffff;
  padding: 18px 22px 16px;
  border-radius: 24px;
  border: 1px solid rgba(227, 230, 234, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}


.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.filter-item label {
  font-size: 12px;
  font-weight: 600;
  color: #4d4d4d;
  display: block;
  margin-bottom: 4px;
}

.filter-item select,
.filter-item input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #dcdcdc;
  font-size: 14px;
  color: #1f1f1f;
  transition: all .15s ease;
}

.filter-item select:focus,
.filter-item input:focus {
  outline: none;
  border-color: #00BFA6;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0,191,166,0.25);
}

.filter-actions {
  text-align: right;
}

.btn-clear {
  background: #f4f4f4;
  border: 1px solid #d7d7d7;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all .12s ease;
}

.btn-clear:hover {
  background: #eaeaea;
  border-color: #cfcfcf;
}

/* LIST HEADER */

.list-shell {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 16px 14px;
  border: 1px solid #e3e6ea;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
}

.list-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.list-title-block h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.list-title-block p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.list-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 360px;
}

/* PNR LIST */

.pnr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pnr-empty {
  padding: 16px 4px 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* CARD */

.pnr-card {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.9fr);
  gap: 12px;
  align-items: center;
  transition:
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    transform 0.12s ease;
}

.pnr-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.pnr-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pnr-airline-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.pnr-route {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.pnr-dates {
  font-size: 12px;
  color: var(--text-muted);
}

.pnr-meta-row {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--text-soft);
}

.pnr-meta-row span strong {
  color: var(--text-main);
  font-weight: 500;
}

/* RIGHT SIDE */

.pnr-side {
  display: grid;
  gap: 4px;
  align-items: center;
  justify-items: end;
}

.pnr-side-row {
  text-align: right;
}

.pnr-side-label {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pnr-side-value {
  font-size: 13px;
  font-weight: 500;
}

.pnr-price {
  font-size: 15px;
  font-weight: 600;
}

.pnr-chip {
  margin-top: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* CARD ACTION */

.pnr-card-footer {
  margin-top: 4px;
  display: flex;
  justify-content: flex-start;
  font-size: 11px;
  color: var(--text-soft);
}

.pnr-card-footer button {
  font-size: 11px;
}

/* LINK-STYLE BUTTON */

.btn-link {
  border: none;
  background: transparent;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-link::after {
  content: "›";
  font-size: 12px;
}

.btn-link:hover {
  text-decoration: underline;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  padding: 16px;
  z-index: 40;
}

.modal.open {
  display: flex;
}

.card-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 660px;
  width: 100%;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.5);
  padding: 18px 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pnr-id {
  font-size: 11px;
  color: var(--text-soft);
}

.modal-price {
  font-size: 13px;
  font-weight: 500;
  color: #0f766e;
  text-align: right;
}

.route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  font-size: 11px;
  color: var(--text-muted);
}

.pill:first-child {
  background: var(--primary-soft);
  border-color: rgba(0, 191, 166, 0.6);
  color: var(--primary-dark);
}

/* FLIGHT BLOCKS IN MODAL */

.flight-block {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  padding: 10px 12px 9px;
  margin-bottom: 8px;
}

.flight-label {
  font-size: 10px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 2px;
}

.flight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
}

.flight-main {
  font-weight: 500;
}

.flight-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* MODAL ACTIONS */

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .page {
    padding: 14px 10px 24px;
  }

  .topnav {
    flex-direction: column;
    align-items: flex-start;
  }

  .pnr-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }

  .pnr-side {
    justify-items: flex-start;
  }

  .pnr-side-row {
    text-align: left;
  }

  .card-modal {
    padding: 14px 10px 16px;
  }
}

/* -------------------------
   VIEW DETAILS CTA BUTTON
-------------------------- */

.btn-details {
  width: 100%;
  padding: 12px;
  background: #00BFA6;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-top: 8px;
}

.btn-details:hover {
  background: #009784;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,191,166,0.25);
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: #e6f7ff; /* atau pakai warna/gradient yang kamu mau */
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

/* kiri & kanan sejajar */
.topnav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav-brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo-full {
  height: 32px;   /* boleh dinaikkan ke 32 kalau mau lebih besar */
  width: auto;
  display: block;
}

/* -------------------------
   MOBILE TOP NAV TWEAKS
-------------------------- */
@media (max-width: 640px) {
  .topnav {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .topnav-left {
    justify-content: center;
  }

  .topnav-brand {
    justify-content: center;
  }

  .topnav-right {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .topnav-right .metric-pill {
    justify-content: center;
  }

  .topnav-right .btn,
  .topnav-right .btn-outline,
  .topnav-right .btn-ghost {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}

/* -------------------------
   Pagination
-------------------------- */
.pagination-shell {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.btn-page {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.btn-page:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transform: translateY(-0.5px);
}

.btn-page:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.page-info {
  min-width: 110px;
  text-align: center;
}
