:root {
  --accent: #46aed3;
  --accent-strong: #4292a7;
  --accent-deep: #181d34;
  --accent-ink: #343333;
  --accent-hover: #4292a7;
  --accent-soft: #f1f3f4;
  --text: #343333;
  --text-on-accent: #f1f3f4;
  --muted: #5f6574;
  --bg: #f1f3f4;
  --panel: #ffffff;
  --border: #d7dde0;
  --line: #d7dde0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(70, 174, 211, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fafb 0%, var(--bg) 100%);
}

button, input, select, textarea, table, th, td, a {
  font-family: inherit;
}

a { color: var(--accent-deep); }

h1, h2, h3, h4, h5, h6 {
  font-size: 27px;
  color: var(--text);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
}

.nav-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(70, 174, 211, 0.14) 0%, rgba(70, 174, 211, 0) 22%),
    linear-gradient(180deg, #1c223d 0%, var(--accent-deep) 100%);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 12px 0 24px rgba(24, 29, 52, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
  color: var(--text-on-accent);
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
}

.menu {
  display: grid;
  gap: 6px;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-on-accent);
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.menu a:hover {
  background: var(--accent-hover);
  color: var(--text-on-accent);
  box-shadow: 0 8px 20px rgba(24, 29, 52, 0.18);
  transform: translateY(-1px);
}

.menu a.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--text-on-accent);
  box-shadow: 0 8px 20px rgba(24, 29, 52, 0.22);
  transform: translateY(-1px);
}

.menu a i {
  width: 18px;
  text-align: center;
}

.menu-accordion {
  margin: 0;
}

.menu-accordion > summary {
  list-style: none;
}

.menu-accordion > summary::-webkit-details-marker {
  display: none;
}

.menu-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--text-on-accent);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.menu-accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-accordion-title i {
  width: 18px;
  text-align: center;
}

.menu-accordion-trigger:hover {
  background: var(--accent-hover);
  color: var(--text-on-accent);
  box-shadow: 0 8px 20px rgba(24, 29, 52, 0.18);
  transform: translateY(-1px);
}

.menu-accordion-trigger.is-active {
  background: transparent;
  color: var(--text-on-accent);
  box-shadow: none;
  transform: none;
}

.menu-accordion-chevron {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.menu-accordion[open] .menu-accordion-chevron {
  transform: rotate(180deg);
}

.menu-accordion-items {
  display: grid;
  gap: 6px;
  padding: 0 0 0 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease, padding-top 0.28s ease;
}

.menu-accordion[open] .menu-accordion-items {
  max-height: 320px;
  opacity: 1;
  padding-top: 6px;
}

/* Tighter left-nav density for Job Seeker dashboard */
body.role-job_seeker .menu {
  gap: 6px;
}

body.role-job_seeker .menu a {
  font-size: 16px;
  padding: 6px 10px;
}

body.role-job_seeker .menu-accordion-trigger {
  font-size: 16px;
  padding: 6px 10px;
}

.user-block {
  margin-top: auto;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(241, 243, 244, 0.1);
  border: 1px solid rgba(241, 243, 244, 0.14);
  color: var(--text-on-accent);
}

.user-block p {
  margin: 6px 0 0;
  color: rgba(241, 243, 244, 0.78);
  word-break: break-word;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px;
}

.hero {
  background:
    linear-gradient(135deg, rgba(70, 174, 211, 0.18) 0%, rgba(66, 146, 167, 0.12) 42%, rgba(24, 29, 52, 0.08) 100%),
    #ffffff;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(66, 146, 167, 0.18);
}

.hero h1 { margin: 0 0 10px; font-size: 27px; }
.hero p { margin: 0 0 16px; color: var(--muted); max-width: 70ch; }

.card {
  background: var(--panel);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .05);
}

.form p { display: grid; gap: 6px; margin: 12px 0; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cacaca;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 100px; }

