/* ========== RESET ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  min-height: 100vh;
  color: #e5e7eb;
  background: radial-gradient(circle at 0% 0%, #22c1c3 0, transparent 40%),
    radial-gradient(circle at 100% 0%, #6366f1 0, transparent 35%),
    radial-gradient(circle at 0% 100%, #ec4899 0, transparent 35%),
    radial-gradient(circle at 100% 100%, #f97316 0, transparent 40%),
    #020617;
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* subtle vignette layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.2), transparent),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.4), transparent);
  mix-blend-mode: multiply;
}

/* ========== TOP NAV (simple) ========== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0.8rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.8),
      rgba(15, 23, 42, 0)
    );
}

.logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #e5e7eb;
}

/* ========== MAIN LAYOUT ========== */
.main-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
}

/* iOS liquid glass card */
.center-card {
  width: min(560px, 100%);
  border-radius: 26px;
  padding: 1.6rem 1.8rem 1.8rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: radial-gradient(
        circle at top left,
        rgba(255, 255, 255, 0.22),
        transparent 55%
      )
      border-box,
    linear-gradient(
        145deg,
        rgba(15, 23, 42, 0.8),
        rgba(15, 23, 42, 0.6)
      )
      padding-box;
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.75),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  position: relative;
}

/* soft light highlight top edge */
.center-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 1px solid rgba(248, 250, 252, 0.35);
  border-left: 1px solid rgba(248, 250, 252, 0.18);
  pointer-events: none;
}

/* ========== CARD HEADER ========== */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.card-title-block h1 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f9fafb;
}

.subtitle {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #cbd5f5;
  opacity: 0.9;
}

/* Sign-in block inside card */
.card-signin {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #f9fafb;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.65);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    filter 0.12s ease;
}

.signin-btn img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #ffffff;
  padding: 1px;
}

.signin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.75);
  filter: brightness(1.02);
}

.signin-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.7);
}

.user-info {
  font-size: 0.75rem;
  color: #d1fae5;
  opacity: 0.85;
}

/* ========== FORM ========== */
#searchForm {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

#searchForm label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

#searchForm input[type="text"],
#searchForm input[type="number"] {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.75);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, transform 0.08s ease;
}

#searchForm input::placeholder {
  color: #9ca3af;
}

#searchForm input:focus {
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.95);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.4),
    0 12px 30px rgba(15, 23, 42, 0.9);
  transform: translateY(-0.5px);
}

/* Submit button */
#searchForm button[type="submit"] {
  margin-top: 0.4rem;
  align-self: flex-start;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #f9fafb;
  box-shadow: 0 18px 45px rgba(59, 130, 246, 0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    filter 0.12s ease;
}

#searchForm button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.8);
  filter: brightness(1.04);
}

#searchForm button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.7);
}

/* ========== STATUS & RESULTS ========== */
#statusArea {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: #c7d2fe;
}

#resultsArea {
  margin-top: 0.7rem;
  max-height: 340px;
  overflow: auto;
  border-radius: 14px;
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.96)
  );
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.18);
}

/* keep table styling if you render table inside results */
#resultsArea table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

#resultsArea th,
#resultsArea td {
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid rgba(30, 64, 175, 0.55);
}

#resultsArea th {
  text-align: left;
  font-weight: 600;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
}

#resultsArea tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.95);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .center-card {
    padding: 1.4rem 1.3rem 1.6rem;
    border-radius: 22px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .card-signin {
    align-items: flex-start;
  }
}
.signin-btn img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: transparent;
  padding: 0;
}

/* ===== INDUSTRY DROPDOWN ===== */

.industry-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* main clickable area (looks like input) */
.industry-trigger {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.5rem 0.65rem;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 0.9rem;
  color: #111827;
}

.industry-trigger:hover {
  border-color: #2563eb;
}

.industry-chevron {
  font-size: 0.75rem;
  color: #6b7280;
}

/* dropdown panel */
.industry-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  max-height: 260px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: none; /* toggled via JS */
  z-index: 20;
}

/* search inside dropdown */
.industry-search {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  outline: none;
}

/* options list */
.industry-options {
  max-height: 220px;
  overflow-y: auto;
}

.industry-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.industry-option:hover {
  background: #eff6ff;
}

/* label text */
.industry-option-label {
  flex: 1;
  color: #111827;
}

/* info icon */
.industry-info {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #9ca3af;
  font-size: 0.65rem;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  position: relative;
}

/* tooltip for description */
.industry-info-tooltip {
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 220px;
  max-width: 280px;
  background: rgba(15, 23, 42, 0.98);
  color: #f9fafb;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 0.75rem;
  line-height: 1.2;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.7);
  display: none;
  z-index: 30;
}

.industry-info:hover .industry-info-tooltip {
  display: block;
}

/* everything stays same — only new seniority field styling below */

.seniority-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.seniority-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.seniority-checkbox {
  width: 16px;
  height: 16px;
}


