/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ─── Color scheme per theme (controls native form control icons) ── */
[data-theme="amber-dark"] { color-scheme: dark; }
[data-theme="amber-parchment"],
[data-theme="amber-honey"],
[data-theme="amber-antique"] { color-scheme: light; }

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  /* Background system */
  --bg-base: #080d17;
  --bg-surface: #0f172a;
  --bg-elevated: #1a2540;
  --bg-card: #1e293b;
  --bg-card-hover: #243148;
  --bg-border: #2a3a5c;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Accents */
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.6);
  --shadow-glow-blue: 0 0 30px rgba(59,130,246,0.15);
  --shadow-glow-purple: 0 0 30px rgba(139,92,246,0.15);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.25s ease;
  --transition-slow: all 0.4s ease;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(139,92,246,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }

a {
  color: var(--brand-400);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover { color: var(--brand-200); }

/* ─── Layout ──────────────────────────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-area {
  flex: 1 1;
  padding: 2rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ─── Navigation ──────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--surface-filter);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
}

.navbar-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
}

.navbar-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar-link:hover, .navbar-link.active {
  background: var(--accent-soft);
  color: var(--text);
}

.navbar-link.active {
  color: var(--accent-text);
}

/* ─── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.card:hover {
  border-color: var(--accent-soft-border);
  box-shadow: var(--card-shadow);
}

.card-elevated {
  background: var(--surface-filter);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--btn-primary-shadow);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  opacity: 0.9;
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-secondary {
  background: var(--surface-filter);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent-soft-border);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-filter);
  color: var(--text);
}

.btn-danger {
  background: rgba(239,68,68,0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239,68,68,0.2);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(239,68,68,0.2);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.btn-success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.4);
}

.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }

/* ─── Form Elements ───────────────────────────────────────────────────────────── */
.input {
  width: 100%;
  background: var(--surface-filter);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: var(--transition-fast);
  outline: none;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input::placeholder { color: var(--text-dim); }

textarea.input {
  resize: vertical;
  min-height: 120px;
}

.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.375rem;
  letter-spacing: 0.3px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

/* ─── Badge ───────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-blue {
  background: rgba(59,130,246,0.15);
  color: var(--brand-400);
  border: 1px solid rgba(59,130,246,0.25);
}

.badge-green {
  background: rgba(16,185,129,0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16,185,129,0.2);
}

.badge-red {
  background: rgba(239,68,68,0.12);
  color: var(--accent-red);
  border: 1px solid rgba(239,68,68,0.2);
}

.badge-orange {
  background: rgba(245,158,11,0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(245,158,11,0.2);
}

.badge-purple {
  background: rgba(139,92,246,0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(139,92,246,0.2);
}

/* ─── Score Ring Animation ────────────────────────────────────────────────────── */
@keyframes draw-ring {
  from { stroke-dashoffset: 251.2; }
  to   { stroke-dashoffset: var(--ring-offset); }
}

.score-ring circle {
  animation: draw-ring 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ─── Skill Chips ─────────────────────────────────────────────────────────────── */
.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.skill-matched {
  background: rgba(16,185,129,0.12);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.25);
}

.skill-missing {
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.2);
}

.skill-recommended {
  background: rgba(59,130,246,0.1);
  color: var(--brand-400);
  border: 1px solid rgba(59,130,246,0.2);
}

/* ─── Job Card ────────────────────────────────────────────────────────────────── */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.job-card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-blue);
}

.job-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft-border), var(--card-shadow);
}

/* ─── Dropzone ────────────────────────────────────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  background: var(--surface-filter);
}

.dropzone:hover, .dropzone.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ─── Progress/Loading ────────────────────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ─── Sidebar ─────────────────────────────────────────────────────────────────── */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ─── Dividers ────────────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--bg-border);
  margin: 1.25rem 0;
}

/* ─── Scrollbar ───────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: var(--bg-border);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Animations ──────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.1); }
  50%       { box-shadow: 0 0 40px rgba(59,130,246,0.25); }
}

.animate-fadeUp { animation: fadeUp 0.4s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.3s ease forwards; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* ─── Navbar Right ────────────────────────────────────────────────────────────── */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── Health Pill ─────────────────────────────────────────────────────────────── */
.health-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  transition: var(--transition-slow);
}
.health-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* ─── User Menu ───────────────────────────────────────────────────────────────── */
.user-menu-wrapper {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  cursor: pointer;
  color: var(--text-mid);
  transition: var(--transition-fast);
}
.user-menu-trigger:hover {
  border-color: var(--accent);
  color: var(--text);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--btn-primary-text);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar-sm {
  width: 22px;
  height: 22px;
  font-size: 0.68rem;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  z-index: 500;
  overflow: hidden;
}

