@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --blue:       #1a56db;
  --blue-h:     #1648c0;
  --blue-l:     #dbeafe;
  --red:        #e02424;
  --red-h:      #c81e1e;
  --red-l:      #fee2e2;
  --green:      #057a55;
  --green-h:    #046c4e;
  --green-l:    #d1fae5;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1e293b;
  --gray-900:   #0f172a;
  --white:      #ffffff;
  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --trans:      .2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: var(--gray-50); color: var(--gray-900); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 22px; border-radius: var(--radius);
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  font-size: .9rem; font-weight: 600; transition: all var(--trans);
  white-space: nowrap; text-decoration: none;
}
.btn-primary   { background: var(--blue);  color: #fff; box-shadow: 0 2px 8px rgba(26,86,219,.3); }
.btn-primary:hover { background: var(--blue-h); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,86,219,.4); }
.btn-red       { background: var(--red);   color: #fff; }
.btn-red:hover { background: var(--red-h); transform: translateY(-1px); }
.btn-green     { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-h); }
.btn-outline   { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost     { background: var(--gray-100); color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-sm  { padding: 7px 16px; font-size: .82rem; }
.btn-lg  { padding: 13px 32px; font-size: 1rem; }
.btn-xl  { padding: 16px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow);
  transition: all var(--trans);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--gray-300); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 50px;
  font-size: .75rem; font-weight: 600; letter-spacing: .3px;
}
.badge-blue  { background: var(--blue-l);  color: var(--blue); }
.badge-red   { background: var(--red-l);   color: var(--red); }
.badge-green { background: var(--green-l); color: var(--green); }
.badge-gray  { background: var(--gray-100); color: var(--gray-600); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.form-control {
  padding: 11px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 10px; font-family: 'Inter', sans-serif; font-size: .9rem;
  color: var(--gray-900); background: var(--white); outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
  width: 100%;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 110px; }

/* ── Nav ─────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: 68px; display: flex; align-items: center;
}
.navbar .container { display: flex; align-items: center; gap: 0; width: 100%; }
.nav-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 24px;
}
.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: .88rem; font-weight: 500;
  color: var(--gray-600); transition: all var(--trans);
}
.nav-links a:hover, .nav-links a.active { background: var(--gray-100); color: var(--blue); }
.nav-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-l); display: flex; align-items: center;
  justify-content: center; font-size: .85rem; font-weight: 700;
  color: var(--blue); object-fit: cover; cursor: pointer;
}
.nav-user-name { font-size: .88rem; font-weight: 600; color: var(--gray-700); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #1a56db 100%);
  padding: 72px 0 88px; position: relative; overflow: hidden; color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; text-align: center; }
.hero-label {
  display: inline-block; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); padding: 6px 18px;
  border-radius: 50px; font-size: .82rem; font-weight: 600;
  margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900;
  line-height: 1.12; margin-bottom: 18px; letter-spacing: -.5px;
}
.hero h1 .hl-blue { color: #93c5fd; }
.hero h1 .hl-red  { color: #fca5a5; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.7); margin-bottom: 38px; }

.search-wrap {
  display: flex; gap: 10px; max-width: 760px; margin: 0 auto 22px;
  background: #fff; border-radius: 16px; padding: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.search-field {
  flex: 1; display: flex; align-items: center; gap: 9px;
  padding: 6px 12px; border-right: 1px solid var(--gray-200);
}
.search-field:last-of-type { border: none; }
.search-field svg { width: 18px; height: 18px; color: var(--gray-400); flex-shrink: 0; }
.search-field input, .search-field select {
  flex: 1; border: none; outline: none; font-family: 'Inter', sans-serif;
  font-size: .9rem; color: var(--gray-900); background: transparent; min-width: 0;
}
.search-field select { cursor: pointer; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 48px; }
.hero-tag {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22);
  color: #fff; padding: 5px 14px; border-radius: 50px;
  font-size: .82rem; cursor: pointer; transition: all var(--trans);
}
.hero-tag:hover { background: rgba(255,255,255,.25); }

.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.hero-stat-num  { font-size: 2.1rem; font-weight: 900; }
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-white { background: var(--white); }
.section-gray  { background: var(--gray-50); }

.section-header { text-align: center; margin-bottom: 44px; }
.section-eyebrow {
  display: inline-block; background: var(--blue-l); color: var(--blue);
  padding: 5px 14px; border-radius: 50px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.section-desc  { color: var(--gray-500); font-size: .95rem; max-width: 500px; margin: 0 auto; }

/* ── Job Card ────────────────────────────────────────────── */
.job-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); padding: 22px;
  cursor: pointer; transition: all var(--trans); position: relative;
  overflow: hidden;
}
.job-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--blue), #3b82f6);
  transform: scaleX(0); transform-origin: left; transition: transform var(--trans);
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.job-card:hover::after { transform: scaleX(1); }

