/* ============================================
   NebulaForge — Global Styles
   Defender for AI HR Lab
   ============================================ */

:root {
  --bg-deep:        #060c18;
  --bg-mid:         #0a1628;
  --bg-card:        rgba(10, 22, 48, 0.75);
  --bg-glass:       rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);

  --primary:        #38c5f5;
  --primary-dark:   #1ea8d8;
  --primary-glow:   rgba(56, 197, 245, 0.15);
  --primary-border: rgba(56, 197, 245, 0.25);

  --accent:         #7b61ff;
  --accent-glow:    rgba(123, 97, 255, 0.15);

  --success:        #10d9a0;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --danger-glow:    rgba(239, 68, 68, 0.15);

  --text:           #e0f2fe;
  --text-muted:     #7ca9c4;
  --text-dim:       #4a7a9b;

  --border:         rgba(56, 197, 245, 0.12);
  --border-hover:   rgba(56, 197, 245, 0.30);

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;

  --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main:      'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--primary-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── Background Stars ───────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--d, 4s) ease-in-out infinite var(--delay, 0s);
  opacity: var(--op, 0.4);
}

@keyframes twinkle {
  0%, 100% { opacity: var(--op, 0.4); transform: scale(1); }
  50%       { opacity: 0.1;           transform: scale(0.5); }
}

/* ─── Nebula background glow ─────────────────── */
.nebula-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%,  rgba(56, 197, 245, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%,  rgba(123, 97, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(6, 12, 24, 0.9)    0%, transparent 70%);
}

/* ─── Layout ─────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ─── Nav ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 12, 24, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img { height: 34px; filter: drop-shadow(0 0 8px rgba(56, 197, 245, 0.4)); }

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--text); background: var(--bg-glass-hover); }
.nav-links a.active { color: var(--primary); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--primary-glow);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
}

.btn-nav:hover {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 0 20px rgba(56, 197, 245, 0.3);
}

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: var(--transition); }

/* ─── Hero ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-sphere {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(56, 197, 245, 0.06) 0%,
    rgba(10, 22, 48, 0.8) 40%,
    rgba(6, 12, 24, 0.95) 70%
  );
  border: 1px solid rgba(56, 197, 245, 0.08);
  box-shadow:
    inset 0 0 80px rgba(56, 197, 245, 0.04),
    0 0 120px rgba(56, 197, 245, 0.06);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-glow);
  border: 1px solid var(--primary-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: pulse 2s ease infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(56, 197, 245, 0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(56, 197, 245, 0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--primary); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); display: block; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 4px 24px rgba(56, 197, 245, 0.25);
}
.btn-primary:hover {
  background: #5dd8ff;
  box-shadow: 0 4px 32px rgba(56, 197, 245, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary-border);
}
.btn-outline:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-glass-hover); border-color: var(--border-hover); }

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

.btn-success {
  background: rgba(16, 217, 160, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 217, 160, 0.3);
}
.btn-success:hover { background: rgba(16, 217, 160, 0.25); }

.btn-sm { padding: 8px 16px; font-size: 0.825rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ─── Section Layout ─────────────────────────── */
section { position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-glow);
  border: 1px solid var(--primary-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ─── About Section ──────────────────────────── */
.about-section { padding: 100px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.about-text h2 span { color: var(--primary); }
.about-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }

.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }

.value-item {
  padding: 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.value-item:hover { border-color: var(--primary-border); background: var(--bg-glass-hover); }
.value-icon { font-size: 1.5rem; margin-bottom: 8px; }
.value-title { font-size: 0.875rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.value-desc { font-size: 0.8rem; color: var(--text-muted); }

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-orb {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%,
    rgba(56, 197, 245, 0.12) 0%,
    rgba(10, 22, 48, 0.6) 50%,
    rgba(6, 12, 24, 0.9) 80%
  );
  border: 1px solid var(--primary-border);
  box-shadow:
    0 0 60px rgba(56, 197, 245, 0.1),
    inset 0 0 60px rgba(56, 197, 245, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.orb-inner {
  font-size: 4rem;
  filter: drop-shadow(0 0 20px rgba(56, 197, 245, 0.5));
}

.orb-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ─── Jobs Section ───────────────────────────── */
.jobs-section { padding: 80px 0 120px; }

.jobs-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}
.filter-btn:hover { border-color: var(--primary-border); color: var(--text); }
.filter-btn.active {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-glow), transparent 60%);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-lg);
}

