:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --blue: #172033;
  --blue-dark: #0b1120;
  --blue-soft: #e8f1ff;
  --orange: #f4a261;
  --orange-soft: #fff3e5;
  --teal: #0f766e;
  --green: #16a34a;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(11, 17, 32, 0.94), rgba(23, 32, 51, 0.76) 360px, rgba(238, 242, 247, 0) 361px),
    radial-gradient(circle at 12% 0%, rgba(244, 162, 97, 0.26), transparent 24rem),
    radial-gradient(circle at 92% 12%, rgba(15, 118, 110, 0.18), transparent 26rem),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 42rem);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 64px;
}

.page-enter {
  animation: page-enter 240ms ease both;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: #fff;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 0;
  font-size: 1rem;
  font-weight: 800;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  animation: icon-glow 2.8s ease-in-out infinite;
  overflow: hidden;
}

.brand-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.topbar-note,
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

.home-link {
  border-color: rgba(244, 162, 97, 0.5);
  background: rgba(244, 162, 97, 0.16);
  color: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.home-link:hover {
  background: var(--orange);
  color: var(--blue-dark);
  box-shadow: 0 12px 24px rgba(244, 162, 97, 0.3);
  transform: translateY(-2px);
}

.hero-panel,
.search-card,
.listing-card,
.detail-hero,
.content-card,
.application-card,
.empty-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 34px;
  align-items: end;
  padding: clamp(30px, 5vw, 58px);
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    radial-gradient(circle at 88% 12%, rgba(244, 162, 97, 0.18), transparent 20rem);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: #b45f21;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-panel h1,
.detail-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 4.6vw, 4.05rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-panel p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-metrics {
  display: grid;
  gap: 12px;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 12px;
  background: #ffffff;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
  font-size: 2rem;
  line-height: 1;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.search-card {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 24px;
  border-color: rgba(203, 213, 225, 0.9);
}

.search-input {
  position: relative;
  display: block;
}

.search-input i {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--muted);
  font-size: 1.25rem;
  transform: translateY(-50%);
}

.search-input input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 16px 0 46px;
  outline: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.filter-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.filter-field select,
.application-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-input input:focus,
.filter-field select:focus,
.application-card input:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.18);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(244, 162, 97, 0.45);
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--blue-dark);
  padding: 7px 12px;
  font-weight: 800;
}

.filter-chip span {
  font-size: 1rem;
}

.info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 162, 97, 0.45);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed, #ecfdf5);
  color: var(--blue);
  font-weight: 700;
}

.info-banner i {
  color: var(--orange);
  font-size: 1.35rem;
}

.results-section {
  margin-top: 34px;
}

.results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.results-heading h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

#resultCount {
  color: var(--muted);
  font-weight: 800;
}

.job-card-list {
  display: grid;
  gap: 16px;
}

.listing-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.listing-card:hover,
.listing-card:focus {
  border-color: rgba(244, 162, 97, 0.6);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.13), 0 0 24px rgba(244, 162, 97, 0.18);
  outline: none;
  transform: translateY(-3px);
}

.listing-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.listing-card h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.job-id {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.45rem;
}

.location-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.location-line i {
  color: var(--orange);
}

.badge-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.badge,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 6px 11px;
  font-size: 0.86rem;
  font-weight: 800;
}

.badge-blue {
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.24);
}

.listing-summary {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 15px;
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.back-button:hover {
  border-color: var(--orange);
  color: var(--blue);
  transform: translateX(-2px);
}

.home-back {
  margin-left: 8px;
  border-color: rgba(244, 162, 97, 0.4);
  background: var(--orange-soft);
}

.detail-hero {
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(circle at 88% 10%, rgba(244, 162, 97, 0.2), transparent 22rem),
    linear-gradient(135deg, #ffffff, #f8fafc);
  border-color: rgba(244, 162, 97, 0.24);
}

.detail-hero-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 800;
}

.detail-tabs {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  gap: 6px;
  margin: 18px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.tab-button {
  min-width: 130px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 12px 18px;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.tab-button:hover {
  background: var(--orange-soft);
  color: var(--blue);
}

.tab-button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: page-enter 220ms ease both;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 18px;
}

.content-card {
  padding: 26px;
}

.summary-card {
  grid-row: span 2;
}

.content-card h2,
.application-card h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.content-card p {
  color: var(--muted);
  line-height: 1.7;
}

.fact-grid {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.fact-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.fact-grid dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-grid dd {
  margin: 0;
  font-weight: 900;
}

.qualification-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qualification-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.5;
}

.qualification-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.stepper {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: var(--line);
}

.stepper li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.stepper li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: -21px;
  width: 12px;
  height: 12px;
  border: 4px solid var(--orange-soft);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 16px rgba(244, 162, 97, 0.45);
}

.primary-cta,
.submit-button,
.resume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-cta,
.submit-button {
  width: 100%;
  margin-top: 18px;
  border: 0;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
}

.primary-cta:hover,
.submit-button:hover {
  background: linear-gradient(135deg, #1f2937, var(--blue-dark));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
  transform: translateY(-2px);
}

.application-card {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
}

.form-heading {
  margin-bottom: 22px;
}

.resume-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px dashed rgba(244, 162, 97, 0.5);
  border-radius: 12px;
  background: #fff7ed;
}

.resume-button {
  border: 1px solid rgba(244, 162, 97, 0.5);
  background: #fff;
  color: var(--blue);
  padding: 0 16px;
}

.resume-button:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

#resumeName {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.application-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 900;
}

.application-card input[readonly] {
  background: var(--surface-soft);
  color: var(--blue);
  font-weight: 900;
}

.empty-card {
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.detail-empty h1 {
  font-size: 2rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: min(360px, calc(100% - 44px));
  padding: 16px 18px;
  border-radius: 12px;
  background: #0f2f22;
  color: #fff;
  box-shadow: var(--shadow);
  animation: page-enter 220ms ease both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes icon-glow {
  0%,
  100% {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  }

  50% {
    box-shadow: 0 18px 40px rgba(244, 162, 97, 0.22);
  }
}

@media (max-width: 860px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .filter-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 22px, 680px);
    margin-top: 14px;
  }

  .topbar,
  .results-heading,
  .listing-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .hero-panel,
  .search-card,
  .listing-card,
  .detail-hero,
  .content-card,
  .application-card {
    border-radius: 12px;
    padding: 18px;
  }

  .hero-panel h1,
  .detail-hero h1 {
    font-size: 2.15rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .detail-tabs {
    top: 0;
  }

  .tab-button {
    flex: 1;
    min-width: 0;
    padding: 11px 10px;
  }

  .badge,
  .detail-meta span,
  .location-line {
    width: 100%;
  }
}