.job-card-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 12px; }
.job-co-logo {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0; background: var(--gray-100);
  border: 1px solid var(--gray-200);
}
.job-title    { font-size: .98rem; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.job-company  { font-size: .83rem; color: var(--gray-500); font-weight: 500; }
.job-badges   { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.job-desc-sm  { font-size: .83rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 14px;
                display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-footer   { display: flex; align-items: center; justify-content: space-between;
                padding-top: 13px; border-top: 1px solid var(--gray-100); }
.job-salary   { font-weight: 700; color: var(--green); font-size: .9rem; }
.job-age      { font-size: .75rem; color: var(--gray-400); }

/* ── Categories ──────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 14px; }
.cat-card {
  --cat-color: var(--blue);
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 22px 16px 18px; text-align: center; cursor: pointer;
  transition: all var(--trans); position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--cat-color); transform: scaleX(0); transform-origin: left;
  transition: transform var(--trans);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.1); border-color: transparent; }
.cat-card:hover::before { transform: scaleX(1); }
.cat-icon  { font-size: 2rem; margin-bottom: 9px; }
.cat-name  { font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--gray-900); }
.cat-subs  { font-size: .73rem; color: var(--gray-400); line-height: 1.5; }
.cat-count { font-size: .78rem; color: var(--gray-500); }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #7f1d1d 0%, var(--red) 100%);
  border-radius: var(--radius-lg); padding: 48px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.cta-banner p  { color: rgba(255,255,255,.8); font-size: .95rem; }

/* ── Sidebar Filters ─────────────────────────────────────── */
.sidebar { width: 260px; flex-shrink: 0; }
.filter-box { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.filter-title { font-size: .85rem; font-weight: 700; color: var(--gray-800); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .4px; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: .88rem; color: var(--gray-700); border-radius: 8px; transition: color var(--trans); }
.filter-option:hover { color: var(--blue); }
.filter-option input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.page-btn {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--gray-200);
  background: var(--white); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all var(--trans); font-family: 'Inter', sans-serif;
}
.page-btn:hover  { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 999;
  align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
}
.modal-lg { max-width: 720px; }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { padding: 22px 24px 0; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { font-size: 1.1rem; font-weight: 800; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; background: var(--gray-100); border: none; cursor: pointer; font-size: 1.2rem; color: var(--gray-500); display: flex; align-items: center; justify-content: center; transition: background var(--trans); }
.modal-close:hover { background: var(--gray-200); }
.modal-body   { padding: 0 24px 24px; }
.modal-footer { padding: 16px 24px 24px; border-top: 1px solid var(--gray-100); display: flex; gap: 10px; justify-content: flex-end; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--gray-900); color: #fff;
  padding: 13px 26px; border-radius: 50px;
  font-size: .88rem; font-weight: 600; z-index: 9999;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-lg); white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }

/* ── Auth ────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; }
.auth-left {
  width: 440px; flex-shrink: 0;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 60%, #1a56db 100%);
  padding: 48px 40px; display: flex; flex-direction: column;
  color: #fff; position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.auth-left-logo { margin-bottom: 40px; }
.auth-left-logo img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
}
.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--gray-50); }
.auth-box { background: var(--white); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); }
.auth-tabs { display: flex; margin-bottom: 28px; border-bottom: 2px solid var(--gray-100); }
.auth-tab { flex: 1; padding: 11px; background: none; border: none; font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--trans); }
.auth-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.role-select { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-card { border: 2px solid var(--gray-200); border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; transition: all var(--trans); }
.role-card:hover { border-color: var(--blue); }
.role-card.active { border-color: var(--blue); background: var(--blue-l); }
.role-card .role-icon { font-size: 1.6rem; margin-bottom: 6px; }
.role-card .role-name { font-size: .85rem; font-weight: 700; }

/* ── Dashboard ───────────────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; }
.dash-sidebar { }
.dash-nav { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.dash-nav-item { display: flex; align-items: center; gap: 11px; padding: 13px 18px; font-size: .88rem; font-weight: 500; color: var(--gray-600); cursor: pointer; transition: all var(--trans); border-left: 3px solid transparent; }
.dash-nav-item:hover { background: var(--gray-50); color: var(--blue); }
.dash-nav-item.active { background: var(--blue-l); color: var(--blue); border-left-color: var(--blue); font-weight: 700; }
.dash-nav-item .icon { font-size: 1.1rem; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; }
.stat-card-num   { font-size: 2rem; font-weight: 800; }
.stat-card-label { font-size: .8rem; color: var(--gray-500); font-weight: 500; margin-top: 2px; }
.stat-card.blue  .stat-card-num { color: var(--blue); }
.stat-card.green .stat-card-num { color: var(--green); }
.stat-card.red   .stat-card-num { color: var(--red); }

/* ── Table ───────────────────────────────────────────────── */
.table-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 13px 16px; text-align: left; font-size: .78rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--gray-100); background: var(--gray-50); }
.table td { padding: 14px 16px; font-size: .875rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tr:last-child td { border: none; }
.table tr:hover td { background: var(--gray-50); }

/* ── Profile ─────────────────────────────────────────────── */
.profile-banner {
  background: linear-gradient(135deg, #0f172a, #1a56db);
  height: 160px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}
.profile-avatar-wrap {
  position: absolute; bottom: -40px; left: 32px;
}
.profile-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  border: 4px solid #fff; object-fit: cover; background: var(--blue-l);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: var(--blue);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--gray-900); padding: 56px 0 0; color: rgba(255,255,255,.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand-logo { margin-bottom: 12px; }
.footer-brand-logo img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}
.footer h4 { color: #fff; font-size: .88rem; font-weight: 700; margin-bottom: 16px; }
.footer a { display: block; font-size: .85rem; margin-bottom: 10px; transition: color var(--trans); }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; justify-content: space-between; font-size: .8rem; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 14px; }
.empty-state p { font-size: .95rem; }

/* ── Skeleton ────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .search-wrap { flex-direction: column; }
  .search-field { border-right: none; border-bottom: 1px solid var(--gray-100); }
  .cta-banner { flex-direction: column; text-align: center; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