.job-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(56, 197, 245, 0.1);
}
.job-card:hover::before { opacity: 1; }

.job-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }

.job-dept-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dept-marketing  { background: rgba(245, 158, 11, 0.15);  color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.25); }
.dept-sales      { background: rgba(16, 217, 160, 0.12);  color: var(--success); border: 1px solid rgba(16, 217, 160, 0.25); }
.dept-engineering{ background: rgba(56, 197, 245, 0.12);  color: var(--primary); border: 1px solid var(--primary-border); }
.dept-it         { background: rgba(123, 97, 255, 0.12);  color: #a78bfa; border: 1px solid rgba(123, 97, 255, 0.25); }
.dept-cybersecurity { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }

.job-level { font-size: 0.75rem; color: var(--text-dim); font-weight: 500; }

.job-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.job-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.job-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.job-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.job-salary { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.job-posted { font-size: 0.75rem; color: var(--text-dim); }

/* ─── Cards / Glass ──────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
}

/* ─── Modal ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 12, 24, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: #0d1e38;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 1px rgba(56, 197, 245, 0.2);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
  margin-bottom: 24px;
}

.modal-header h2 { font-size: 1.3rem; font-weight: 700; }
.modal-header h2 span { color: var(--primary); font-size: 0.85em; }

.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--bg-glass-hover); color: var(--text); border-color: var(--border-hover); }

.modal-body { padding: 0 28px 28px; }

/* ─── Forms ──────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.825rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.03em; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary-border); background: rgba(56, 197, 245, 0.04); box-shadow: 0 0 0 3px rgba(56, 197, 245, 0.1); }
.form-control::placeholder { color: var(--text-dim); }
.form-control option { background: #0d1e38; color: var(--text); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── File Upload ────────────────────────────── */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-glass);
  position: relative;
}
.file-upload-area:hover, .file-upload-area.drag-over {
  border-color: var(--primary);
  background: var(--primary-glow);
}
.file-upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.file-upload-text { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.file-upload-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 6px; }
.file-upload-selected { font-size: 0.85rem; color: var(--primary); margin-top: 8px; font-weight: 600; }

/* ─── Job Detail Modal ───────────────────────── */
.job-detail-modal { max-width: 720px; }

.job-detail-dept { margin-bottom: 8px; }
.job-detail-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.job-detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.job-detail-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.job-detail-salary { font-size: 1rem; font-weight: 700; color: var(--primary); }

.job-detail-section { margin-bottom: 24px; }
.job-detail-section h4 { font-size: 0.875rem; font-weight: 700; color: var(--primary); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.job-detail-section ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.job-detail-section li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.job-detail-section li::before { content: '→'; color: var(--primary); flex-shrink: 0; }

.job-detail-actions { display: flex; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ─── Status Messages ────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: rgba(16, 217, 160, 0.1);  border: 1px solid rgba(16, 217, 160, 0.25); color: var(--success); }
.alert-warning { background: rgba(245, 158, 11, 0.1);  border: 1px solid rgba(245, 158, 11, 0.25); color: var(--warning); }
.alert-danger   { background: var(--danger-glow);       border: 1px solid rgba(239, 68, 68, 0.3);   color: var(--danger); }
.alert-info     { background: var(--primary-glow);      border: 1px solid var(--primary-border);    color: var(--primary); }

/* ─── Spinner ────────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(56, 197, 245, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px; color: var(--text-muted); }

/* ─── Portal Layout ──────────────────────────── */
.portal-layout {
  display: block;
  min-height: 100vh;
  padding-top: 68px;
}

.portal-sidebar {
  position: fixed;
  top: 68px;
  left: 0;
  width: 280px;
  height: calc(100vh - 68px);
  background: rgba(6, 12, 24, 0.95);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  overflow-y: auto;
  z-index: 10;
}

.sidebar-section { margin-bottom: 32px; }
.sidebar-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); padding: 0 12px; margin-bottom: 8px; }

