/* TownConnect AI - Job Connect (Module 67) */
:root {
  --jc-green: #0f6b45;
  --jc-green-dark: #0a4f33;
  --jc-green-soft: #e8f5ee;
  --jc-blue: #1d4ed8;
  --jc-ink: #0f172a;
  --jc-muted: #64748b;
  --jc-line: #e2e8f0;
  --jc-bg: #f6faf8;
  --jc-card: #ffffff;
  --jc-red: #b91c1c;
  --jc-gold: #92400e;
  --jc-radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.jc-app {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Telugu", Arial, sans-serif;
  color: var(--jc-ink);
  background: var(--jc-bg);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--jc-green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

.jc-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px;
  background: #fff; border-bottom: 1px solid var(--jc-line);
  box-shadow: 0 1px 8px rgba(15,23,42,.04);
}
.jc-brand { display: flex; align-items: center; gap: 10px; color: var(--jc-ink); text-decoration: none; min-width: 0; }
.jc-brand:hover { text-decoration: none; }
.jc-brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--jc-green); color: #fff; font-weight: 900; font-size: 13px; letter-spacing: .04em;
}
.jc-brand strong { display: block; font-size: 15px; line-height: 1.2; }
.jc-brand small { display: block; color: var(--jc-muted); font-size: 10.5px; }
.jc-topnav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.jc-topnav::-webkit-scrollbar { display: none; }
.jc-topnav a {
  padding: 7px 10px; border-radius: 9px; color: #334155; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.jc-topnav a:hover { background: #f1f5f9; text-decoration: none; }
.jc-topnav a.is-active { background: var(--jc-green-soft); color: var(--jc-green-dark); }
.jc-nav-secondary { color: var(--jc-muted) !important; }

.jc-main { max-width: 1200px; margin: 0 auto; padding: 20px; }
.jc-footer {
  max-width: 1200px; margin: 10px auto 0; padding: 22px 20px 32px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--jc-muted); font-size: 11.5px; border-top: 1px solid var(--jc-line);
}
.jc-footer strong { color: var(--jc-ink); display: block; }
.jc-footer nav { display: flex; flex-wrap: wrap; gap: 12px; }
.jc-footer a { color: var(--jc-muted); }

