:root{
  --bg:#f7fbff;
  --surface:#ffffff;
  --surface-2:#eef4fb;
  --text:#111827;
  --muted:#64748b;
  --line:#dbe5f0;
  --primary:#1d4ed8;
  --primary-2:#0ea5e9;
  --primary-soft:#e8f1ff;
  --primary-dark:#163fb2;
  --shadow:0 16px 40px rgba(15, 23, 42, 0.08);
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}

.hidden{display:none !important}

.dashboard-layout{
  display:grid;
  grid-template-columns:220px 1fr;
  min-height:100vh;
}

.sidebar{
  background:#ffffff;
  border-right:1px solid var(--line);
  padding:14px 10px;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.sidebar__brand{
  padding:6px 6px 10px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}

.brand__mark{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:6px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.brand__text{
  font-size:1.05rem;
}

.sidebar__group{
  display:grid;
  gap:6px;
}

.sidebar__label{
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.14em;
  color:#b2bfd1;
  padding:0 8px 4px;
}

.side-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:10px;
  color:#5b6778;
  font-weight:600;
}

.side-link:hover{
  background:#f2f7fd;
  color:var(--text);
}

.side-link.active{
  background:#eef4fb;
  color:#111827;
}

.side-link__icon{
  width:16px;
  text-align:center;
  color:#98a4b5;
}

.side-link__badge{
  margin-left:auto;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.08em;
  background:linear-gradient(90deg,var(--primary),var(--primary-2));
  color:#fff;
  border-radius:6px;
  padding:2px 6px;
}

.side-link__count{
  margin-left:auto;
  min-width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#f3f7fd;
  color:#6b7280;
  font-size:.74rem;
  font-weight:800;
}

.sidebar__footer{
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.sidebar-user{
  display:flex;
  align-items:center;
  gap:10px;
  background:#f8fbff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
}

.sidebar-user__avatar{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  font-weight:800;
}

.sidebar-user__name{
  font-size:.95rem;
  font-weight:700;
}

.sidebar-user__company{
  font-size:.82rem;
  color:#94a3b8;
}

.main{
  padding:0;
}

.topbar{
  height:54px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 22px;
}

.topbar__search{
  width:min(310px, 100%);
}

.topbar__search input{
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 14px;
  outline:none;
  color:var(--text);
  background:#fafcff;
}

.topbar__search input::placeholder{
  color:#b0bac8;
}

.topbar__actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.icon-btn{
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  color:#5b6778;
}

.avatar-btn{
  width:36px;
  height:36px;
  border:none;
  border-radius:10px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.btn{
  border:none;
  cursor:pointer;
  border-radius:12px;
  padding:11px 16px;
  font-weight:700;
  transition:.2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn--primary{
  color:#fff;
  background:linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow:0 10px 24px rgba(29,78,216,0.18);
}

.btn--ghost{
  background:#fff;
  border:1px solid #c8daf9;
  color:var(--primary);
}

.btn--light{
  background:#fff;
  color:var(--primary);
  min-width:150px;
  border:1px solid rgba(255,255,255,0.8);
}

.btn--dark-outline{
  background:rgba(255,255,255,0.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.24);
  min-width:150px;
}

.hero-card{
  margin:24px 22px 18px;
  border-radius:24px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.14), transparent 24%),
    linear-gradient(135deg, #2348a7 0%, #2f63e0 48%, #4b8ef7 100%);
  color:#fff;
  padding:26px 28px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  box-shadow:0 24px 60px rgba(29,78,216,0.20);
}

.hero-card__content{
  max-width:760px;
}

.hero-card__eyebrow{
  color:rgba(255,255,255,.78);
  font-weight:700;
  margin-bottom:10px;
}

.hero-card h1{
  margin:0 0 10px;
  font-size:2rem;
  letter-spacing:-0.04em;
  line-height:1.15;
}

.hero-card p{
  margin:0;
  max-width:620px;
  color:rgba(255,255,255,.88);
  line-height:1.7;
  font-size:1.05rem;
}

.hero-stats{
  display:flex;
  gap:34px;
  flex-wrap:wrap;
  margin-top:18px;
}

.hero-stat strong{
  display:block;
  font-size:2.1rem;
  line-height:1;
  margin-bottom:4px;
}

.hero-stat span{
  color:rgba(255,255,255,.76);
  font-size:.95rem;
}

.hero-card__actions{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
}

.quick-actions{
  margin:0 22px 18px;
}

.section-minihead h2{
  margin:0 0 4px;
  font-size:1.4rem;
  letter-spacing:-0.03em;
}

.section-minihead p{
  margin:0 0 14px;
  color:#9aa8bc;
}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:10px;
}

.qa-card{
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:14px 16px;
  text-align:left;
  cursor:pointer;
}

.qa-card__icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#eef4fb;
  color:var(--primary);
  margin-bottom:12px;
}

.qa-card__title{
  font-weight:700;
  margin-bottom:4px;
}

.qa-card__text{
  color:#94a3b8;
  font-size:.95rem;
}

.content-grid{
  margin:0 22px 18px;
  display:grid;
  grid-template-columns:1.35fr .35fr;
  gap:16px;
}

.bottom-grid{
  margin:0 22px 22px;
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:16px;
}

.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
}