.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}
.sidebar-nav a:hover { background: var(--bg-glass-hover); color: var(--text); }
.sidebar-nav a.active { background: var(--primary-glow); color: var(--primary); border: 1px solid var(--primary-border); }
.sidebar-nav .icon { width: 18px; flex-shrink: 0; opacity: 0.8; }
.sidebar-badge {
  margin-left: auto;
  padding: 2px 8px;
  background: var(--primary);
  color: var(--bg-deep);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
}

.portal-main { margin-left: 280px; padding: 32px; }
.portal-header { margin-bottom: 32px; }
.portal-header h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.portal-header p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Stats Grid ─────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary-border); }

.stat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stat-icon { font-size: 1.3rem; }
.stat-trend { font-size: 0.72rem; font-weight: 600; color: var(--success); }
.stat-number { font-size: 1.9rem; font-weight: 800; color: var(--text); display: block; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ─── Applications Table ─────────────────────── */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.table-toolbar h3 { font-size: 1rem; font-weight: 700; }

.search-input {
  padding: 9px 16px 9px 38px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  width: 240px;
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition);
  position: relative;
}
.search-input:focus { border-color: var(--primary-border); }

.search-wrapper { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 0.9rem; pointer-events: none; }

.table-filters { display: flex; gap: 8px; }
.table-filter-btn {
  padding: 8px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}
