/* ============================================================
   Webisoft Careers Platform — style.css
   Fonts: Syne (display) + DM Sans (body)
   Theme: Monochrome editorial with sharp accents
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --black:      #0a0a0a;
  --off-black:  #111111;
  --dark:       #1a1a1a;
  --mid:        #333333;
  --muted:      #666666;
  --border:     #e2e2e2;
  --border-2:   #f0f0f0;
  --bg:         #ffffff;
  --bg-soft:    #f8f8f8;
  --bg-card:    #fafafa;
  --accent:     #0a0a0a;
  --accent-red: #e53e3e;
  --green:      #2e7d32;
  --green-soft: #e8f5e9;
  --blue:       #1565c0;
  --blue-soft:  #e3f2fd;
  --amber:      #f57c00;
  --amber-soft: #fff3e0;
  --red-soft:   #ffebee;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 2px 12px rgba(0,0,0,.07);
  --shadow-md:  0 4px 24px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
  --transition: 0.2s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font-body); }
ul { list-style: none; }

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.accent-text { color: var(--black); position: relative; }
.req-star { color: var(--accent-red); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--black); border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo img { height: 36px; filter: brightness(10); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: #fff; }
.btn-outline-sm {
  border: 1px solid rgba(255,255,255,.3); border-radius: 6px;
  padding: 7px 16px; font-size: 13px; color: rgba(255,255,255,.85) !important;
  transition: all var(--transition);
}
.btn-outline-sm:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--transition); }
.nav-mobile { display: none; background: var(--off-black); padding: 16px 24px; flex-direction: column; gap: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.nav-mobile a { color: rgba(255,255,255,.75); font-size: 14px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.nav-mobile.open { display: flex; }

/* ============================================================
   CAREERS HERO
   ============================================================ */
.careers-hero {
  background: var(--black);
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.careers-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-circle(ellipse at 50% 0%, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 720px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.25); border-radius: 20px;
  padding: 6px 18px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.7); font-family: var(--font-display); font-weight: 600;
  margin-bottom: 28px;
}
.careers-hero h1 {
  font-family: var(--font-display); font-size: clamp(42px, 7vw, 72px); font-weight: 800;
  color: #fff; line-height: 1.05; letter-spacing: -1px; margin-bottom: 20px;
}
.careers-hero p { color: rgba(255,255,255,.6); font-size: 17px; max-width: 520px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--black);
  padding: 13px 28px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: 2px solid #fff; cursor: pointer;
  transition: all var(--transition); letter-spacing: .3px;
}
.btn-primary:hover { background: transparent; color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,.7);
  padding: 13px 28px; border-radius: 8px; font-weight: 500; font-size: 14px;
  border: 2px solid rgba(255,255,255,.2); cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.hero-stats {
  display: flex; gap: 0; justify-content: center; margin-top: 60px;
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
  overflow: hidden; max-width: 480px; margin-left: auto; margin-right: auto;
}
.stat-card {
  flex: 1; padding: 24px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-card:last-child { border-right: none; }
.stat-num { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; color: #fff; }
.stat-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.45); margin-top: 4px; }

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section { padding: 80px 0; background: var(--bg); }
.section-tag {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); font-weight: 600; font-family: var(--font-display);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  color: var(--black); margin-bottom: 48px; line-height: 1.15; letter-spacing: -.5px;
}
.perks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.perk-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
  transition: all var(--transition); background: var(--bg);
}
.perk-card:hover { border-color: var(--black); box-shadow: var(--shadow); transform: translateY(-2px); }
.perk-icon { font-size: 28px; margin-bottom: 16px; }
.perk-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.perk-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ============================================================
   JOB OPENINGS
   ============================================================ */
