/* =========================
   Quick Connect LS — Main CSS
   Blue/White theme, black text
   ========================= */

:root{
  --blue-50:#eff6ff;
  --blue-100:#dbeafe;
  --blue-600:#2563eb;
  --blue-700:#1d4ed8;
  --text:#111827;
  --muted:#6b7280;
  --bg:#ffffff;
  --bg-alt:#f9fafb;
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 14px;
  --container: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 16px;
}

/* Utilities */
.center{ text-align:center; }
.small{ font-size:.95rem; color:var(--muted); }
.muted{ color:var(--muted); }
.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  border-radius:12px;
  padding:12px 16px;
  font-weight:600;
  border:1px solid transparent;
  cursor:pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn:active{ transform: translateY(1px); }
.btn-primary{
  background:var(--blue-600);
  color:#fff;
}
.btn-primary:hover{ background:var(--blue-700); }
.btn-outline{
  background:#fff;
  border-color:var(--blue-600);
  color:var(--blue-600);
}
.btn-outline:hover{ background:var(--blue-50); }

.btn-lg{ padding:14px 22px; font-size:1.05rem; }
.btn-sm{ padding:8px 12px; font-size:.95rem; }

.btn-light{
  background:#fff;
  color:var(--blue-600);
}
.btn-light:hover{ background:#f3f4f6; }

.btn-outline-light{
  background:transparent;
  border-color:#fff;
  color:#fff;
}
.btn-outline-light:hover{
  background: rgba(255,255,255,.12);
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid var(--border);
  z-index:20;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-mark{
  color:var(--blue-600);
  font-size:1.6rem;
  font-weight:800;
  letter-spacing:.4px;
}
.brand-name{
  font-weight:700;
  color:var(--text);
}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav-link{
  color:var(--text);
  font-weight:600;
}
.nav-link:hover{ color:var(--blue-600); }

.nav-toggle{ display:none; }

.mobile-nav{
  border-top:1px solid var(--border);
  background:#fff;
}
.mobile-nav-inner{
  padding:12px 0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobile-link{
  padding:12px 0;
  font-weight:600;
}

/* Hero */
.hero{
  background: linear-gradient(to bottom, var(--blue-50), #fff);
  padding:64px 0 72px;
}
.hero-top{
  text-align:center;
  margin-bottom:28px;
}
.hero h1{
  margin:0 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height:1.1;
}
.hero p{
  margin:0 auto 18px;
  max-width:720px;
  color:var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

/* Search Card */
.search-card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  max-width:900px;
  margin:0 auto;
  border:1px solid #eef2ff;
}
.search-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:12px;
}
.field{
  position:relative;
}
.field .icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  opacity:.55;
}
.field input, .field select{
  width:100%;
  height:48px;
  border-radius:12px;
  border:1px solid var(--border);
  padding:0 12px 0 40px;
  outline:none;
  font-size:1rem;
  background:#fff;
}
.field input:focus, .field select:focus{
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.search-btn{
  width:100%;
  margin-top:12px;
  height:48px;
  border-radius:12px;
}

.hint{
  margin:10px 0 0;
  color:var(--muted);
  font-size:.95rem;
}

/* Sections */
.section{
  padding:64px 0;
}
.section-alt{
  background:var(--bg-alt);
}
.section-head{
  text-align:center;
  margin-bottom:34px;
}
.section-head h2{
  margin:0 0 10px;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
}
.section-head p{
  margin:0;
  color:var(--muted);
}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.card-outline{
  border:2px solid var(--blue-100);
  box-shadow:none;
}
.card-outline:hover{
  border-color: rgba(37,99,235,.35);
}

.card-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.badge-icon{
  width:44px;
  height:44px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--blue-600);
  color:#fff;
  flex:0 0 44px;
  font-size:1.1rem;
}

/* Layout grids */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:28px;
}
.subhead{
  text-align:center;
  margin:0 0 18px;
  font-size:1.45rem;
}
.stack{ display:flex; flex-direction:column; gap:14px; }

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-bottom:18px;
}
.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}
.grid-6{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:16px;
}

/* Job cards */
.job-card .btn{ width:100%; }
.job-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.job-title{
  margin:0 0 4px;
  font-size:1.18rem;
}
.job-company{
  margin:0;
  color:var(--muted);
}
.pill{
  background:var(--blue-100);
  color:#1d4ed8;
  border-radius:999px;
  padding:6px 10px;
  font-size:.85rem;
  font-weight:700;
  white-space:nowrap;
}
.job-meta{
  list-style:none;
  padding:0;
  margin:0 0 12px;
  display:grid;
  gap:6px;
  color:var(--muted);
  font-size:.95rem;
}