.table-filter-btn:hover { border-color: var(--primary-border); color: var(--text); }
.table-filter-btn.active { background: var(--primary-glow); border-color: var(--primary); color: var(--primary); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 12, 24, 0.4);
}
.data-table td {
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(56, 197, 245, 0.05);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr { transition: var(--transition); cursor: pointer; }
.data-table tr:hover td { background: var(--bg-glass-hover); color: var(--text); }

.candidate-name { font-weight: 600; color: var(--text); display: block; }
.candidate-email { font-size: 0.78rem; color: var(--text-dim); }

/* ─── Badges ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-new      { background: rgba(56, 197, 245, 0.12);  color: var(--primary);  border: 1px solid var(--primary-border); }
.badge-review   { background: rgba(245, 158, 11, 0.12);  color: var(--warning);  border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-screened { background: rgba(123, 97, 255, 0.12);  color: #a78bfa;         border: 1px solid rgba(123, 97, 255, 0.25); }
.badge-hired    { background: rgba(16, 217, 160, 0.12);  color: var(--success);  border: 1px solid rgba(16, 217, 160, 0.25); }
.badge-rejected { background: rgba(239, 68, 68, 0.1);    color: var(--danger);   border: 1px solid rgba(239, 68, 68, 0.25); }
.badge-threat   { background: rgba(239, 68, 68, 0.15);   color: #ff6b6b;         border: 1px solid rgba(239, 68, 68, 0.4); animation: threat-pulse 1.5s ease infinite; }

@keyframes threat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
  50%       { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* ─── Match Score ────────────────────────────── */
.match-score { font-weight: 800; font-size: 1rem; }
.match-high    { color: var(--success); }
.match-medium  { color: var(--warning); }
.match-low     { color: var(--danger); }

.score-ring {
  width: 64px; height: 64px;
  position: relative;
  flex-shrink: 0;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring-track { fill: none; stroke: var(--border); stroke-width: 5; }
.score-ring-fill  { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.score-ring-text  { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; }

/* ─── Application Detail Panel ───────────────── */
.detail-panel {
  background: #0d1e38;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
}

.detail-panel-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.detail-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.detail-position { font-size: 0.875rem; color: var(--text-muted); }

.detail-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.detail-tab {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
  margin-bottom: -1px;
}
.detail-tab:hover { color: var(--text); }
.detail-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.detail-tab-content { display: none; }
.detail-tab-content.active { display: block; }

/* ─── Agent Analysis Blocks ──────────────────── */
.agent-block {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.agent-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.agent-block.interviewer::before { background: var(--primary); }
.agent-block.hr-manager::before  { background: var(--accent); }

.agent-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.agent-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.agent-avatar.interviewer { background: var(--primary-glow); border: 1px solid var(--primary-border); }
.agent-avatar.hr-manager  { background: var(--accent-glow);  border: 1px solid rgba(123, 97, 255, 0.3); }
.agent-name { font-size: 0.825rem; font-weight: 700; }
.agent-role { font-size: 0.72rem; color: var(--text-dim); }
.agent-timestamp { margin-left: auto; font-size: 0.72rem; color: var(--text-dim); font-family: var(--font-mono); }

.agent-content { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.agent-content strong { color: var(--text); font-weight: 600; }

/* ─── Security Threat Block ──────────────────── */
.threat-block {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}
.threat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.threat-title { font-size: 0.9rem; font-weight: 700; color: var(--danger); }
.threat-indicator { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: threat-pulse 1s ease infinite; }
.threat-detail { font-size: 0.825rem; color: var(--text-muted); line-height: 1.6; }
.threat-type-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.threat-type-badge {
  padding: 3px 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 100px;
  font-size: 0.72rem;
  color: #fca5a5;
  font-weight: 600;
}

/* ─── Decision Actions ───────────────────────── */
.decision-bar {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
  background: rgba(6, 12, 24, 0.6);
}

/* ─── Application Drawer ─────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(6, 12, 24, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.app-drawer {
  position: fixed;
  top: 68px;
  right: 0;
  width: 620px;
  max-width: 100vw;
  height: calc(100vh - 68px);
  z-index: 151;
  background: #0d1e38;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.5);
}
.app-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  min-height: 0;
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.drawer-close:hover { background: var(--bg-glass-hover); color: var(--text); }

/* ─── Info Fields ────────────────────────────── */
.info-field {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.info-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.info-value {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

/* ─── Login / Auth Screen ────────────────────── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #0d1e38;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}
.auth-logo { height: 50px; margin-bottom: 8px; filter: drop-shadow(0 0 10px rgba(56, 197, 245, 0.35)); }
.auth-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.auth-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 32px; }
.auth-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.auth-info { font-size: 0.78rem; color: var(--text-dim); margin-top: 20px; line-height: 1.6; }

.microsoft-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: #2f2f2f;
  border: 1px solid #555;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}
.microsoft-btn:hover { background: #3a3a3a; border-color: #888; }
.microsoft-btn img { width: 20px; height: 20px; }

/* ─── Footer ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; margin-top: 16px; line-height: 1.7; max-width: 280px; }
.footer-logo { height: 28px; margin-bottom: 4px; }
.footer-logo-text { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em; color: var(--primary); text-transform: uppercase; }
.footer-col h4 { font-size: 0.825rem; font-weight: 700; color: var(--text); margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-dim); }

/* ─── Animations ─────────────────────────────── */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Toast ──────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 360px;
  animation: toastIn 0.3s ease;
  cursor: pointer;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.toast-success { background: rgba(16, 217, 160, 0.15); border: 1px solid rgba(16, 217, 160, 0.3); color: var(--success); }
.toast-error   { background: rgba(239, 68, 68, 0.15);  border: 1px solid rgba(239, 68, 68, 0.3);  color: var(--danger); }
.toast-info    { background: var(--primary-glow);       border: 1px solid var(--primary-border);   color: var(--primary); }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .portal-sidebar { display: none; }
  .portal-main    { margin-left: 0; }
  .about-grid     { grid-template-columns: 1fr; }
  .about-visual   { display: none; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .jobs-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .table-toolbar { flex-direction: column; align-items: flex-start; }
  .app-drawer { width: 100vw; top: 68px; }
}