.openings-section { padding: 80px 0; background: var(--bg-soft); }
.filter-bar {
  display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; align-items: center;
}
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 16px; flex: 1; min-width: 200px;
}
.search-wrap svg { color: var(--muted); flex-shrink: 0; }
.search-wrap input { border: none; outline: none; font-size: 14px; background: transparent; width: 100%; color: var(--dark); }
.filter-bar select {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px;
  font-size: 14px; background: var(--bg); color: var(--dark); outline: none; cursor: pointer;
}
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.job-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; cursor: pointer; transition: all var(--transition);
  display: flex; flex-direction: column; gap: 14px;
}
.job-card:hover { border-color: var(--black); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.job-card-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.job-dept-badge {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 12px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .5px; text-transform: uppercase;
}
.job-type-badge {
  border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: var(--black); color: #fff;
}
.job-type-badge.remote { background: var(--green); }
.job-type-badge.parttime, .job-type-badge.contract { background: var(--amber); color: #fff; }
.job-type-badge.internship { background: var(--blue); }
.job-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--black); line-height: 1.25; }
.job-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.job-meta span { font-size: 13px; color: var(--muted); }
.job-desc { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.job-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  background: var(--bg-soft); border: 1px solid var(--border-2); border-radius: 20px;
  padding: 3px 10px; font-size: 11px; color: var(--mid); font-weight: 500;
}
.job-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-2); }
.posted-date { font-size: 12px; color: var(--muted); }
.apply-btn {
  font-size: 13px; font-weight: 700; color: var(--black);
  background: var(--bg-soft); border: 1px solid var(--border); padding: 7px 16px; border-radius: 6px;
  transition: all var(--transition);
}
.apply-btn:hover { background: var(--black); color: #fff; border-color: var(--black); }
.no-jobs { text-align: center; padding: 80px 24px; }
.no-jobs-icon { font-size: 48px; margin-bottom: 16px; }
.no-jobs h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.no-jobs p { color: var(--muted); margin-bottom: 24px; }

/* ============================================================
   CAREERS FOOTER
   ============================================================ */
.careers-footer { background: var(--black); padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-brand img { height: 32px; filter: brightness(10); margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: 13px; max-width: 260px; line-height: 1.6; }
.footer-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.55); font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }
.footer-bottom p { color: rgba(255,255,255,.35); font-size: 12px; }

/* ============================================================
   APPLY PAGE
   ============================================================ */
