/* ==========================================================
   TalentBridge — Design System
   ========================================================== */

:root {
  --tb-primary: #4f46e5;
  --tb-primary-dark: #4338ca;
  --tb-secondary: #0ea5e9;
  --tb-accent: #f59e0b;
  --tb-success: #10b981;
  --tb-danger: #ef4444;
  --tb-bg: #f7f8fc;
  --tb-surface: #ffffff;
  --tb-text: #1e1b2e;
  --tb-text-muted: #6b7280;
  --tb-border: #e5e7eb;
  --tb-radius: 16px;
  --tb-radius-sm: 10px;
  --tb-shadow: 0 4px 24px rgba(30, 27, 46, 0.06);
  --tb-shadow-lg: 0 12px 40px rgba(30, 27, 46, 0.12);
  --tb-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0ea5e9 100%);
}

[data-theme="dark"] {
  --tb-bg: #0f0f1a;
  --tb-surface: #1a1a2e;
  --tb-text: #f3f4f6;
  --tb-text-muted: #9ca3af;
  --tb-border: #2a2a42;
  --tb-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --tb-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--tb-bg);
  color: var(--tb-text);
  transition: background .25s ease, color .25s ease;
}

a { text-decoration: none; }

/* ---------- Navbar ---------- */
.tb-navbar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tb-border);
  padding: .9rem 0;
}
[data-theme="dark"] .tb-navbar { background: rgba(15, 15, 26, 0.75); }

.tb-brand {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--tb-text) !important;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.tb-brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--tb-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.nav-link { color: var(--tb-text) !important; font-weight: 500; }
.tb-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--tb-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn-tb {
  background: var(--tb-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: .55rem 1.25rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-tb:hover { transform: translateY(-2px); box-shadow: var(--tb-shadow-lg); color: #fff; }
.btn-outline-tb {
  border: 1.5px solid var(--tb-primary);
  color: var(--tb-primary);
  border-radius: 10px;
  font-weight: 600;
  padding: .5rem 1.2rem;
  background: transparent;
}
.btn-outline-tb:hover { background: var(--tb-primary); color: #fff; }

/* ---------- Hero ---------- */
.tb-hero {
  background: var(--tb-gradient);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 8rem;
  color: #fff;
}
.tb-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.15), transparent 40%),
              radial-gradient(circle at 80% 60%, rgba(255,255,255,.12), transparent 45%);
}
.tb-hero-content { position: relative; z-index: 1; }
.tb-hero h1 { font-weight: 800; font-size: 3rem; line-height: 1.15; }
.tb-search-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--tb-radius);
  padding: 1.25rem;
}
.tb-search-card input, .tb-search-card select {
  border: none;
  border-radius: var(--tb-radius-sm);
  padding: .7rem 1rem;
}

/* ---------- Cards ---------- */
.tb-card {
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tb-card:hover { transform: translateY(-4px); box-shadow: var(--tb-shadow-lg); }
.tb-card-body { padding: 1.5rem; }

.tb-job-card { padding: 1.5rem; }
.tb-job-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--tb-gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
  flex-shrink: 0;
}
.tb-badge {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(79, 70, 229, .1);
  color: var(--tb-primary);
}
.tb-stat-card {
  background: var(--tb-surface);
  border-radius: var(--tb-radius);
  border: 1px solid var(--tb-border);
  padding: 1.5rem;
  box-shadow: var(--tb-shadow);
}
.tb-stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,70,229,.1);
  color: var(--tb-primary);
}

/* ---------- Sections ---------- */
.tb-section { padding: 5rem 0; }
.tb-section-title { font-weight: 800; font-size: 2.1rem; }
.tb-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--tb-primary);
}

/* ---------- Forms ---------- */
.tb-auth-card {
  max-width: 460px;
  margin: 4rem auto;
  background: var(--tb-surface);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow-lg);
  border: 1px solid var(--tb-border);
  padding: 2.5rem;
}
.form-control, .form-select {
  border-radius: var(--tb-radius-sm);
  border: 1.5px solid var(--tb-border);
  padding: .65rem .9rem;
  background: var(--tb-surface);
  color: var(--tb-text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--tb-primary);
  box-shadow: 0 0 0 .2rem rgba(79,70,229,.15);
}

/* ---------- Dashboard shell ---------- */
.tb-dash-sidebar {
  background: var(--tb-surface);
  border-right: 1px solid var(--tb-border);
  min-height: calc(100vh - 70px);
  padding: 1.5rem 1rem;
}
.tb-dash-sidebar .nav-link {
  border-radius: var(--tb-radius-sm);
  padding: .65rem .9rem;
  margin-bottom: .25rem;
  color: var(--tb-text-muted) !important;
  display: flex; align-items: center; gap: .6rem;
  font-weight: 500;
}
.tb-dash-sidebar .nav-link.active,
.tb-dash-sidebar .nav-link:hover {
  background: rgba(79,70,229,.1);
  color: var(--tb-primary) !important;
}
.tb-dash-main { padding: 2rem; }

/* ---------- Kanban / ATS Board ---------- */
.tb-kanban { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; }
.tb-kanban-col {
  background: var(--tb-bg);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  min-width: 270px;
  flex: 0 0 270px;
  padding: 1rem;
}
.tb-kanban-col h6 { font-weight: 700; margin-bottom: 1rem; display: flex; justify-content: space-between; }
.tb-kanban-count {
  background: var(--tb-primary);
  color: #fff;
  border-radius: 20px;
  font-size: .7rem;
  padding: .1rem .55rem;
}
.tb-kanban-card {
  background: var(--tb-surface);
  border-radius: var(--tb-radius-sm);
  border: 1px solid var(--tb-border);
  padding: .85rem;
  margin-bottom: .75rem;
  cursor: grab;
  box-shadow: var(--tb-shadow);
}
.tb-kanban-card:active { cursor: grabbing; }
.tb-kanban-card.dragging { opacity: .4; }
.tb-kanban-col.drag-over { background: rgba(79,70,229,.06); border-color: var(--tb-primary); }

/* ---------- Utility ---------- */
.tb-alert { border-radius: var(--tb-radius-sm); border: none; }
.tb-empty-state { text-align: center; padding: 4rem 1rem; color: var(--tb-text-muted); }
.tb-theme-toggle {
  border: 1px solid var(--tb-border);
  background: var(--tb-surface);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.tb-footer { background: var(--tb-surface); border-top: 1px solid var(--tb-border); }
.tb-footer-links li { margin-bottom: .5rem; }
.tb-footer-links a { color: var(--tb-text-muted); font-size: .9rem; }
.tb-footer-links a:hover { color: var(--tb-primary); }

@media (max-width: 768px) {
  .tb-hero h1 { font-size: 2.1rem; }
  .tb-dash-sidebar { min-height: auto; }
}