.user-menu-dropdown-up {
  top: auto;
  bottom: calc(100% + 8px);
  right: 50%;
  transform: translateX(50%);
}

.user-menu-email {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  word-break: break-all;
}

.user-menu-logout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--red-text);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
}
.user-menu-logout:hover {
  background: var(--red-bg);
}

/* ─── Jobs Layout Grid ───────────────────────────────────────────────────────── */
/* Replaces the inline gridTemplateColumns on /jobs so media queries can collapse it */
.jobs-layout-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  grid-template-columns: 400px 1fr;
}
.jobs-layout-grid.single-col {
  grid-template-columns: 1fr;
}

/* Job selected-card header: title + action buttons */
.job-select-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.job-select-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── Tracking Controls Bar ──────────────────────────────────────────────────── */
.tracking-controls-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ─── Mobile Bottom Tab Bar ───────────────────────────────────────────────────── */
.mobile-tab-bar {
  display: none;
}

.navbar-links-desktop { display: flex; }
.navbar-user-desktop  { display: flex; }
.navbar-signin-desktop { display: inline-flex; }

/* ─── Responsive grids ────────────────────────────────────────────────────────── */
.dashboard-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* ─── Tablet: collapse jobs sidebar at 920px ─────────────────────────────────── */
@media (max-width: 920px) {
  .jobs-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  /* Sidebar */
  .sidebar { width: 100%; }

  /* Content padding — add bottom space for tab bar */
  .content-area {
    padding: 1rem;
    padding-bottom: calc(1rem + 68px);
  }

  /* Hero card */
  .hero-card {
    padding: 1.25rem;
  }

  /* Navbar: hide desktop links/user, keep logo + health */
  .navbar-links-desktop {
    display: none;
  }
  .navbar-user-desktop {
    display: none;
  }
  .navbar-signin-desktop {
    display: none;
  }

  /* Bottom tab bar */
  .mobile-tab-bar {
    display: flex;
    align-items: stretch;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--bg-border);
    z-index: 200;
    padding: 0 0.25rem;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-tab-item {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.15s ease;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    position: relative;
  }

  .mobile-tab-item::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: background 0.15s ease;
  }

  .mobile-tab-item:hover,
  .mobile-tab-item.active {
    color: var(--brand-400);
  }

  .mobile-tab-item.active::before {
    background: rgba(59, 130, 246, 0.12);
  }

  .mobile-tab-item svg,
  .mobile-tab-item .user-avatar-sm {
    position: relative;
    z-index: 1;
  }

  .mobile-tab-item span:not(.user-avatar-sm) {
    position: relative;
    z-index: 1;
  }

  .mobile-tab-user-wrapper {
    flex: 1 1;
    display: flex;
  }

  .mobile-tab-user-wrapper > button {
    flex: 1 1;
  }

  /* Dashboard grids */
  .dashboard-two-col {
    grid-template-columns: 1fr;
  }
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cards */
  .card, .card-elevated, .glass-card {
    padding: 1rem;
  }

  /* Dropzone */
  .dropzone {
    padding: 2rem 1rem;
  }

  /* Buttons — make them easier to tap */
  .btn {
    min-height: 40px;
  }

  /* Jobs layout: collapse sidebar to single column */
  .jobs-layout-grid {
    grid-template-columns: 1fr;
  }

  /* Tracking controls bar: wrap to multiple rows */
  .tracking-controls-bar {
    flex-wrap: wrap;
    width: 100%;
  }
  /* Wrapper divs are the direct flex children — control their sizes */
  .tracking-search-wrapper {
    width: 100%;
  }
  .tracking-search-input {
    width: 100% !important;
    min-width: 0 !important;
  }
  .tracking-filter-wrapper {
    flex: 1 1;
    min-width: 100px;
  }
  .tracking-filter-select {
    width: 100% !important;
  }
  .tracking-date-wrapper {
    flex: 1 1;
    min-width: 130px;
  }
  .tracking-date-input {
    width: 100% !important;
  }
  .tracking-controls-divider {
    display: none;
  }
  .tracking-track-btn {
    width: 100%;
    justify-content: center;
  }

  /* Mobile tab bar: use theme variable for bg */
  .mobile-tab-bar {
    background: var(--surface, rgba(15,23,42,0.96));
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .content-area {
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + 68px);
  }

  .dashboard-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-actions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-card {
    padding: 1rem;
  }

  /* Stack hero content vertically */
  .hero-card > div {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* ─── Gradient Text ─────────────────────────────────────────────────────────── */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-success {
  background: var(--gradient-success);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Status Dot ────────────────────────────────────────────────────────────── */
@keyframes pulse-status {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.online   { background: var(--green); animation: pulse-status 2.5s ease-in-out infinite; }
.status-dot.offline  { background: var(--red); }
.status-dot.checking { background: var(--amber); animation: pulse-status 1s ease-in-out infinite; }

/* ─── Float Animation ───────────────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
.animate-float { animation: float 3s ease-in-out infinite; }

/* ─── Count-up Animation ────────────────────────────────────────────────────── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-countUp { animation: countUp 0.5s ease-out forwards; }

/* ─── Fade Down (menu/popovers) ─────────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeDown { animation: fadeDown 0.2s ease forwards; }

/* ─── Tooltip ────────────────────────────────────────────────────────────────── */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
}
.tooltip-wrapper .tooltip-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}
.tooltip-wrapper:hover .tooltip-content { opacity: 1; }

/* ─── Keyboard Key ───────────────────────────────────────────────────────────── */
.kbd {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  font-size: 0.6875rem;
  font-family: monospace;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-bottom-width: 2px;
  border-radius: 4px;
}

/* ─── Hero Card ──────────────────────────────────────────────────────────────── */
.hero-card {
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.07) 0%,
    rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── Glassmorphism Stat Card ────────────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  border-color: var(--accent-soft-border);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

/* ─── Progress Bar ───────────────────────────────────────────────────────────── */
.progress-bar {
  height: 4px;
  border-radius: 99px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--gradient-brand);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Alert Banner ───────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}