.apply-page { background: var(--bg-soft); }
.apply-layout { display: grid; grid-template-columns: 380px 1fr; gap: 0; max-width: 1280px; margin: 0 auto; padding: 32px 24px; align-items: start; }
.job-sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
}
.sidebar-dept {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
  color: var(--muted); margin-bottom: 10px;
}
.sidebar-card h2 { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.sidebar-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-2); }
.meta-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.meta-icon { font-size: 15px; }
.sidebar-section { margin-bottom: 20px; }
.sidebar-section h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 10px; }
.sidebar-section p { font-size: 13px; color: var(--mid); line-height: 1.65; }
.sidebar-section ul { display: flex; flex-direction: column; gap: 7px; }
.sidebar-section ul li { font-size: 13px; color: var(--mid); padding-left: 16px; position: relative; line-height: 1.5; }
.sidebar-section ul li::before { content: '→'; position: absolute; left: 0; color: var(--black); font-size: 11px; top: 1px; }
.skills-list { display: flex; flex-wrap: wrap; gap: 6px; }
.apply-main { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; margin-left: 24px; }
.form-header { margin-bottom: 28px; }
.form-header h1 { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.form-header p { color: var(--muted); font-size: 14px; }

/* Form Sections */
.form-section { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border-2); }
.form-section:last-of-type { border-bottom: none; }
.form-section-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 16px; font-weight: 800;
  margin-bottom: 24px; color: var(--black);
}
.section-num {
  background: var(--black); color: #fff; width: 28px; height: 28px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-group label { font-size: 13px; font-weight: 600; color: var(--dark); }
.field-group input, .field-group select, .field-group textarea {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 14px;
  font-size: 14px; color: var(--dark); background: var(--bg);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus {
  border-color: var(--black); box-shadow: 0 0 0 3px rgba(10,10,10,.06);
}
.field-group textarea { resize: vertical; min-height: 100px; }
.field-group.has-error input, .field-group.has-error select, .field-group.has-error textarea { border-color: var(--accent-red); }
.field-error { font-size: 12px; color: var(--accent-red); font-weight: 500; }
.field-hint { font-size: 12px; color: var(--muted); }

/* File Upload */
.file-upload-area {
  border: 2px dashed var(--border); border-radius: 10px; padding: 32px;
  text-align: center; cursor: pointer; position: relative;
  transition: all var(--transition); background: var(--bg-soft);
}
.file-upload-area:hover, .file-upload-area.drag-over { border-color: var(--black); background: rgba(0,0,0,.02); }
.file-upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 32px; margin-bottom: 10px; }
.upload-label { font-size: 14px; font-weight: 500; color: var(--dark); }
.upload-link { color: var(--black); font-weight: 700; text-decoration: underline; }
.upload-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.file-preview {
  display: flex; align-items: center; gap: 10px; background: var(--green-soft);
  border: 1px solid #a5d6a7; border-radius: 8px; padding: 12px 16px; margin-top: 10px;
}
.file-preview .file-icon { font-size: 20px; }
.file-preview .file-name { font-size: 13px; font-weight: 600; color: var(--green); }
.file-preview .file-size { font-size: 12px; color: var(--muted); }

/* Submit */
.form-submit { padding-top: 24px; border-top: 1px solid var(--border-2); }
.submit-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--black); color: #fff; border: 2px solid var(--black);
  padding: 15px 36px; border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all var(--transition); letter-spacing: .3px;
}
.btn-submit:hover { background: transparent; color: var(--black); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Success Card */
.success-card {
  text-align: center; padding: 60px 40px; border: 2px solid var(--green);
  border-radius: var(--radius-lg); background: var(--green-soft);
}
.success-icon { font-size: 56px; margin-bottom: 20px; }
.success-card h2 { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 14px; color: var(--green); }
.success-card p { color: var(--mid); font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.success-sub { font-size: 13px; margin-bottom: 28px; }

/* Alerts */
.alert-error { background: var(--red-soft); border: 1px solid #ef9a9a; color: var(--accent-red); border-radius: 8px; padding: 12px 18px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-success { background: var(--green-soft); border: 1px solid #a5d6a7; color: var(--green); border-radius: 8px; padding: 12px 18px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.flash-msg { margin-bottom: 24px; }

/* ============================================================
   ADMIN LOGIN
   ============================================================ */
.admin-login-body { background: var(--bg-soft); min-height: 100vh; }
.login-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-brand-side {
  background: var(--black); display: flex; align-items: center; justify-content: center; padding: 60px;
  position: relative; overflow: hidden;
}
.login-brand-side::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.04); pointer-events: none;
}
.brand-content { max-width: 400px; }
.brand-logo { height: 44px; filter: brightness(10); margin-bottom: 32px; }
.brand-content h1 { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: #fff; line-height: 1.05; letter-spacing: -1px; margin-bottom: 20px; }
.brand-content p { color: rgba(255,255,255,.55); font-size: 15px; line-height: 1.7; margin-bottom: 40px; }
.brand-stats { display: flex; gap: 32px; }
.b-stat strong { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 800; color: #fff; }
.b-stat span { font-size: 12px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 60px; }
.login-card { width: 100%; max-width: 400px; }
.login-card-header { margin-bottom: 32px; }
.login-card-header h2 { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.login-card-header p { color: var(--muted); font-size: 14px; }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px; }
.toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; }
.login-hint { font-size: 12px; color: var(--muted); margin-top: 16px; text-align: center; }
.back-link { display: block; text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); transition: color var(--transition); }
.back-link:hover { color: var(--black); }
.login-form .btn-submit { width: 100%; justify-content: center; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body { background: var(--bg-soft); }
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 240px; background: var(--black); display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 200;
  transition: transform var(--transition);
}
.sidebar-header {
  padding: 20px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-header img { height: 28px; filter: brightness(10); }
.sidebar-brand { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: rgba(255,255,255,.9); }
.sidebar-nav { padding: 16px 0; flex: 1; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; font-size: 14px; color: rgba(255,255,255,.55);
  transition: all var(--transition); border-left: 3px solid transparent;
}
.sidebar-nav li a:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.05); }
.sidebar-nav li a.active { color: #fff; background: rgba(255,255,255,.08); border-left-color: #fff; }
.nav-icon { font-size: 16px; }
.sidebar-footer {
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
.admin-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.admin-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.admin-user-info { min-width: 0; }
.admin-user-info strong { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-info span { font-size: 11px; color: rgba(255,255,255,.4); text-transform: capitalize; }
.logout-btn { color: rgba(255,255,255,.4); font-size: 18px; transition: color var(--transition); cursor: pointer; background: none; border: none; padding: 4px; }
.logout-btn:hover { color: var(--accent-red); }

/* Main */
.admin-main { margin-left: 240px; flex: 1; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 60px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--mid); display: none; padding: 4px; }
.page-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.notif-badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--red-soft); border: 1px solid #ef9a9a; border-radius: 20px;
  padding: 5px 12px; font-size: 13px; color: var(--accent-red); font-weight: 600;
}
.topbar-link { font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 7px 14px; transition: all var(--transition); }
.topbar-link:hover { border-color: var(--black); color: var(--black); }
.admin-content { padding: 28px; flex: 1; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; display: flex; align-items: center; gap: 16px;
  transition: all var(--transition);
}
.stat-box:hover { box-shadow: var(--shadow); }
.stat-box.primary { border-color: var(--black); background: var(--black); }
.stat-box.primary .stat-box-num, .stat-box.primary .stat-box-label { color: #fff; }
.stat-box.primary .stat-box-icon { filter: none; }
.stat-box.accent { border-color: #ef9a9a; }
.stat-box.success { border-color: #a5d6a7; }
.stat-box-icon { font-size: 24px; }
.stat-box-num { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--black); }
.stat-box-label { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Dashboard Grid */
.dashboard-grid { display: grid; grid-template-columns: 1fr 300px 300px; gap: 20px; }
.dash-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.dash-card.wide { grid-column: 1 / -1; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-header h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.card-link { font-size: 13px; color: var(--muted); transition: color var(--transition); }
.card-link:hover { color: var(--black); }

/* Top Jobs */
.top-job-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-2); }
.top-job-row:last-child { border-bottom: none; }
.top-job-row strong { display: block; font-size: 14px; font-weight: 600; }
.top-job-row small { font-size: 12px; color: var(--muted); }
.count-badge { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 700; }

/* Status Breakdown */
.status-bar-row { margin-bottom: 14px; }
.status-bar-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.status-bar-label span:first-child { color: var(--mid); }
.status-bar-label span:last-child { font-weight: 700; color: var(--dark); }
.status-bar-track { height: 6px; background: var(--border-2); border-radius: 10px; overflow: hidden; }
.status-bar-fill { height: 100%; border-radius: 10px; transition: width 1s ease; background: var(--black); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead tr { background: var(--bg-soft); }
.admin-table th { padding: 13px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-soft); }
.empty-row { text-align: center; color: var(--muted); padding: 48px !important; }
.app-name-cell { display: flex; align-items: center; gap: 10px; }
.app-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.app-name-cell strong { display: block; font-size: 14px; font-weight: 600; }
.app-name-cell small { display: block; font-size: 12px; color: var(--muted); }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.tbl-btn {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px;
  font-size: 12px; font-weight: 600; color: var(--dark); cursor: pointer;
  background: var(--bg); transition: all var(--transition);
}
.tbl-btn:hover { border-color: var(--black); background: var(--black); color: #fff; }
.tbl-btn.danger { color: var(--accent-red); border-color: #ef9a9a; }
.tbl-btn.danger:hover { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
.tbl-btn.warn { color: var(--amber); border-color: #ffcc80; }
.tbl-btn.warn:hover { background: var(--amber); color: #fff; border-color: var(--amber); }
.tbl-btn.success { color: var(--green); border-color: #a5d6a7; }
.tbl-btn.success:hover { background: var(--green); color: #fff; border-color: var(--green); }
.count-link { color: var(--black); font-weight: 700; text-decoration: underline; font-size: 14px; }
.results-count { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.page-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-actions-left { display: flex; align-items: center; gap: 12px; }
.page-actions .btn-primary { background: var(--black); color: #fff; border-color: var(--black); }
.page-actions .btn-primary:hover { background: transparent; color: var(--black); }

/* Status Pills */
.status-pill {
  display: inline-flex; align-items: center;
  border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  white-space: nowrap;
}
.status-applied            { background: var(--blue-soft); color: var(--blue); }
.status-resume_accepted    { background: var(--amber-soft); color: var(--amber); }
.status-interview_scheduled{ background: #f3e5f5; color: #6a1b9a; }
.status-interview_completed{ background: #e8eaf6; color: #283593; }
.status-employed           { background: var(--green-soft); color: var(--green); }
.status-rejected           { background: var(--red-soft); color: var(--accent-red); }
.status-job-active         { background: var(--green-soft); color: var(--green); }
.status-job-paused         { background: var(--amber-soft); color: var(--amber); }
.status-job-closed         { background: var(--red-soft); color: var(--accent-red); }

/* Modals */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg); border-radius: var(--radius-lg); width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease;
}
.modal-box.large { max-width: 780px; }
@keyframes modalIn { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.modal-close { background: none; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; padding: 6px 10px; font-size: 14px; color: var(--muted); transition: all var(--transition); }
.modal-close:hover { border-color: var(--accent-red); color: var(--accent-red); }
.modal-form { padding: 24px; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; padding-top: 20px; border-top: 1px solid var(--border-2); margin-top: 8px; }
.modal-footer .btn-ghost { background: var(--bg); color: var(--dark); border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 22px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.modal-footer .btn-ghost:hover { border-color: var(--black); }
.modal-footer .btn-primary { background: var(--black); color: #fff; border: none; border-radius: 8px; padding: 10px 22px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.modal-footer .btn-primary:hover { background: var(--mid); }

/* Application Detail */
.detail-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.detail-left { display: flex; flex-direction: column; gap: 16px; }
.detail-right { display: flex; flex-direction: column; gap: 20px; }
.profile-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--black); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  margin: 0 auto 16px;
}
.profile-card h2 { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.profile-role { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.profile-contacts { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.contact-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 8px 10px; border-radius: 6px; transition: background var(--transition); word-break: break-all; }
.contact-row:hover { background: var(--bg-soft); color: var(--black); }
.resume-download { margin-top: 20px; }
.resume-download .btn-primary { display: flex; justify-content: center; background: var(--black); color: #fff; border-color: var(--black); font-size: 13px; }
.info-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.info-card h4 { font-family: var(--font-display); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 14px; }
.info-table { width: 100%; }
.info-table td { padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border-2); }
.info-table td:last-child { border-bottom: none; }
.info-table tr:last-child td { border-bottom: none; }
.info-table td:first-child { font-weight: 600; color: var(--mid); width: 45%; }
.info-table td:last-child { color: var(--dark); }
.cover-letter-text { font-size: 13px; color: var(--mid); line-height: 1.75; }

/* Pipeline */
.pipeline-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.pipeline-card h4 { font-family: var(--font-display); font-size: 14px; font-weight: 800; margin-bottom: 20px; }
.pipeline-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.pipeline-step { display: flex; align-items: center; gap: 10px; }
.step-icon {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: var(--bg); flex-shrink: 0;
}
.step-info strong { display: block; font-size: 12px; font-weight: 700; }
.step-info small { font-size: 11px; color: var(--muted); }
.step-connector { width: 20px; height: 2px; background: var(--border); margin: 0 4px; flex-shrink: 0; }
.connector-done { background: var(--green); }
.step-active .step-icon { border-color: var(--black); background: var(--black); color: #fff; font-size: 16px; }
.step-active .step-info strong { color: var(--black); }
.step-done .step-icon { border-color: var(--green); background: var(--green); color: #fff; font-weight: 700; font-size: 14px; }
.step-done .step-info strong { color: var(--green); }
.step-pending .step-icon { border-color: var(--border); color: var(--muted); }
.step-rejected .step-icon { border-color: var(--accent-red); background: var(--accent-red); color: #fff; }
.step-rejected .step-info strong { color: var(--accent-red); }

/* Action Cards */
.action-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.action-card h4 { font-family: var(--font-display); font-size: 14px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.step-tag { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 600; color: var(--muted); }
.action-card .btn-primary { background: var(--black); color: #fff; border-color: var(--black); display: flex; align-items: center; justify-content: center; }
.action-card .btn-primary:hover { background: var(--mid); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: -8px; margin-bottom: 16px; }
.action-card .field-group { margin-bottom: 14px; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-event { display: flex; gap: 14px; padding-bottom: 16px; position: relative; }
.timeline-event:last-child { padding-bottom: 0; }
.timeline-event:not(:last-child)::before {
  content: ''; position: absolute; left: 8px; top: 20px; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline-dot {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  border: 2px solid;
}
.timeline-dot.status-applied { border-color: var(--blue); background: var(--blue-soft); }
.timeline-dot.status-resume_accepted { border-color: var(--amber); background: var(--amber-soft); }
.timeline-dot.status-interview_scheduled { border-color: #6a1b9a; background: #f3e5f5; }
.timeline-dot.status-interview_completed { border-color: #283593; background: #e8eaf6; }
.timeline-dot.status-employed { border-color: var(--green); background: var(--green-soft); }
.timeline-dot.status-rejected { border-color: var(--accent-red); background: var(--red-soft); }
.timeline-body strong { font-size: 13px; font-weight: 700; display: block; }
.timeline-body p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.timeline-body small { font-size: 11px; color: var(--muted); margin-top: 4px; display: block; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: underline; }
.breadcrumb a:hover { color: var(--black); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .apply-layout { grid-template-columns: 1fr; }
  .job-sidebar { position: static; }
  .apply-main { margin-left: 0; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .login-split { grid-template-columns: 1fr; }
  .login-brand-side { display: none; }
  .careers-hero { padding: 60px 20px 48px; }
  .hero-stats { flex-direction: column; border: none; gap: 0; }
  .stat-card { border: 1px solid rgba(255,255,255,.1); border-radius: 8px; margin-bottom: 8px; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .filter-bar select, .search-wrap { width: 100%; }
  .pipeline-steps { gap: 4px; }
  .step-connector { width: 12px; }
  .pipeline-step .step-info { display: none; }
  .jobs-grid { grid-template-columns: 1fr; }
  .perks-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .admin-content { padding: 12px; }
  .stat-box { padding: 14px; }
  .stat-box-num { font-size: 20px; }
  .apply-main { padding: 20px; }
  .sidebar-card { padding: 20px; }
}
