/* AussieWork Connect — App Pages Stylesheet
   Extends theme.css with page-level components.
   Shared tokens (colors, fonts, nav) live in theme.css.
*/

/* ===================================
   LAYOUT
=================================== */
.app-main {
  min-height: 100vh;
  padding-top: 64px; /* nav height */
}

/* ===================================
   NAVIGATION — app additions
=================================== */
.nav-link-active {
  color: var(--fg) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  transition: all 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    z-index: 99;
  }
  .nav-links.nav-open { display: flex; }
  .nav-hamburger { display: flex; }
}

/* ===================================
   FOOTER
=================================== */
.app-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.app-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.footer-tagline {
  color: var(--fg-muted);
  font-size: 14px;
}

.footer-copy {
  color: var(--fg-dim);
  font-size: 13px;
  margin-top: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--fg-default);
}

@media (max-width: 600px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* Sticky WhatsApp */
.wa-sticky {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-sticky:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ===================================
   BUTTONS
=================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-light); }

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card); color: var(--fg); }

.btn-secondary {
  background: rgba(255,214,10,0.08);
  color: #ffd60a;
  border: 1px solid rgba(255,214,10,0.2);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
}
.btn-secondary:hover { background: rgba(255,214,10,0.15); border-color: rgba(255,214,10,0.4); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; min-height: 36px; }
.btn-danger { color: #ff5f5f !important; }

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  padding: 0;
  text-decoration: underline;
}

/* ===================================
   FORMS
=================================== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-hint {
  font-weight: 400;
  text-transform: none;
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: 0;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-input-file {
  font-size: 14px;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 8px 0;
}

.form-error {
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.3);
  color: #ff6b6b;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}

.form-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section:last-of-type { border-bottom: none; }

.form-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

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

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--fg-muted);
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}

.checkbox-label:has(input:checked) {
  border-color: var(--accent);
  color: var(--fg);
}

.checkbox-label input { accent-color: var(--accent); }

/* ===================================
   AUTH PAGES
=================================== */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.auth-toggle {
  display: flex;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-toggle-btn {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.15s;
}

.auth-toggle-btn.active {
  background: var(--accent);
  color: #fff;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0 8px;
}

.auth-sub {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

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

/* ===================================
   MESSAGE PAGE
=================================== */
.message-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.message-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.message-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.message-body {
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.message-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 700;
}

/* ===================================
   JOBS LIST PAGE
=================================== */
.jobs-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.page-sub {
  color: var(--fg-muted);
  font-size: 16px;
}

.jobs-filters {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-search { flex: 1; min-width: 200px; }
.form-select { min-width: 140px; }

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  cursor: pointer;
  color: var(--fg-muted);
  transition: all 0.15s;
  user-select: none;
}

.chip input[type=checkbox] { display: none; }

.chip-active,
.chip:has(input:checked) {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent-light);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s;
}

.job-card:hover { border-color: var(--border-light); }

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.job-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.job-category-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(232, 108, 46, 0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verified-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.25);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: #34c759;
  letter-spacing: 0.02em;
}

.trust-score {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}

.trust-dot-sm {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-light);
  transition: background 0.15s;
}

.trust-dot-sm.active { background: var(--accent); }

.job-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 4px;
}

.job-employer {
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
}

.job-location,
.job-pay {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--fg-dim);
}

.job-apply-btn {
  margin-top: 8px;
  align-self: flex-start;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.jobs-employer-cta {
  margin-top: 40px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 14px;
}

/* ===================================
   JOB DETAIL PAGE
=================================== */
.detail-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.back-link {
  display: inline-block;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--fg); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.detail-header {
  margin-bottom: 32px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
}

.detail-employer {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--fg-muted);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

.trust-label {
  font-size: 13px;
  color: var(--fg-dim);
}

.trust-detail {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  z-index: 10;
  gap: 6px;
  flex-direction: column;
  white-space: nowrap;
}

.trust-check {
  font-size: 13px;
  color: #34c759;
}

.detail-section {
  margin-bottom: 28px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.detail-text {
  color: var(--fg-muted);
  line-height: 1.7;
  font-size: 15px;
  white-space: pre-line;
}

.visa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visa-tag {
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--fg-muted);
}

/* Apply card (sidebar) */
.apply-card,
.employer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.apply-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.apply-card-sub {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.applied-state {
  text-align: center;
  padding: 8px 0;
}

.applied-check {
  display: block;
  font-size: 28px;
  color: #34c759;
  margin-bottom: 10px;
}

.applied-text {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 6px;
}

.applied-sub {
  color: var(--fg-muted);
  font-size: 13px;
}

.apply-btn { margin-top: 0; }

.employer-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.employer-verified { margin-bottom: 6px; }
.employer-abn-name { font-size: 13px; color: var(--fg-muted); }
.employer-state { font-size: 13px; color: var(--fg-dim); }

/* ===================================
   DASHBOARD PAGES
=================================== */
.dashboard-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.dashboard-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.sidebar-empty {
  font-size: 14px;
  color: var(--fg-muted);
}

.employer-trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* Nudge bar */
.nudge-bar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.nudge-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg-muted);
}

