/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #e4e4e7;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: #a78bfa; text-decoration: none; transition: color 0.15s; }
a:hover { color: #c4b5fd; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 0.9375rem;
  background: #18181b;
  border: 1px solid #27272a;
  color: #e4e4e7;
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}
textarea { resize: vertical; min-height: 80px; }

/* ─── Layout ───────────────────────────────────────────────────── */
#app { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── Nav ──────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #1e1e24;
  margin-bottom: 32px;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: #a78bfa; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: #a1a1aa;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: all 0.15s;
}
.btn-primary { background: #7c3aed; color: #fff; }
.btn-primary:hover { background: #6d28d9; }
.btn-secondary { background: #27272a; color: #e4e4e7; }
.btn-secondary:hover { background: #3f3f46; }
.btn-success { background: #059669; color: #fff; }
.btn-success:hover { background: #047857; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { background: transparent; border: 1px solid #3f3f46; color: #a1a1aa; }
.btn-outline:hover { border-color: #a78bfa; color: #a78bfa; }
.btn-sm { padding: 6px 12px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Cards ────────────────────────────────────────────────────── */
.card {
  background: #141418;
  border: 1px solid #1e1e24;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.card h2 { font-size: 1.125rem; font-weight: 700; color: #fff; }
.card h3 { font-size: 0.9375rem; font-weight: 600; color: #e4e4e7; }

/* ─── Pipeline Board ───────────────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }

.pipeline-col {
  background: #111115;
  border: 1px solid #1e1e24;
  border-radius: 12px;
  padding: 16px;
  min-height: 200px;
}
.pipeline-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e1e24;
}
.pipeline-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pipeline-col-count {
  background: #27272a;
  color: #a1a1aa;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.stage-applied .pipeline-col-title { color: #60a5fa; }
.stage-screened .pipeline-col-title { color: #fbbf24; }
.stage-interview .pipeline-col-title { color: #a78bfa; }
.stage-hired .pipeline-col-title { color: #34d399; }

.candidate-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.candidate-card:hover { border-color: #a78bfa; transform: translateY(-1px); }
.candidate-card .name { font-weight: 600; font-size: 0.875rem; color: #fff; margin-bottom: 2px; }
.candidate-card .email { font-size: 0.75rem; color: #71717a; }
.candidate-card .date { font-size: 0.6875rem; color: #52525b; margin-top: 4px; }

/* ─── Stats Row ────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #141418;
  border: 1px solid #1e1e24;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.75rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.stat-value.purple { color: #a78bfa; }
.stat-value.green { color: #34d399; }
.stat-value.blue { color: #60a5fa; }
.stat-value.yellow { color: #fbbf24; }

/* ─── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a1a1aa;
  margin-bottom: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-help {
  font-size: 0.75rem;
  color: #52525b;
  margin-top: 4px;
}

/* ─── Badges ───────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-applied { background: rgba(96,165,250,0.15); color: #60a5fa; }
.badge-screened { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-interview { background: rgba(167,139,250,0.15); color: #a78bfa; }
.badge-hired { background: rgba(52,211,153,0.15); color: #34d399; }
.badge-rejected { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-open { background: rgba(52,211,153,0.15); color: #34d399; }
.badge-closed { background: rgba(113,113,122,0.15); color: #71717a; }

/* ─── Table ────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #1e1e24; }
th { font-size: 0.75rem; font-weight: 700; color: #71717a; text-transform: uppercase; letter-spacing: 0.05em; }
td { font-size: 0.875rem; }
tr:hover td { background: rgba(167,139,250,0.03); }

/* ─── Activity Feed ────────────────────────────────────────────── */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1e1e24;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a78bfa;
  margin-top: 7px;
  flex-shrink: 0;
}
.activity-text { font-size: 0.875rem; color: #a1a1aa; }
.activity-text strong { color: #e4e4e7; }
.activity-time { font-size: 0.6875rem; color: #52525b; margin-top: 2px; }

/* ─── Modal ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal {
  background: #141418;
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
}
.modal h2 { font-size: 1.25rem; margin-bottom: 20px; color: #fff; }

/* ─── Page Headers ─────────────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.breadcrumb {
  font-size: 0.8125rem;
  color: #71717a;
  margin-bottom: 8px;
}
.breadcrumb a { color: #71717a; }
.breadcrumb a:hover { color: #a78bfa; }

/* ─── Empty States ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #52525b;
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1rem; color: #71717a; margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; max-width: 400px; margin: 0 auto 16px; }

/* ─── Landing ──────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.125rem;
  color: #a1a1aa;
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 40px 0 80px;
}
.feature-card {
  background: #141418;
  border: 1px solid #1e1e24;
  border-radius: 12px;
  padding: 28px;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: #71717a; }

/* ─── Slots Grid ───────────────────────────────────────────────── */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.slot-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  transition: border-color 0.15s;
}
.slot-card.available { cursor: pointer; }
.slot-card.available:hover { border-color: #a78bfa; }
.slot-card.booked { opacity: 0.5; cursor: not-allowed; }
.slot-date { font-weight: 700; font-size: 0.9375rem; color: #fff; }
.slot-time { font-size: 0.8125rem; color: #a1a1aa; margin-top: 4px; }
.slot-status { font-size: 0.6875rem; margin-top: 8px; }

/* ─── Toast ────────────────────────────────────────────────────── */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; }
.toast {
  background: #1e1e24;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  animation: slideIn 0.2s ease;
  max-width: 360px;
}
.toast.success { border-left: 3px solid #34d399; }
.toast.error { border-left: 3px solid #ef4444; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── Utilities ────────────────────────────────────────────────── */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: #71717a; }
.text-sm { font-size: 0.8125rem; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }
