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

:root {
  --primary: #2B5CE6;
  --primary-dark: #1A3DB5;
  --primary-light: #E8EFFE;
  --accent: #FF6B35;
  --success: #00C48C;
  --warning: #FFB800;
  --danger: #FF4444;
  --text: #1A1D23;
  --text-secondary: #6B7280;
  --text-hint: #ADB5BD;
  --bg: #F8F9FC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-md: 0 4px 24px rgba(43,92,230,.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

/* ── NAVBAR ── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  padding: 0 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px; height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--primary);
}
.nav-brand-icon {
  width: 38px; height: 38px; background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.nav-brand-icon svg { width: 20px; height: 20px; fill: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: all .2s;
}
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  font-family: 'Poppins', sans-serif; cursor: pointer; border: none; transition: all .2s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(43,92,230,.3); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: var(--radius-sm); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #1a3db5 0%, #2b5ce6 50%, #4f7ff0 100%);
  padding: 80px 24px 100px; position: relative; overflow: hidden;
}
.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-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.hero h1 { font-size: clamp(28px,4vw,52px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: #FFD700; }
.hero p { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 36px; max-width: 560px; }
.hero-search {
  background: #fff; border-radius: var(--radius-lg); padding: 8px;
  display: flex; gap: 8px; max-width: 700px;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
}
.hero-search input {
  flex: 1; border: none; outline: none; font-family: 'Poppins',sans-serif;
  font-size: 15px; padding: 10px 16px; color: var(--text);
}
.hero-search select {
  border: none; border-left: 1px solid var(--border); outline: none;
  font-family: 'Poppins',sans-serif; font-size: 14px; padding: 10px 14px;
  color: var(--text-secondary); background: transparent; min-width: 120px;
}
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { color: rgba(255,255,255,.9); }
.hero-stat strong { display: block; font-size: 28px; font-weight: 700; color: #fff; }
.hero-stat span { font-size: 13px; opacity: .7; }

/* ── CARDS ── */
.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.card-hover { transition: all .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }

/* ── JOB CARD ── */
.job-card { padding: 20px; cursor: pointer; }
.job-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.job-logo {
  width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px;
}
.job-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.job-company { font-size: 13px; color: var(--text-secondary); }
.job-save { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--text-hint); font-size: 18px; transition: color .2s; }
.job-save:hover, .job-save.saved { color: var(--primary); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500;
}
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: #DCFCE7; color: #16A34A; }
.tag-orange { background: #FFF0E8; color: #EA580C; }
.tag-red { background: #FEE2E2; color: var(--danger); }
.tag-gray { background: var(--bg); color: var(--text-secondary); }
.tag-urgent { background: #FEE2E2; color: var(--danger); font-weight: 600; }
.job-salary { font-size: 15px; font-weight: 700; color: var(--primary); }
.job-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.job-location { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.job-time { font-size: 11px; color: var(--text-hint); }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: 'Poppins',sans-serif;
  background: #f8fafc; color: var(--text); outline: none; transition: all .2s;
}
.form-control:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(43,92,230,.08); }
.form-control.error { border-color: var(--danger); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.input-group { position: relative; }
.input-group .input-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--primary); font-weight: 700; font-size: 14px; pointer-events: none;
}
.input-group .form-control { padding-left: 46px; }
.form-hint { font-size: 11px; color: var(--text-hint); margin-top: 4px; }
.form-error { font-size: 11px; color: var(--danger); margin-top: 4px; }

/* ── BADGE ── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #DCFCE7; color: #16A34A; }
.badge-danger { background: #FEE2E2; color: var(--danger); }
.badge-warning { background: #FEF9C3; color: #CA8A04; }
.badge-gray { background: var(--bg); color: var(--text-secondary); }

/* ── AUTH PAGES ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg,#1a3db5,#2b5ce6,#4f7ff0); }
.auth-card { background: #fff; border-radius: 24px; padding: 40px; width: 100%; max-width: 440px; box-shadow: 0 24px 80px rgba(0,0,0,.2); }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo-icon { width: 64px; height: 64px; background: var(--primary); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.auth-logo-icon svg { width: 32px; height: 32px; fill: #fff; }
.auth-logo h1 { font-size: 22px; font-weight: 700; color: var(--text); }
.auth-logo p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ── OTP INPUT ── */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.otp-input {
  width: 50px; height: 56px; text-align: center; font-size: 22px; font-weight: 700;
  border: 2px solid var(--border); border-radius: 12px; outline: none;
  font-family: 'Poppins',sans-serif; background: var(--bg); color: var(--text);
  transition: all .2s;
}
.otp-input:focus { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(43,92,230,.1); }
.otp-input.filled { border-color: var(--primary); background: var(--primary-light); }

/* ── DASHBOARD LAYOUT ── */
.dash-layout { display: flex; min-height: calc(100vh - 64px); }
.dash-sidebar {
  width: 240px; background: #fff; border-right: 1px solid var(--border);
  padding: 20px 0; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
  flex-shrink: 0;
}
.dash-content { flex: 1; padding: 28px 32px; max-width: 1000px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 20px;
  font-size: 13.5px; color: var(--text-secondary); border-left: 3px solid transparent;
  transition: all .15s; cursor: pointer; text-decoration: none;
}
.dash-nav-item:hover, .dash-nav-item.active {
  background: var(--primary-light); color: var(--primary); border-left-color: var(--primary);
}
.dash-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-nav-label { font-weight: 500; }
.dash-section { margin-bottom: 32px; }
.dash-section-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* ── STAT CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: #DCFCE7; color: #16A34A; }
.stat-icon.orange { background: #FFF0E8; color: #EA580C; }
.stat-icon.purple { background: #F3E8FF; color: #9333EA; }
.stat-val { font-size: 26px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { padding: 11px 14px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-secondary); background: var(--bg); border-bottom: 1px solid var(--border); letter-spacing: .5px; text-transform: uppercase; }
tbody td { padding: 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }

/* ── PROFILE ── */
.profile-card { padding: 28px; display: flex; align-items: center; gap: 20px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: var(--primary); flex-shrink: 0; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-completion { height: 6px; background: var(--border); border-radius: 3px; margin-top: 8px; }
.profile-completion-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), #4f7ff0); transition: width .4s; }

/* ── SECTIONS ── */
.section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(24px,3vw,36px); font-weight: 700; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.grid-jobs { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 16px; }

/* ── FILTER BAR ── */
.filter-bar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.filter-bar select, .filter-bar input { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: 'Poppins',sans-serif; background: #fff; outline: none; min-width: 130px; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); }

/* ── ALERT ── */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #16A34A; }
.alert-error { background: #FEF2F2; border: 1px solid #FCA5A5; color: var(--danger); }
.alert-info { background: var(--primary-light); border: 1px solid rgba(43,92,230,.2); color: var(--primary); }
.alert-warning { background: #FEF9C3; border: 1px solid #FDE047; color: #CA8A04; }

/* ── FOOTER ── */
.footer { background: #0f172a; color: #94a3b8; padding: 60px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-brand-icon { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.footer p { font-size: 13px; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 13px; color: #94a3b8; transition: color .2s; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }

/* ── UTILS ── */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 12px; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-center { align-items: center; }
.flex-between { justify-content: space-between; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── LOADING ── */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── MOBILE ── */
@media(max-width:768px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-search { flex-direction: column; }
  .hero-search select { border-left: none; border-top: 1px solid var(--border); }
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; height: auto; position: static; display: none; }
  .dash-sidebar.open { display: block; }
  .dash-content { padding: 20px 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn-outline { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .profile-card { flex-direction: column; text-align: center; }
}