.alert-warning { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.25); color: var(--accent-orange); }
.alert-info    { background: rgba(59,130,246,0.06);  border: 1px solid rgba(59,130,246,0.2);  color: var(--brand-400); }
.alert-success { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2); color: var(--accent-green); }

/* ─── Checklist / Onboarding ─────────────────────────────────────────────────── */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
.checklist-item:hover { background: var(--bg-elevated); }
.checklist-item.done { opacity: 0.5; }

/* ═══════════════════════════════════════════════════════════════════════════════
   ANALYSIS PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Loading state */
.analysis-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

/* ── Sticky collapsing header ─────────────────────────────────────────────── */
.analysis-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(8, 13, 23, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-border);
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* sits just below the main navbar (z-index 100) */
}

.analysis-header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.analysis-header.header-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.analysis-header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.625rem 1.5rem;
}

.analysis-back-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: 99px;
  transition: var(--transition-fast);
}
.analysis-back-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-400);
}

.analysis-header-title {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.analysis-job-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-company {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.analysis-track-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
  transition: var(--transition-fast);
}
.analysis-track-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59,130,246,0.45);
}

/* JD toggle button in header — mobile only */
.analysis-jd-toggle-header {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
  border-radius: 99px;
  gap: 0.3rem;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
}
.analysis-jd-toggle-header:hover {
  border-color: var(--brand-500);
  color: var(--text-primary);
}

/* ── Full-width analysis ─────────────────────────────────────────────────── */
.analysis-fullwidth {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── JD Header Button (next to job title) ────────────────────────────────── */
.jd-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,130,246,0.35);
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.jd-header-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.5);
}

/* ── JD Popup panel ──────────────────────────────────────────────────────── */
.jd-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  z-index: 210;
}

.jd-popup {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 220;
  width: 600px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 100px);
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.jd-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--bg-border);
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.jd-popup-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.jd-popup-close:hover {
  background: rgba(239,68,68,0.1);
  color: var(--accent-red);
}

.jd-popup-body {
  overflow-y: auto;
  flex: 1 1;
  padding: 1.5rem;
}

/* ── CL Modal ─────────────────────────────────────────────────────────────── */
.cl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1.5rem;
}