.form-inline {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

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

.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.btn {
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 16px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
.btn:active {
  background: var(--accent-deep);
  color: var(--text-on-accent);
  box-shadow: 0 8px 18px rgba(24, 29, 52, 0.18);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--accent-ink);
  color: var(--text-on-accent);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-secondary:active {
  background: var(--accent-deep);
  color: var(--text-on-accent);
}

.flash {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}

.flash.success { background: #ecf9ea; }
.flash.error { background: #fff0f0; }

.toast-stack {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  z-index: 2100;
  pointer-events: none;
}

.toast {
  min-width: min(360px, calc(100vw - 40px));
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast-success { background: #2e7d32; }
.toast-error { background: #c62828; }
.toast-info { background: #263238; }

.toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}

.metric { font-size: 48px; font-weight: 700; margin: 10px 0 0; }
.muted { color: var(--muted); }

.required-asterisk {
  color: #000;
  font-weight: 700;
  margin-left: 4px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.wizard-step {
  text-align: center;
  border-radius: 8px;
  padding: 8px;
  background: #f7fafb;
}

.wizard-step.active {
  background: rgba(70, 174, 211, 0.18);
}

.recruiter-stepper {
  --recruiter-step-width: 130px;
  list-style: none;
  margin: 0;
  padding: 6px 0 2px;
  display: grid;
  grid-template-columns: repeat(6, var(--recruiter-step-width));
  justify-content: start;
  width: max-content;
  max-width: 100%;
  gap: 0;
}

.wizard-step-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 74px;
  text-align: left;
}

.wizard-step-node::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: var(--recruiter-step-width);
  height: 2px;
  background: #bfd0d6;
}

.wizard-step-node:last-child::after {
  display: none;
}

.wizard-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #030303;
  border: 0;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.wizard-step-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 1;
  font-size: 14px;
}

.wizard-step-label {
  font-size: 15px;
  color: #4b4f56;
  line-height: 1.2;
  margin-top: 0;
}

.wizard-step-node.is-complete .wizard-step-icon,
.wizard-step-node.is-active .wizard-step-icon {
  background: var(--accent);
  color: var(--text-on-accent);
}

.wizard-step-node.is-complete::after {
  background: var(--accent);
}

.wizard-step-node.is-active .wizard-step-icon {
  box-shadow: none;
}

.wizard-step-node.is-active .wizard-step-label {
  color: var(--accent-deep);
  font-weight: 700;
}

.recruiter-stepper-card {
  margin-bottom: 7px;
}

.recruiter-wizard-form h3 {
  margin: 0 0 16px;
}

.recruiter-step6-fields {
  display: grid;
  gap: 14px;
}

.wizard-nav {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-table-shell {
  padding: 20px;
  overflow: visible;
}

.admin-view-shell {
  padding: 0;
}

.admin-view-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-view-header h2 {
  margin: 0;
}

.admin-view-header .muted {
  margin: 6px 0 0;
}

.recruiter-candidate-filter {
  width: min(360px, 100%);
  margin-left: auto;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.recruiter-candidate-filter.field.custom-select-field .custom-select-trigger {
  border: 0;
  box-shadow: none;
}

.recruiter-candidate-filter.field.custom-select-field .custom-select-trigger:focus-visible,
.recruiter-candidate-filter.field.custom-select-field.is-open .custom-select-trigger {
  border: 0;
  box-shadow: none;
}

/* Keep candidates header filter trigger borderless (override generic field custom-select rule) */
.admin-view-header .recruiter-candidate-filter.field.custom-select-field .custom-select-trigger,
.admin-view-header .recruiter-candidate-filter.field.custom-select-field .custom-select-trigger:focus-visible,
.admin-view-header .recruiter-candidate-filter.field.custom-select-field.is-open .custom-select-trigger {
  border: 0;
  box-shadow: none;
}

.admin-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}

.admin-table-toolbar h2 {
  margin: 0;
}

.admin-table-toolbar .muted {
  margin: 6px 0 0;
}

.admin-table-search-wrap {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.admin-table-search-wrap input {
  width: 350px;
  max-width: 100%;
}

.admin-table-search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(70, 174, 211, 0.24);
  outline: none;
}

.admin-view-shell .form-grid input:focus,
.admin-view-shell .form-grid select:focus,
.admin-view-shell .form-grid textarea:focus,
.modal .form-grid input:focus,
.modal .form-grid select:focus,
.modal .form-grid textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(70, 174, 211, 0.24);
  outline: none;
}

.table-wrap {
  overflow: visible;
  margin-top: 14px;
  position: relative;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.admin-table th {
  text-align: left;
  font-size: 14px;
  padding: 10px 12px;
  color: var(--text-on-accent);
  background: var(--accent-strong);
}

.profile-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.profile-data-table th {
  text-align: left;
  font-size: 14px;
  padding: 10px 12px;
  color: var(--text-on-accent);
  background: var(--accent-strong);
}

.profile-data-table td {
  padding: 10px 12px;
  background: #fff;
}

.profile-data-table tr:nth-child(even) td {
  background: #f7fafb;
}

.admin-table td {
  padding: 12px;
  color: var(--text);
}

.admin-table-actions-col {
  width: 64px;
  text-align: right;
}

.admin-table-actions-cell {
  text-align: right;
  position: relative;
}

.table-row-actions {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  z-index: 1;
}

.table-row-actions.is-open {
  z-index: 40;
}

.row-action-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.row-action-toggle:hover,
.row-action-toggle:focus-visible {
  background: var(--accent);
  color: var(--text-on-accent);
  outline: none;
}

.row-action-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 180px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 19, 33, 0.16);
  padding: 8px;
  display: none;
  z-index: 41;
}

.table-row-actions.is-open .row-action-menu {
  display: grid;
  gap: 4px;
}

.row-action-item {
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  display: block;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.row-action-item:visited {
  color: var(--text);
}

.row-action-item:hover,
.row-action-item:focus-visible {
  background: rgba(66, 146, 167, 0.14);
  color: var(--accent-deep);
  outline: none;
}

.row-action-item-danger:hover,
.row-action-item-danger:focus-visible {
  background: #ffe7e7;
  color: #a41212;
}

.manage-status-form {
  width: 100%;
}

.manage-status-toggle {
  width: 100%;
  min-width: 140px;
}

.status-toggle-group {
  width: 100%;
  min-width: 170px;
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.status-toggle-btn {
  flex: 1 1 50%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.status-toggle-btn + .status-toggle-btn {
  border-left: 1px solid var(--line);
}

.status-toggle-btn:hover,
.status-toggle-btn:focus-visible {
  background: #f3f4f6;
  outline: none;
}

.status-toggle-btn.is-active {
  background: var(--accent);
  color: var(--text-on-accent);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pill-open {
  color: #0f7a36;
  background: #eaf8ef;
  border-color: #bde8cb;
}

.status-pill-closed {
  color: #9e1220;
  background: #fdecee;
  border-color: #f6c0c7;
}

.status-pill-paused {
  color: #8a5b09;
  background: #fff7e6;
  border-color: #f5dfac;
}

.candidate-decision-pill-no-option {
  color: #6b7280;
  background: #f3f4f6;
  border-color: #d1d5db;
}

.candidate-decision-pill-not-selected {
  color: #a61f24;
  background: #fdecec;
  border-color: #f3b4b7;
}

.candidate-decision-pill-selected {
  color: #0f7a36;
  background: #eaf8ef;
  border-color: #bde8cb;
}

.candidate-decision-pill-employed {
  color: #1d4ed8;
  background: #eaf2ff;
  border-color: #bfd4ff;
}

.admin-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.admin-table tbody tr:nth-child(even) td {
  background: #f7fafb;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
}

.modal-dialog {
  position: relative;
  width: min(620px, 92vw);
  margin: 50vh auto 0;
  padding: 30px;
  opacity: 0;
  transform: translateY(calc(-50% + 16px));
}

.modal.open .modal-dialog {
  animation: fadeSlideUp .2s ease forwards;
}

.modal.closing .modal-dialog {
  animation: fadeSlideOut .2s ease forwards;
}

.fade-up {
  animation: fadeSlideUp .25s ease;
}

.modal-dialog h3 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.2;
  text-align: left;
}

#editRecruiterJobModal .modal-dialog {
  width: min(980px, 94vw);
  max-height: 80vh;
  overflow-y: auto;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#deleteJobSeekerMessage {
  color: var(--text);
}

.two-col-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(calc(-50% + 20px)); }
  to { opacity: 1; transform: translateY(-50%); }
}

@keyframes fadeSlideOut {
  from { opacity: 1; transform: translateY(-50%); }
  to { opacity: 0; transform: translateY(calc(-50% + 20px)); }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .nav-panel {
    position: static;
    height: auto;
    box-shadow: none;
  }
  .wizard-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .recruiter-stepper {
    --recruiter-step-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 16px;
  }
  .wizard-step-node {
    min-height: 90px;
  }
  .container {
    padding: 24px;
  }
  .admin-view-shell {
    padding: 0;
  }
  .admin-view-header {
    align-items: start;
    flex-direction: column;
  }
  .two-col-fields {
    grid-template-columns: 1fr;
  }
}

/* Auth pages aligned to reference-code structure/styling */
body.page-auth .app-shell { display: block; }
body.page-auth .nav-panel { display: none; }
body.page-auth .container { width: 100%; margin: 0; padding: 0; }
body.page-auth { min-height: 100vh; display: block; padding: 0; }

.auth-shell { width: 100%; min-height: 100vh; }

.auth-card {
  display: grid;
  grid-template-columns: 13fr 7fr;
  min-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.auth-aside {
  background: var(--accent-ink);
  color: #f7fafc;
  padding: 56px 60px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-aside-visual {
  background-image:
    linear-gradient(rgba(24, 29, 52, 0.42), rgba(24, 29, 52, 0.42)),
    linear-gradient(135deg, #46aed3 0%, #4292a7 42%, #181d34 100%);
  background-size: cover;
  background-position: center;
}

.auth-aside-logo {
  width: min(320px, 84%);
  height: auto;
  display: block;
  margin-bottom: 0;
}

.auth-aside-content {
  margin-top: auto;
  margin-bottom: auto;
  display: grid;
  gap: 22px;
  justify-items: start;
  width: min(560px, 100%);
}

.auth-aside-copy {
  margin: 0;
  max-width: 40ch;
  font-size: 18px;
  line-height: 1.55;
  color: #ffffff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 500;
  color: #d9f4fb;
  margin: 0;
}

.auth-aside-title {
  margin: 0;
  font-size: 48px;
  line-height: 1.15;
  color: #ffffff;
}

.feature-slider {
  position: relative;
  min-height: 300px;
  padding-bottom: 54px;
}

.feature-slide {
  opacity: 0;
  transform: translateX(96px);
  transition: opacity 0.42s ease, transform 0.42s ease;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.feature-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.feature-slide.is-exiting {
  opacity: 0;
  transform: translateX(-96px);
  pointer-events: none;
}

.feature-slide h3 {
  margin: 0 0 8px;
  font-size: 48px;
  line-height: 1.08;
  color: #ffffff;
}

.feature-slide p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: #e3f5fa;
  max-width: 42ch;
}

.feature-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 320px;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.feature-dot.is-active { background: #ffffff; }

.auth-main {
  background:
    linear-gradient(180deg, rgba(70, 174, 211, 0.06) 0%, rgba(70, 174, 211, 0) 18%),
    #f8fbfc;
  padding: 42px;
  display: grid;
  align-content: center;
  gap: 0;
}

.auth-main-title { font-size: 34px; line-height: 1.05; margin: 0; }
.muted { color: #6b7280; }
.auth-switch { margin-top: 14px; }
.auth-main > .muted:not(.auth-switch) { margin: 20px 0; }
.auth-main form { margin-top: 0; }
.auth-main .form-grid { margin-top: 0; }
.auth-main .form-grid .row-split + .btn-block { margin-top: 15px; }

.form-grid { margin-top: 12px; display: grid; gap: 14px; }

.field { position: relative; display: grid; gap: 7px; }

/* Job seeker dashboard forms follow the same spacing as admin edit seeker modal */
.seeker-dashboard-form.form-grid {
  margin-top: 12px;
  gap: 14px;
}

.seeker-dashboard-form .field {
  gap: 7px;
}

.seeker-dashboard-form .two-col-fields {
  gap: 12px;
}

.seeker-dashboard-form .modal-actions {
  margin-top: 24px;
  gap: 10px;
}

/* Match admin edit job seeker modal field styling exactly */
.seeker-dashboard-form input,
.seeker-dashboard-form select,
.seeker-dashboard-form textarea,
.seeker-dashboard-form .custom-select-trigger {
  width: 100%;
  border: 1px solid #cacaca;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.seeker-dashboard-form input[type="checkbox"] {
  width: 8px;
  height: 8px;
  padding: 6px;
}

.seeker-dashboard-form input[type="radio"] {
  width: 12px;
  height: 12px;
  padding: 7px;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.seeker-dashboard-form input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  background: var(--accent);
}

.seeker-dashboard-form input[type="radio"]:hover,
.seeker-dashboard-form input[type="radio"]:active {
  background: #fff;
  border-color: #94a3b8;
  box-shadow: none;
}

.seeker-dashboard-form input[type="radio"]:checked {
  background: #fff;
  border-color: var(--accent);
  box-shadow: none;
}

.seeker-dashboard-form input[type="radio"]:checked::before {
  transform: scale(1);
}

.seeker-radio-row {
  display: inline-flex;
  gap: 14px;
}

.seeker-radio-inline {
  font-weight: 400;
}

.seeker-dashboard-form .seeker-radio-row .remember-inline {
  font-weight: 400;
}

/* File picker button style matches yellow form buttons */
.seeker-dashboard-form input[type="file"]::file-selector-button,
.admin-view-shell .form-grid input[type="file"]::file-selector-button,
.modal .form-grid input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  margin-right: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  background: var(--accent);
  color: var(--text-on-accent);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.seeker-dashboard-form input[type="file"]::file-selector-button:hover,
.seeker-dashboard-form input[type="file"]::file-selector-button:focus-visible,
.admin-view-shell .form-grid input[type="file"]::file-selector-button:hover,
.admin-view-shell .form-grid input[type="file"]::file-selector-button:focus-visible,
.modal .form-grid input[type="file"]::file-selector-button:hover,
.modal .form-grid input[type="file"]::file-selector-button:focus-visible {
  background: var(--accent-deep);
  box-shadow: 0 8px 18px rgba(24, 29, 52, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.seeker-dashboard-form .custom-select-trigger {
  text-align: left;
  padding-right: 34px;
}

.seeker-dashboard-form input:focus,
.seeker-dashboard-form select:focus,
.seeker-dashboard-form textarea:focus,
.seeker-dashboard-form .custom-select-trigger:focus-visible,
.seeker-dashboard-form .field.custom-select-field.is-open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(70, 174, 211, 0.24);
  outline: none;
}

/* Error styling parity with job seeker profile/edit forms */
.seeker-dashboard-form .field.has-error input:not([type="radio"]):not([type="checkbox"]),
.seeker-dashboard-form .field.has-error select,
.seeker-dashboard-form .field.has-error textarea,
.seeker-dashboard-form .field.has-error .custom-select-trigger,
.seeker-dashboard-form .field.has-error .custom-date-trigger {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.seeker-dashboard-form .field.has-error input:focus,
.seeker-dashboard-form .field.has-error select:focus,
.seeker-dashboard-form .field.has-error textarea:focus,
.seeker-dashboard-form .field.has-error .custom-select-trigger:focus-visible,
.seeker-dashboard-form .field.has-error .custom-date-trigger:focus-visible {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.seeker-dashboard-form .field-error-message,
.recruiter-wizard-form .field-error-message {
  color: #ef4444;
}

.field.is-password-field:not(.floating-field) input {
  grid-area: input;
  padding-right: 46px;
}

.field.is-password-field:not(.floating-field) {
  grid-template-areas:
    "label"
    "input";
}

.field.is-password-field:not(.floating-field) > span {
  grid-area: label;
}

.field.is-password-field:not(.floating-field) .password-visibility-toggle {
  grid-area: input;
  justify-self: end;
  align-self: center;
  margin-right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.field.is-password-field .password-visibility-toggle:hover,
.field.is-password-field .password-visibility-toggle:focus-visible {
  background: rgba(66, 146, 167, 0.12);
  outline: none;
}

.floating-field input,
.floating-field select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  padding: 22px 12px 8px;
  font: inherit;
  color: #111827;
  outline: none;
}

.floating-field.custom-select-field {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  padding: 22px 34px 8px 12px;
  font: inherit;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.auth-main .floating-field.custom-select-field .custom-select-trigger {
  min-height: 60px;
  padding-top: 26px;
  padding-bottom: 10px;
}

.auth-main .floating-field input,
.auth-main .floating-field select,
.auth-main .floating-field.custom-select-field .custom-select-trigger {
  border: 0;
}

.custom-select-trigger:focus-visible,
.floating-field.custom-select-field.is-open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(70, 174, 211, 0.24);
  outline: none;
}

.floating-field.custom-select-field .select-chevron {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  font-size: 14px;
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 19, 33, 0.16);
  padding: 8px;
  display: none;
  z-index: 40;
}

.floating-field.custom-select-field.is-open .custom-select-menu {
  display: grid;
  gap: 4px;
}

.field.custom-select-field {
  position: relative;
}

.field.custom-select-field .custom-select-trigger {
  border: 1px solid #cacaca;
  border-radius: 10px;
  padding: 10px 34px 10px 12px;
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.field.custom-select-field .select-chevron {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
}

/* Ensure all dashboard form custom dropdowns use centered chevron alignment */
.admin-view-shell .field.custom-select-field .custom-select-trigger,
.modal .field.custom-select-field .custom-select-trigger {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.admin-view-shell .field.custom-select-field .select-chevron,
.modal .field.custom-select-field .select-chevron {
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

.field.custom-select-field.is-open .custom-select-menu {
  display: grid;
  gap: 4px;
}

.custom-select-option {
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option.is-selected {
  background: rgba(66, 146, 167, 0.14);
  color: var(--accent-deep);
  outline: none;
}

.custom-date-picker {
  position: relative;
}

.custom-date-trigger {
  width: 100%;
  border: 1px solid #cacaca;
  border-radius: 10px;
  padding: 10px 36px 10px 12px;
  font: inherit;
  background: #fff;
  color: #333;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.custom-date-trigger:focus-visible,
.custom-date-picker.is-open .custom-date-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(70, 174, 211, 0.24);
  outline: none;
}

.custom-date-trigger .date-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.custom-date-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 90;
  width: 280px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 19, 33, 0.16);
  padding: 10px;
  display: none;
}

.custom-date-picker.is-open .custom-date-popover {
  display: block;
}

.custom-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #030303;
}

.custom-date-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.custom-date-year {
  position: relative;
}

.custom-date-year-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #030303;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.custom-date-year-trigger i {
  font-size: 11px;
  line-height: 1;
}

.custom-date-year-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 96px;
  max-height: 180px;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(15, 19, 33, 0.18);
  padding: 6px;
  display: none;
  z-index: 5;
}

.custom-date-year.is-open .custom-date-year-menu {
  display: grid;
  gap: 4px;
}

.custom-date-year-option {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.custom-date-year-option:hover,
.custom-date-year-option.is-selected {
  background: var(--accent);
  color: var(--text-on-accent);
}

.custom-date-nav {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--text-on-accent);
  cursor: pointer;
}

.custom-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.custom-date-dow {
  font-size: 12px;
  text-align: center;
  color: #595959;
}

.custom-date-day {
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  height: 30px;
  cursor: pointer;
  font-size: 13px;
}

.custom-date-day:hover {
  background: var(--accent);
  color: var(--text-on-accent);
}

.custom-date-day.is-selected {
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
}

.custom-date-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.floating-field input:focus,
.floating-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(70, 174, 211, 0.24);
  outline: none;
}

.floating-field.is-password-field input { padding-right: 46px; }
.floating-field.is-password-field .password-visibility-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.floating-field.is-password-field .password-visibility-toggle:hover,
.floating-field.is-password-field .password-visibility-toggle:focus-visible {
  background: var(--accent-hover);
  outline: none;
}

.float-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: inherit;
  color: #64748b;
  pointer-events: none;
  transition: top 0.2s ease, transform 0.2s ease, color 0.2s ease, font-size 0.2s ease;
  background: transparent;
  padding: 0;
}

.floating-field:focus-within .float-label,
.floating-field.has-value .float-label {
  top: 4px;
  transform: translateY(0);
  color: var(--accent);
  font-weight: 500;
  font-size: 13px;
}

.row-split { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2px; }

.remember-inline { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.remember-inline input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; width: 8px; height: 8px; border: 1px solid #94a3b8;
  border-radius: 4px; background: #ffffff; display: grid; place-content: center; cursor: pointer; padding: 6px;
}
.remember-inline input[type="checkbox"]::before {
  content: ""; width: 7.5px; height: 7.5px;
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 18%, 84% 3%, 40% 62%);
  transform: scale(0); transform-origin: center; transition: transform 0.12s ease-in-out; background: #ffffff;
}
.remember-inline input[type="checkbox"]:hover,
.remember-inline input[type="checkbox"]:active,
.remember-inline input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); accent-color: var(--accent); }
.remember-inline input[type="checkbox"]:checked::before { transform: scale(1); }

.inline-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.inline-link:hover,
.inline-link:focus-visible { color: var(--accent); text-decoration: underline; }

.btn-block { width: 100%; }
.btn-yellow { background: var(--accent); color: var(--text-on-accent); }

#createJobSeekerBtn .btn-spinner,
#editJobSeekerBtn .btn-spinner,
#deleteJobSeekerBtn .btn-spinner,
#createRecruiterBtn .btn-spinner,
#editRecruiterBtn .btn-spinner,
#deleteRecruiterBtn .btn-spinner,
#saveSmtpSettingsBtn .btn-spinner,
#testSmtpSettingsBtn .btn-spinner,
#stopImpersonationBtn .btn-spinner {
  display: none;
  margin-left: 8px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: conic-gradient(#111 20%, rgba(0, 0, 0, 0.22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation: spin 0.9s linear infinite;
}

#testSmtpSettingsBtn .btn-spinner {
  background: none;
  -webkit-mask: none;
  mask: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
}

#createJobSeekerBtn.is-loading .btn-spinner,
#editJobSeekerBtn.is-loading .btn-spinner,
#deleteJobSeekerBtn.is-loading .btn-spinner,
#createRecruiterBtn.is-loading .btn-spinner,
#editRecruiterBtn.is-loading .btn-spinner,
#deleteRecruiterBtn.is-loading .btn-spinner,
#saveSmtpSettingsBtn.is-loading .btn-spinner,
#testSmtpSettingsBtn.is-loading .btn-spinner,
#stopImpersonationBtn.is-loading .btn-spinner {
  display: inline-block;
}

#authSubmitBtn .btn-spinner {
  display: none;
  margin-left: 8px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: conic-gradient(#111 20%, rgba(0, 0, 0, 0.22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation: spin 0.9s linear infinite;
}

#authSubmitBtn.is-loading .btn-spinner { display: inline-block; }

/* Generic spinner support for any app button that uses .btn-spinner + .is-loading */
.btn .btn-spinner {
  display: none;
  margin-left: 8px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: conic-gradient(#111 20%, rgba(0, 0, 0, 0.22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation: spin 0.9s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .feature-slider { min-height: 240px; }
  .auth-main-title { font-size: 34px; }
  .auth-aside-title,
  .feature-slide h3 { font-size: 36px; }
  .auth-aside-copy,
  .feature-slide p { font-size: 16px; }
}

@media (max-width: 900px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-aside, .auth-main { padding: 32px 24px; }
  .auth-shell,
  .auth-card { min-height: 100vh; }
  .auth-aside-logo { width: min(280px, 78%); }
  .auth-aside-content { width: 100%; }
}

.smtp-settings-card {
  margin-top: 16px;
}

.smtp-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

#stopImpersonationForm {
  margin-top: 10px;
}

.user-block hr {
  border: 0;
  border-top: 1px solid rgba(3, 3, 3, 0.18);
  margin: 12px 0 8px;
}

/* Themed custom date picker (Flatpickr) */
.flatpickr-calendar {
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 19, 33, 0.16);
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #030303;
}

.flatpickr-weekdays {
  background: var(--accent);
}

.flatpickr-weekday {
  color: var(--text-on-accent);
  font-weight: 600;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}

.flatpickr-day.today {
  border-color: var(--accent);
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}