.jc-flash { padding: 10px 13px; border-radius: 10px; margin-bottom: 14px; font-size: 12.5px; border: 1px solid; }
.jc-flash-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.jc-flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.jc-flash-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.jc-hero {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px;
  background: linear-gradient(135deg, #0f6b45, #0c7a55 55%, #1d4ed8 160%);
  color: #fff; border-radius: 18px; padding: 26px; margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(15, 107, 69, .18);
}
.jc-hero h1 { margin: 0 0 7px; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.02em; }
.jc-hero p { margin: 0; color: #def7ea; font-size: 13px; max-width: 660px; }
.jc-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.jc-hero-side { align-self: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 16px; }
.jc-hero-side strong { display: block; font-size: 13px; margin-bottom: 4px; }
.jc-hero-side span { display: block; font-size: 11.5px; color: #e4f8ee; }
.jc-hero-side a { display: inline-block; margin-top: 10px; color: #fff; font-size: 11.5px; font-weight: 800; text-decoration: underline; }

.jc-quick-actions {
  display: flex; gap: 7px; overflow-x: auto; padding: 0 0 10px; margin: -4px 0 12px;
  scrollbar-width: none;
}
.jc-quick-actions::-webkit-scrollbar { display: none; }
.jc-quick-actions a {
  flex: 0 0 auto; padding: 7px 11px; border: 1px solid #cbe7d8; background: #fff;
  color: var(--jc-green-dark); border-radius: 999px; font-size: 11.5px; font-weight: 800;
  white-space: nowrap;
}
.jc-quick-actions a:hover { background: var(--jc-green-soft); text-decoration: none; }
.jc-search-panel { background: #fff; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); padding: 14px; margin-bottom: 18px; }
.jc-search-main { display: flex; gap: 8px; }
.jc-search-main input { flex: 1; min-width: 0; }
.jc-filter-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; margin-top: 9px; }
.jc-filter-more { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; margin-top: 9px; }
.jc-search-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.jc-checkline { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #334155; }
.jc-checkline input { width: 16px; height: 16px; }

input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input[type="datetime-local"], input[type="password"], select, textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 9px 10px; background: #fff; color: var(--jc-ink);
  font-size: 12.5px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #6ee7b7; box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
textarea { min-height: 92px; resize: vertical; }
label { font-size: 11.5px; font-weight: 700; color: #334155; display: block; margin-bottom: 4px; }
.jc-field { margin-bottom: 10px; }
.jc-field .jc-help { font-size: 10.5px; color: var(--jc-muted); margin-top: 3px; }
.jc-field-error { border-color: #fca5a5 !important; }

.jc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 9px; padding: 9px 13px;
  font-size: 12.5px; font-weight: 800; cursor: pointer; text-decoration: none; line-height: 1.1;
}
.jc-btn:hover { text-decoration: none; }
.jc-btn-primary { background: var(--jc-green); color: #fff; border-color: var(--jc-green); }
.jc-btn-primary:hover { background: var(--jc-green-dark); }
.jc-btn-outline { background: #fff; color: var(--jc-ink); border-color: #cbd5e1; }
.jc-btn-outline:hover { background: #f8fafc; }
.jc-btn-blue { background: var(--jc-blue); color: #fff; }
.jc-btn-danger { background: #fff; color: var(--jc-red); border-color: #fecaca; }
.jc-btn-sm { padding: 6px 9px; font-size: 11px; border-radius: 8px; }
.jc-btn[disabled] { opacity: .55; cursor: not-allowed; }

.jc-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 18px; align-items: start; }
.jc-sidebar { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 10px; }
.jc-side-card { background: #fff; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); padding: 13px; }
.jc-side-card h3 { margin: 0 0 9px; font-size: 12.5px; }
.jc-side-list { display: flex; flex-direction: column; gap: 4px; }
.jc-side-list a { display: flex; justify-content: space-between; gap: 6px; padding: 5px 7px; border-radius: 7px; color: #334155; font-size: 11.5px; }
.jc-side-list a:hover { background: #f1f5f9; text-decoration: none; }
.jc-side-list small { color: var(--jc-muted); }
.jc-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.jc-results-head h2 { margin: 0; font-size: 18px; }
.jc-results-head p { margin: 2px 0 0; font-size: 11.5px; color: var(--jc-muted); }
.jc-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.jc-job-card { background: var(--jc-card); border: 1px solid var(--jc-line); border-radius: var(--jc-radius); padding: 14px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.jc-job-card:hover { border-color: #a7f3d0; box-shadow: 0 5px 16px rgba(15,107,69,.06); }
.jc-job-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.jc-job-card h3 { margin: 0; font-size: 14.5px; line-height: 1.3; }
.jc-job-card h3 a { color: var(--jc-ink); }
.jc-job-card h3 a:hover { color: var(--jc-green); text-decoration: none; }
.jc-company-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--jc-muted); margin-top: 3px; }
.jc-save-btn { border: 1px solid #cbd5e1; background: #fff; color: #475569; border-radius: 999px; padding: 5px 9px; font-size: 10.5px; font-weight: 800; cursor: pointer; flex: 0 0 auto; }
.jc-save-btn.is-saved { background: var(--jc-green-soft); color: var(--jc-green-dark); border-color: #a7f3d0; }
.jc-job-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; color: #475569; font-size: 11.5px; }
.jc-job-salary { color: var(--jc-green-dark); font-weight: 900; font-size: 13.5px; }
.jc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.jc-tags span { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px 7px; font-size: 10px; font-weight: 700; }
.jc-job-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 3px; }
.jc-job-actions .jc-btn { flex: 1; }

.jc-empty, .jc-error { background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--jc-radius); padding: 24px; text-align: center; color: var(--jc-muted); font-size: 12.5px; }
.jc-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.jc-pagination { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }

.jc-badge { display: inline-block; border-radius: 999px; padding: 2px 7px; font-size: 9.5px; font-weight: 900; letter-spacing: .02em; border: 1px solid; white-space: nowrap; }
.jc-badge-green { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.jc-badge-blue { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.jc-badge-purple { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.jc-badge-gold { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.jc-badge-red { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.jc-badge-gray { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

.jc-detail { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 18px; align-items: start; }
.jc-detail-card, .jc-panel { background: #fff; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); padding: 18px; }
.jc-detail h1 { margin: 0 0 5px; font-size: clamp(21px, 2.8vw, 30px); line-height: 1.2; }
.jc-detail .jc-company-line { font-size: 12.5px; }
.jc-detail-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--jc-line); }
.jc-detail-section h2 { font-size: 13px; margin: 0 0 7px; }
.jc-detail-section p { margin: 0 0 7px; font-size: 12.5px; color: #334155; white-space: pre-line; }
.jc-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.jc-fact { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; padding: 8px 9px; }
.jc-fact small { display: block; color: var(--jc-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.jc-fact strong { font-size: 12px; }
.jc-apply-card { position: sticky; top: 74px; }
.jc-apply-card .jc-job-salary { font-size: 19px; margin-bottom: 4px; }
.jc-apply-card .jc-btn { width: 100%; margin-top: 7px; }
.jc-privacy-note { margin-top: 10px; padding: 8px 9px; border-radius: 8px; background: #f8fafc; color: var(--jc-muted); font-size: 10.5px; }

.jc-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--jc-line); margin-bottom: 14px; scrollbar-width: none; }
.jc-tabs::-webkit-scrollbar { display: none; }
.jc-tabs a { padding: 9px 11px; border-bottom: 2px solid transparent; color: #475569; font-size: 12px; font-weight: 800; white-space: nowrap; }
.jc-tabs a:hover { text-decoration: none; background: #f8fafc; }
.jc-tabs a.is-active { color: var(--jc-green-dark); border-bottom-color: var(--jc-green); }

.jc-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-bottom: 14px; }
.jc-stat { background: #fff; border: 1px solid var(--jc-line); border-radius: 11px; padding: 11px; }
.jc-stat strong { display: block; font-size: 20px; }
.jc-stat span { color: var(--jc-muted); font-size: 10.5px; }

.jc-card { background: #fff; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); padding: 13px; margin-bottom: 10px; }
.jc-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.jc-card-head h3 { margin: 0; font-size: 13.5px; }
.jc-card-sub { color: var(--jc-muted); font-size: 11.5px; margin-top: 2px; }
.jc-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.jc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.jc-form-grid .jc-full { grid-column: 1 / -1; }
.jc-form-section { border-top: 1px solid var(--jc-line); margin-top: 13px; padding-top: 13px; }
.jc-form-section h3 { margin: 0 0 8px; font-size: 12.5px; }
.jc-form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.jc-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); }
.jc-table { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 680px; }
.jc-table th, .jc-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--jc-line); vertical-align: top; }
.jc-table th { background: #f8fafc; color: #475569; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.jc-table tr:last-child td { border-bottom: 0; }

.jc-messages { display: flex; flex-direction: column; gap: 7px; max-height: 320px; overflow-y: auto; padding: 8px; background: #f8fafc; border-radius: 9px; }
.jc-message { background: #fff; border: 1px solid var(--jc-line); border-radius: 9px; padding: 7px 9px; font-size: 11.5px; }
.jc-message small { display: block; color: var(--jc-muted); font-size: 9.5px; margin-top: 3px; }
.jc-timeline { border-left: 2px solid #e2e8f0; margin-left: 6px; padding-left: 12px; }
.jc-timeline-item { margin-bottom: 10px; position: relative; }
.jc-timeline-item::before { content: ""; position: absolute; left: -17px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--jc-green); }
.jc-timeline-item small { color: var(--jc-muted); font-size: 10px; display: block; }

.jc-auth-note { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 12px; color: #1e40af; font-size: 12px; margin-bottom: 12px; }
.jc-muted { color: var(--jc-muted); }
.jc-small { font-size: 10.5px; }
.jc-mt { margin-top: 12px; }
.jc-hidden { display: none !important; }

@media (max-width: 980px) {
  .jc-hero { grid-template-columns: 1fr; padding: 22px; }
  .jc-filter-grid, .jc-filter-more { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .jc-layout { grid-template-columns: 1fr !important; }
  .jc-sidebar { position: static; order: 2; }
  .jc-detail { grid-template-columns: 1fr; }
  .jc-apply-card { position: static; }
  .jc-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .jc-main { padding: 12px; }
  .jc-topbar { padding: 8px 12px; align-items: flex-start; }
  .jc-topnav { max-width: 60vw; }
  .jc-hero { padding: 18px; border-radius: 14px; }
  .jc-search-main { flex-direction: column; }
  .jc-filter-grid, .jc-filter-more { grid-template-columns: 1fr 1fr; }
  .jc-results { grid-template-columns: 1fr; }
  .jc-facts { grid-template-columns: 1fr; }
  .jc-form-grid { grid-template-columns: 1fr; }
  .jc-footer { flex-direction: column; }
  .jc-brand small { display: none; }
  .jc-topnav a { padding: 6px 8px; font-size: 11.5px; }
}
@media (max-width: 380px) {
  .jc-filter-grid, .jc-filter-more { grid-template-columns: 1fr; }
  .jc-hero-actions .jc-btn { width: 100%; }
}