.cl-modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.cl-modal-body {
  overflow-y: auto;
  flex: 1 1;
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.8;
  white-space: pre-wrap;
  font-family: Georgia, serif;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ANALYSIS PAGE — MOBILE
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .analysis-page {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .analysis-header-inner {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .back-label {
    display: none;
  }

  .analysis-jd-toggle-header {
    display: flex;
  }

  /* JD popup on mobile: centered near top, full width */
  .jd-popup {
    top: 72px;
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 72px - 80px); /* leave room for tab bar */
  }

  /* CL modal as bottom sheet */
  .cl-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .cl-modal-card {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

/*!********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/app/amber-noir.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************/
/* ============================================================
   AMBER NOIR THEME — CSS Custom Properties
   Job Match AI · Design #04
   Drop this into your globals.css or import in layout.tsx
   ============================================================ */

/* ── Base (dark — default) ─────────────────────────────────── */
[data-theme="amber-dark"] {
  --bg:                  #0b0904;
  --surface:             #141008;
  --surface-filter:      rgba(6, 4, 0, 0.55);

  --border:              rgba(212, 160, 48, 0.22);
  --border-strong:       rgba(212, 160, 48, 0.10);

  --text:                #f2e8d0;
  --text-mid:            rgba(242, 232, 208, 0.55);
  --text-dim:            rgba(242, 232, 208, 0.28);

  --accent:              #d4a030;
  --accent-dark:         #a07020;
  --accent-text:         #e8c46a;
  --accent-soft:         rgba(212, 160, 48, 0.13);
  --accent-soft-border:  rgba(212, 160, 48, 0.38);

  --stat-bg:             rgba(212, 160, 48, 0.09);
  --stat-border:         rgba(212, 160, 48, 0.22);

  --tag-bg:              rgba(212, 160, 48, 0.10);
  --tag-border:          rgba(212, 160, 48, 0.25);
  --tag-text:            #e8c46a;

  --red:                 #e05555;
  --red-soft:            rgba(224, 85, 85, 0.12);
  --red-border:          rgba(224, 85, 85, 0.28);
  --red-text:            #e07070;

  --green:               #5cd45a;
  --green-soft:          rgba(92, 212, 90, 0.10);
  --green-border:        rgba(92, 212, 90, 0.28);
  --green-text:          #5cd45a;

  --amber:               #d4a030;
  --amber-soft:          rgba(212, 160, 48, 0.13);
  --amber-border:        rgba(212, 160, 48, 0.35);

  --btn-primary-bg:      linear-gradient(135deg, #d4a030, #a07020);
  --btn-primary-text:    #0b0904;
  --btn-primary-shadow:  0 4px 18px rgba(212, 160, 48, 0.35);
  --check-text:          #0b0904;

  --score-badge-bg:      linear-gradient(135deg, #ff9a3c, #ff4d6d);
  --score-badge-shadow:  0 2px 12px rgba(255, 77, 109, 0.45);

  --divider:             linear-gradient(90deg, transparent, rgba(212,160,48,0.35), transparent);
  --card-shadow:         0 24px 80px rgba(0, 0, 0, 0.5);
}

/* ── Warm Parchment (light) ───────────────────────────────── */
[data-theme="amber-parchment"] {
  --bg:                  #fdf6e3;
  --surface:             #fffdf5;
  --surface-filter:      #fef9ec;

  --border:              rgba(180, 120, 20, 0.25);
  --border-strong:       rgba(180, 120, 20, 0.13);

  --text:                #2d1f00;
  --text-mid:            rgba(45, 31, 0, 0.55);
  --text-dim:            rgba(45, 31, 0, 0.35);

  --accent:              #d4a030;
  --accent-dark:         #a07020;
  --accent-text:         #7a5000;
  --accent-soft:         rgba(212, 160, 48, 0.15);
  --accent-soft-border:  rgba(180, 120, 20, 0.40);

  --stat-bg:             rgba(212, 160, 48, 0.10);
  --stat-border:         rgba(180, 120, 20, 0.25);

  --tag-bg:              rgba(212, 160, 48, 0.12);
  --tag-border:          rgba(180, 120, 20, 0.30);
  --tag-text:            #7a5000;

  --red:                 #c0392b;
  --red-soft:            rgba(192, 57, 43, 0.10);
  --red-border:          rgba(192, 57, 43, 0.28);
  --red-text:            #c0392b;

  --green:               #27ae60;
  --green-soft:          rgba(39, 174, 96, 0.10);
  --green-border:        rgba(39, 174, 96, 0.28);
  --green-text:          #27ae60;

  --amber:               #d4a030;
  --amber-soft:          rgba(212, 160, 48, 0.15);
  --amber-border:        rgba(212, 160, 48, 0.35);

  --btn-primary-bg:      linear-gradient(135deg, #d4a030, #a07020);
  --btn-primary-text:    #fff;
  --btn-primary-shadow:  0 4px 18px rgba(160, 112, 32, 0.35);
  --check-text:          #fff;

  --score-badge-bg:      linear-gradient(135deg, #ff9a3c, #ff4d6d);
  --score-badge-shadow:  0 2px 12px rgba(255, 77, 109, 0.35);

  --divider:             linear-gradient(90deg, transparent, rgba(180,120,20,0.3), transparent);
  --card-shadow:         0 8px 40px rgba(180, 120, 20, 0.10);
}

/* ── Honey Gold (light) ───────────────────────────────────── */
[data-theme="amber-honey"] {
  --bg:                  #ffefc0;
  --surface:             #fff8e1;
  --surface-filter:      #fff3cd;

  --border:              rgba(160, 100, 0, 0.28);
  --border-strong:       rgba(160, 100, 0, 0.14);

  --text:                #3b2000;
  --text-mid:            rgba(59, 32, 0, 0.60);
  --text-dim:            rgba(59, 32, 0, 0.38);

  --accent:              #c08000;
  --accent-dark:         #8a5c00;
  --accent-text:         #6b3d00;
  --accent-soft:         rgba(212, 160, 48, 0.20);
  --accent-soft-border:  rgba(160, 100, 0, 0.40);

  --stat-bg:             rgba(212, 160, 48, 0.15);
  --stat-border:         rgba(160, 100, 0, 0.28);

  --tag-bg:              rgba(212, 160, 48, 0.18);
  --tag-border:          rgba(160, 100, 0, 0.30);
  --tag-text:            #6b3d00;

  --red:                 #b83232;
  --red-soft:            rgba(184, 50, 50, 0.10);
  --red-border:          rgba(184, 50, 50, 0.28);
  --red-text:            #b83232;

  --green:               #2e7d32;
  --green-soft:          rgba(46, 125, 50, 0.10);
  --green-border:        rgba(46, 125, 50, 0.28);
  --green-text:          #2e7d32;

  --amber:               #c08000;
  --amber-soft:          rgba(192, 128, 0, 0.15);
  --amber-border:        rgba(192, 128, 0, 0.35);

  --btn-primary-bg:      linear-gradient(135deg, #c08000, #8a5c00);
  --btn-primary-text:    #fff;
  --btn-primary-shadow:  0 4px 18px rgba(140, 80, 0, 0.35);
  --check-text:          #fff;

  --score-badge-bg:      linear-gradient(135deg, #ff9a3c, #ff4d6d);
  --score-badge-shadow:  0 2px 12px rgba(255, 77, 109, 0.35);

  --divider:             linear-gradient(90deg, transparent, rgba(160,100,0,0.3), transparent);
  --card-shadow:         0 8px 40px rgba(160, 100, 0, 0.12);
}

/* ── Antique Cream (light) ────────────────────────────────── */
[data-theme="amber-antique"] {
  --bg:                  #f5ede0;
  --surface:             #faf4eb;
  --surface-filter:      #f7efe2;

  --border:              rgba(180, 120, 40, 0.22);
  --border-strong:       rgba(180, 120, 40, 0.12);

  --text:                #2a1800;
  --text-mid:            rgba(42, 24, 0, 0.55);
  --text-dim:            rgba(42, 24, 0, 0.35);

  --accent:              #b87820;
  --accent-dark:         #8a5800;
  --accent-text:         #7a4f00;
  --accent-soft:         rgba(180, 120, 40, 0.12);
  --accent-soft-border:  rgba(180, 120, 40, 0.35);

  --stat-bg:             rgba(212, 160, 48, 0.10);
  --stat-border:         rgba(180, 120, 40, 0.22);

  --tag-bg:              rgba(180, 120, 40, 0.10);
  --tag-border:          rgba(180, 120, 40, 0.25);
  --tag-text:            #7a4f00;

  --red:                 #b83232;
  --red-soft:            rgba(184, 50, 50, 0.10);
  --red-border:          rgba(184, 50, 50, 0.26);
  --red-text:            #b83232;

  --green:               #2e7d32;
  --green-soft:          rgba(46, 125, 50, 0.10);
  --green-border:        rgba(46, 125, 50, 0.26);
  --green-text:          #2e7d32;

  --amber:               #b87820;
  --amber-soft:          rgba(184, 120, 32, 0.12);
  --amber-border:        rgba(184, 120, 32, 0.30);

  --btn-primary-bg:      linear-gradient(135deg, #b87820, #8a5800);
  --btn-primary-text:    #fff;
  --btn-primary-shadow:  0 4px 18px rgba(140, 80, 0, 0.30);
  --check-text:          #fff;

  --score-badge-bg:      linear-gradient(135deg, #ff9a3c, #ff4d6d);
  --score-badge-shadow:  0 2px 12px rgba(255, 77, 109, 0.30);

  --divider:             linear-gradient(90deg, transparent, rgba(180,120,40,0.28), transparent);
  --card-shadow:         0 8px 40px rgba(140, 80, 0, 0.10);
}