.panel--large{
  min-height:265px;
}

.panel--side{
  min-height:265px;
}

.panel__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.panel__head h3{
  margin:0;
  font-size:1.15rem;
  letter-spacing:-0.02em;
}

.panel__head a{
  color:#94a3b8;
  font-weight:600;
}

.panel__head--spread a:hover{
  color:#111827;
}

.panel__legend{
  display:flex;
  gap:14px;
  color:#a1adbe;
  font-size:.92rem;
}

.panel__empty-chart{
  min-height:180px;
  display:grid;
  place-items:center;
  color:#d0d8e2;
  font-weight:500;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px dashed #e3ebf4;
  border-radius:14px;
}

.funnel-list{
  display:grid;
  gap:14px;
}

.funnel-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding-bottom:10px;
  border-bottom:1px solid #edf1f5;
}

.funnel-row span{
  color:#5b6778;
}

.funnel-row strong{
  color:#94a3b8;
}

.table-empty{
  color:#b1bbc9;
  padding:18px 0 6px;
}

.table-wrap{
  overflow:auto;
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  text-align:left;
  padding:12px 8px;
  border-bottom:1px solid #edf1f5;
  font-size:.95rem;
}

.table th{
  color:#94a3b8;
  font-weight:700;
}

.table td{
  color:#374151;
}

.table-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.mini-btn{
  border:none;
  cursor:pointer;
  border-radius:10px;
  padding:7px 10px;
  font-size:.82rem;
  font-weight:700;
  background:#f3f7fd;
  color:#374151;
}

.mini-btn:hover{
  transform:translateY(-1px);
}

.mini-btn--primary{
  background:linear-gradient(90deg, var(--primary), var(--primary-2));
  color:#fff;
}

.jobs-mini-list{
  display:grid;
  gap:10px;
}

.job-mini{
  border:1px solid #edf1f5;
  border-radius:12px;
  padding:12px;
  background:#fbfdff;
}

.job-mini__title{
  font-weight:700;
  margin-bottom:4px;
}

.job-mini__meta{
  color:#94a3b8;
  font-size:.92rem;
}

.post-job-panel{
  margin:0 22px 22px;
}

.job-form{
  display:grid;
  gap:16px;
}

.job-form__grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
}

.field-group{
  display:grid;
  gap:8px;
}

.field-group label{
  font-weight:700;
  color:#374151;
}

.field-group input,
.field-group select,
.field-group textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px 14px;
  outline:none;
  background:#fff;
  color:#111827;
}

.field-group textarea{
  resize:vertical;
}

.job-form__actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.panel-note{
  color:#94a3b8;
  margin:0;
}

.status-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:700;
}

.status-chip--new{
  background:#eef4ff;
  color:#1d4ed8;
}

.status-chip--reviewed{
  background:#f3f4f6;
  color:#4b5563;
}

.status-chip--shortlisted{
  background:#ecfdf3;
  color:#0f8a42;
}

.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%) translateY(10px);
  background:#111827;
  color:#fff;
  padding:12px 16px;
  border-radius:14px;
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
  z-index:80;
}

.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

@media (max-width: 1200px){
  .quick-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .content-grid,
  .bottom-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 900px){
  .dashboard-layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    display:none;
  }

  .hero-card{
    flex-direction:column;
  }

  .hero-card__actions{
    flex-direction:row;
    flex-wrap:wrap;
  }

  .job-form__grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .topbar{
    height:auto;
    padding:14px;
    flex-direction:column;
    align-items:stretch;
  }

  .topbar__search{
    width:100%;
  }

  .topbar__actions{
    justify-content:space-between;
  }

  .quick-grid{
    grid-template-columns:1fr;
  }

  .hero-card,
  .quick-actions,
  .content-grid,
  .bottom-grid,
  .post-job-panel{
    margin-left:14px;
    margin-right:14px;
  }

  .hero-card{
    padding:20px;
  }

  .hero-card h1{
    font-size:1.6rem;
  }

  .hero-stats{
    gap:20px;
  }

  .hero-card__actions{
    width:100%;
    flex-direction:column;
  }

  .hero-card__actions .btn{
    width:100%;
  }

  .job-form__actions{
    flex-direction:column;
  }

  .job-form__actions .btn{
    width:100%;
  }
}