.nudge-items { display: flex; flex-direction: column; gap: 8px; }
.nudge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}

.nudge-icon { font-size: 16px; }

/* Notice bar */
.notice-bar {
  background: var(--accent-glow);
  border: 1px solid rgba(232, 108, 46, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--accent-light);
  margin-bottom: 20px;
}

/* Profile completion prompt banner */
.profile-prompt-banner {
  background: #fff8e1;
  border: 1.5px solid rgba(232, 108, 46, 0.4);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: #5d4037;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.profile-prompt-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.profile-prompt-link:hover { text-decoration: underline; }

/* Flash */
.flash-success {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.25);
  color: #34c759;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}

/* Employer tabs */
.employer-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.employer-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.employer-tab:hover { color: var(--fg); }
.employer-tab-active { color: var(--accent); border-bottom-color: var(--accent); }

/* Listings table */
.listings-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.listing-row {
  background: var(--bg-card);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.listing-info { flex: 1; min-width: 0; }
.listing-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.listing-link { color: var(--fg); text-decoration: none; }
.listing-link:hover { color: var(--accent); }
.listing-meta { font-size: 13px; color: var(--fg-dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.listing-count { color: var(--accent-light); }

.listing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.listing-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.listing-status-active { background: rgba(52,199,89,0.12); color: #34c759; }
.listing-status-paused { background: rgba(255,214,10,0.12); color: #ffd60a; }
.listing-status-filled { background: var(--bg-elevated); color: var(--fg-dim); }
.listing-status-archived { background: var(--bg-elevated); color: var(--fg-dim); }

/* Empty dashboard state */
.empty-state-dashboard {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
}

.empty-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.empty-sub {
  color: var(--fg-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

/* Badge states */
.badge-complete {
  font-size: 12px;
  font-weight: 600;
  color: #34c759;
  background: rgba(52,199,89,0.1);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(52,199,89,0.2);
}

.badge-incomplete {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(232,108,46,0.2);
}

.badge-pending {
  font-size: 11px;
  font-weight: 600;
  color: #ffd60a;
  background: rgba(255,214,10,0.1);
  padding: 3px 8px;
  border-radius: 100px;
}

/* ===================================
   APPLICATIONS VIEW
=================================== */
.job-applications-group {
  margin-bottom: 40px;
}

.app-job-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-count-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-body);
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.candidate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.candidate-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.candidate-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.candidate-avatar-placeholder {
  background: var(--accent-glow);
  border: 1px solid rgba(232,108,46,0.2);
  color: var(--accent-light);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.candidate-info { flex: 1; min-width: 0; }
.candidate-name { font-weight: 600; font-size: 15px; }
.candidate-meta { font-size: 13px; color: var(--fg-muted); }

.candidate-exp { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-chip {
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--fg-muted);
}

.candidate-exp-text { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }
.candidate-avail { font-size: 13px; color: var(--fg-dim); }

.candidate-actions { display: flex; gap: 8px; margin-top: 4px; }

.app-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.app-status-submitted { background: rgba(100,120,255,0.1); color: #8090ff; }
.app-status-viewed { background: rgba(255,214,10,0.1); color: #ffd60a; }
.app-status-contacted { background: rgba(52,199,89,0.1); color: #34c759; }
.app-status-filled { background: var(--bg-elevated); color: var(--fg-dim); }

/* Applications list (worker sidebar) */
.applications-list { display: flex; flex-direction: column; gap: 12px; }

.application-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-job-title { font-size: 14px; font-weight: 600; }
.app-employer { font-size: 13px; color: var(--fg-muted); }
.app-location { font-size: 12px; color: var(--fg-dim); }
.app-status-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.app-date { font-size: 12px; color: var(--fg-dim); }

/* ===================================
   WORKER PROFILE
=================================== */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.file-current { font-size: 13px; color: var(--fg-dim); margin-bottom: 6px; }

.profile-photo-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid var(--border);
}

/* ===================================
   ABN RESULT STATES
=================================== */
.abn-result {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 10px;
}

.abn-success { background: rgba(52,199,89,0.1); color: #34c759; }
.abn-pending { background: rgba(255,214,10,0.1); color: #ffd60a; }
.abn-error { background: rgba(255,80,80,0.1); color: #ff6b6b; }

.abn-verify-section { margin-top: 32px; }

/* ===================================
   EMPLOYER PROFILE INFO CARD
=================================== */
.profile-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-info-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.profile-info-row:last-child { border-bottom: none; padding-bottom: 0; }

.profile-info-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  min-width: 120px;
}

.profile-info-value {
  font-size: 15px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===================================
   MODAL
=================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 440px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-sub {
  color: var(--fg-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ===================================
   JOB FORM PAGE
=================================== */
.job-form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { order: -1; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filter-row { flex-direction: column; }
  .filter-search, .form-select { width: 100%; }
  .auth-card { padding: 28px 20px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .listing-row { flex-direction: column; align-items: flex-start; }
  .listing-actions { width: 100%; flex-wrap: wrap; }
  .dashboard-header { flex-direction: column; }
  .candidates-grid { grid-template-columns: 1fr; }
}

/* WhatsApp contact card on job detail */
.wa-contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.wa-job-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa-green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  width: 100%;
  justify-content: center;
  transition: background 0.2s;
}

.wa-job-btn:hover {
  background: var(--wa-green-dark);
}

.wa-job-sub {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 8px;
}

/* Public employer profile */
.emp-profile-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.emp-profile-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.emp-avatar {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emp-profile-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.emp-profile-state {
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 4px;
}

.emp-profile-signals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.signal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-muted);
}

.signal-ok {
  color: #4ade80;
}

.emp-listings-section {
  margin-bottom: 32px;
}

.emp-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.emp-job-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s;
}

.emp-job-card:hover {
  border-color: var(--accent);
}

.emp-no-jobs {
  color: var(--fg-muted);
  font-size: 15px;
  margin-top: 12px;
}

.emp-wa-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.emp-wa-text {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

/* SEO content pages */
.seo-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.seo-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.seo-h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  line-height: 1.15;
}

.seo-intro {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 720px;
}

.seo-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.seo-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.seo-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
}

.seo-section:last-child {
  border-bottom: none;
}

.seo-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--fg);
}

.seo-section p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.seo-section p:last-child {
  margin-bottom: 0;
}

.seo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.seo-list li {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.seo-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.seo-list li strong {
  color: var(--fg);
}

.seo-regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.seo-region-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.seo-region-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent);
}

.seo-region-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.seo-job-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.seo-job-type {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.seo-job-type-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.seo-job-type h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.seo-job-type p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.seo-cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.seo-cta-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.seo-cta-section p {
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.seo-cta-section .seo-hero-ctas {
  justify-content: center;
  margin-bottom: 20px;
}

.seo-internal-links {
  font-size: 14px;
  color: var(--fg-dim);
  margin-top: 16px;
}

@media (max-width: 480px) {
  .seo-hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .seo-hero-ctas .btn-hero-primary,
  .seo-hero-ctas .btn-hero-secondary,
  .seo-hero-ctas .whatsapp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Employer link in job detail */
.employer-link {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  font-size: 15px;
  margin-bottom: 16px;
}
.employer-link:hover {
  color: var(--accent);
}
a.employer-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===================================
   JOB BADGES (88-day, accommodation)
=================================== */
.job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.job-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1.4;
}
.badge-88days {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-accommodation {
  background: #e3f2fd;
  color: #1565c0;
}

/* ===================================
   PERKS LIST (job detail)
=================================== */
.perks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
}
.perk-88days {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
}
.perk-accommodation {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
}
.perk-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.perk-item strong {
  display: block;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.perk-sub {
  color: var(--fg-muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

/* ===================================
   APPLICATION SUMMARY BAR
=================================== */
.app-summary-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  flex-wrap: wrap;
}

.app-summary-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.15s;
}

.app-summary-stat:hover { opacity: 0.8; }

.app-summary-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.app-summary-label {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}

.app-summary-stat-alert .app-summary-num { color: var(--accent-light); }
.app-summary-stat-alert .app-summary-label { color: var(--accent-light); }

/* Tab unread dot */
.employer-tab { position: relative; }
.tab-unread-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}

/* Applied date on candidate card */
.candidate-applied-date {
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 2px;
}

/* ===================================
   APPLICATION DETAIL MODAL
=================================== */
.modal-card-wide {
  max-width: 700px;
}

.modal-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
}

.modal-detail-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-detail-right {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.modal-section { display: flex; flex-direction: column; gap: 4px; }

.modal-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}

.modal-section p {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0;
}

/* Status action buttons */
.status-action-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-action-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, color 0.15s;
}

.status-action-btn:hover {
  border-color: var(--border-light);
  color: var(--fg);
}

.status-action-btn.active-status {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

.app-status-shortlisted { background: rgba(255,214,10,0.12); color: #ffd60a; }
.app-status-rejected { background: rgba(255,80,80,0.1); color: #ff6b6b; }

@media (max-width: 640px) {
  .modal-detail-grid { grid-template-columns: 1fr; }
  .modal-detail-right { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 18px; }
  .modal-card-wide { max-width: 100%; }
}

/* ===================================
   JOB FORM — checkbox variants
=================================== */
.checkbox-label-lg {
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.checkbox-label-lg input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===================================
   ACCESSIBILITY
=================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