/* Categories */
.category-card{
  text-align:center;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .2s ease;
}
.category-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.category-icon{
  width:62px;
  height:62px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 10px;
  font-size:1.4rem;
}
.category-card h3{ margin:0 0 6px; }
.category-card p{ margin:0; color:var(--muted); font-size:.95rem; }

.bg-blue{ background:#dbeafe; color:#1d4ed8; }
.bg-purple{ background:#ede9fe; color:#6d28d9; }
.bg-orange{ background:#ffedd5; color:#c2410c; }
.bg-red{ background:#fee2e2; color:#b91c1c; }
.bg-green{ background:#dcfce7; color:#15803d; }
.bg-pink{ background:#fce7f3; color:#be185d; }

/* Trust */
.trust{
  background: var(--blue-50);
}
.trust-card{
  text-align:center;
}
.trust-icon{
  width:62px;
  height:62px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 10px;
  font-size:1.4rem;
}
.trust-icon.green{ background:#dcfce7; color:#15803d; }
.trust-icon.red{ background:#fee2e2; color:#b91c1c; }
.trust-icon.blue{ background:#dbeafe; color:#1d4ed8; }
.trust-icon.purple{ background:#ede9fe; color:#6d28d9; }

.trust-note{
  margin:18px auto 0;
  max-width:820px;
  text-align:center;
}
.trust-note a{
  color:var(--blue-600);
  font-weight:700;
}
.trust-note a:hover{ text-decoration:underline; }

/* Final CTA */
.final-cta{
  padding:64px 0;
  background: linear-gradient(to right, var(--blue-600), var(--blue-700));
  color:#fff;
}
.final-cta h2{
  margin:0 0 8px;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
}
.final-cta p{
  margin:0 0 18px;
  color: rgba(255,255,255,.85);
}

/* Footer */
.site-footer{
  background:#111827;
  color:#fff;
  padding:44px 0 18px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:20px;
}
.footer-grid h3{
  margin:0 0 10px;
  font-size:1.05rem;
}
.footer-grid a{
  display:block;
  color: rgba(255,255,255,.72);
  margin:8px 0;
}
.footer-grid a:hover{ color:#60a5fa; }

.footer-brand{
  font-size:1.6rem;
  color:#60a5fa;
  font-weight:800;
  margin-bottom:10px;
}
.social{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.social a{
  width:34px;
  height:34px;
  border-radius:10px;
  background: rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}
.social a:hover{
  background: rgba(96,165,250,.18);
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:18px;
  padding-top:14px;
  text-align:center;
  color: rgba(255,255,255,.62);
  font-size:.95rem;
}

/* Responsive */
@media (max-width: 900px){
  .grid-6{ grid-template-columns: repeat(3, 1fr); }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-2{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .search-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .nav{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .footer-grid{ grid-template-columns: 1fr; }
}

/* Page header (title + breadcrumbs) */
.page-head{
  padding: 28px 0;
  background: linear-gradient(to bottom, var(--blue-50), #fff);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 10px;
}

.breadcrumbs a{
  color: var(--blue-600);
  font-weight: 700;
}
.breadcrumbs a:hover{ text-decoration: underline; }

.page-title{
  margin:0;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.page-subtitle{
  margin:6px 0 0;
  color: var(--muted);
}

/* =========================
   Phase 2: Jobs page
   ========================= */

.label{
  display:block;
  font-weight:700;
  margin-bottom:6px;
  color: var(--text);
  font-size:.95rem;
}

.filters{ margin-bottom: 18px; }
.filters-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.filters .field input,
.filters .field select{
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0 12px;
  outline: none;
}
.filters .field input:focus,
.filters .field select:focus{
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.filters-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

.jobs-layout{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items:start;
}

.jobs-results{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.jobs-sidebar{
  display:flex;
  flex-direction:column;
  gap:16px;
  position: sticky;
  top: 84px;
}

.sidebar-title{
  margin:0 0 8px;
  font-size:1.1rem;
}

.empty-state{
  grid-column: 1 / -1;
  text-align:center;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
}

@media (max-width: 1000px){
  .filters-grid{ grid-template-columns: 1fr 1fr; }
  .jobs-layout{ grid-template-columns: 1fr; }
  .jobs-results{ grid-template-columns: 1fr; }
  .jobs-sidebar{ position: static; }
}

/* =========================
   Phase 3: Auth page
   ========================= */

.auth-wrap{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:16px;
  align-items:start;
}

.auth-card{ padding: 0; overflow:hidden; }

.auth-tabs{
  display:flex;
  border-bottom: 1px solid var(--border);
  background:#fff;
}

.tab{
  flex:1;
  padding:14px 12px;
  font-weight:800;
  border:0;
  background:transparent;
  cursor:pointer;
}
.tab.is-active{
  color: var(--blue-600);
  box-shadow: inset 0 -3px 0 var(--blue-600);
}

.role-switch{
  display:flex;
  gap:10px;
  padding:14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.role-btn{
  flex:1;
  padding:10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight:800;
  cursor:pointer;
}
.role-btn.is-active{
  border-color: rgba(37,99,235,.35);
  background: var(--blue-50);
  color: var(--blue-600);
}

.auth-form{
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  background:#fff;
}

.btn-block{ width:100%; }

.auth-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.check{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-size:.95rem;
}

.link{
  color: var(--blue-600);
  font-weight:800;
}
.link:hover{ text-decoration: underline; }

.grid-2-form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.auth-message{
  margin: 0 16px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.auth-aside{
  display:flex;
  flex-direction:column;
  gap:16px;
  position: sticky;
  top: 84px;
}

@media (max-width: 1000px){
  .auth-wrap{ grid-template-columns: 1fr; }
  .auth-aside{ position: static; }
  .grid-2-form{ grid-template-columns: 1fr; }
}

/* =========================
   Phase 4: Employer Dashboard
   ========================= */

.dash-stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.stat{ padding: 18px; }
.stat-top{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom: 8px;
}
.stat-icon{
  width:48px; height:48px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.3rem;
}
.stat-icon.blue{ background: #dbeafe; color:#1d4ed8; }
.stat-icon.green{ background: #dcfce7; color:#15803d; }
.stat-icon.purple{ background: #ede9fe; color:#6d28d9; }
.stat-icon.orange{ background: #ffedd5; color:#c2410c; }

.stat-label{ margin:0; color: var(--muted); font-weight: 800; font-size:.95rem; }
.stat-value{ margin:0; font-size: 1.5rem; }

.dash-grid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items:start;
}

.dash-aside{
  display:flex;
  flex-direction:column;
  gap: 16px;
  position: sticky;
  top: 84px;
}

.dash-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 12px;
}
.dash-title{ margin:0; font-size: 1.25rem; }

.table-wrap{ overflow:auto; border-radius: 12px; border:1px solid var(--border); }
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 700px;
  background:#fff;
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  white-space:nowrap;
}
.table th{
  background: #f8fafc;
  font-size:.95rem;
}
.table tr:hover td{
  background: #f9fafb;
}

.tag{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .85rem;
}
.tag-green{ background:#dcfce7; color:#15803d; }
.tag-yellow{ background:#fef9c3; color:#854d0e; }
.tag-gray{ background:#e5e7eb; color:#374151; }

/* textarea consistent */
textarea{
  width:100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px;
  outline:none;
  font-family: var(--font);
}
textarea:focus{
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

@media (max-width: 1000px){
  .dash-stats{ grid-template-columns: 1fr 1fr; }
  .dash-grid{ grid-template-columns: 1fr; }
  .dash-aside{ position: static; }
}

/* =========================
   Phase 5: Post Job + Applicants
   ========================= */

.form-layout{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap:16px;
  align-items:start;
}

.form-aside{
  display:flex;
  flex-direction:column;
  gap:16px;
  position: sticky;
  top: 84px;
}

.form-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.form-stack input,
.form-stack select{
  width:100%;
  height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  padding:0 12px;
  outline:none;
  background:#fff;
}
.form-stack input:focus,
.form-stack select:focus{
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.check-row{ margin-top: 6px; }

.form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 6px;
}

.applicants-layout{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:16px;
  align-items:start;
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
}
.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(17, 24, 39, .55);
}
.modal-card{
  position:relative;
  z-index:2;
  width:min(740px, 100%);
  background:#fff;
  border-radius: 16px;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
  border-bottom:1px solid var(--border);
  background:#fff;
}
.modal-title{ margin:0; }
.modal-body{ padding: 16px; }
.modal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding: 0 16px 16px;
}
.modal-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 1000px){
  .form-layout{ grid-template-columns: 1fr; }
  .form-aside{ position: static; }
  .applicants-layout{ grid-template-columns: 1fr; }
  .modal-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Phase 6: Job Seeker pages
   ========================= */

/* Use existing .dash-stats, .dash-grid, .dash-aside, .table from Phase 4 */

/* Ensure file input looks consistent */
input[type="file"]{
  width:100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:#fff;
}
.side-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: 0.3s ease;
  z-index: 9999;
  padding: 20px;
}

.side-panel.active {
  right: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header button {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.panel-body {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-body input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
}





/* =========================
   End of Quick Connect LS — Main CSS
   ========================= */
