/* ============================================================
   CareerFlow Design System — CSS Custom Properties
   Version: 1.0.0
   ============================================================ */

:root {
  /* ── Color Tokens (Light Theme — Default) ─────────────── */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f1f3;

  --surface: #ffffff;
  --surface-hover: #f4f4f5;

  --border: #e4e4e7;
  --border-light: #f4f4f5;

  --text-primary: #09090b;
  --text-secondary: #71717a;
  --text-tertiary: #a1a1aa;

  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: rgba(99, 102, 241, 0.1);
  --accent-muted: rgba(99, 102, 241, 0.15);
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);

  --success: #10b981;
  --success-hover: #059669;
  --success-light: rgba(16, 185, 129, 0.1);

  --warning: #f59e0b;
  --warning-hover: #d97706;
  --warning-light: rgba(245, 158, 11, 0.1);

  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-light: rgba(239, 68, 68, 0.1);

  --info: #3b82f6;
  --info-hover: #2563eb;
  --info-light: rgba(59, 130, 246, 0.1);

  /* ── Shadows ──────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);

  /* ── Border Radius ────────────────────────────────────── */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ── Spacing Scale (4px base) ─────────────────────────── */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-13: 52px;
  --space-14: 56px;
  --space-15: 60px;
  --space-16: 64px;

  /* ── Font Family ──────────────────────────────────────── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;

  /* ── Font Sizes ───────────────────────────────────────── */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */

  /* ── Font Weights ─────────────────────────────────────── */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* ── Line Heights ─────────────────────────────────────── */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* ── Letter Spacing ───────────────────────────────────── */
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* ── Transitions ──────────────────────────────────────── */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Z-Index Scale ────────────────────────────────────── */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-sidebar: 30;
  --z-modal: 50;
  --z-popover: 60;
  --z-toast: 100;

  /* ── Layout ───────────────────────────────────────────── */
  --sidebar-width: 260px;
  --sidebar-collapsed: 64px;
  --topbar-height: 60px;
  --content-max-width: 1400px;
  --landing-max-width: 1200px;

  /* ── White-Label Overridable Variables ─────────────────── */
  --brand-primary: var(--accent);
  --brand-primary-hover: var(--accent-hover);
  --brand-primary-light: var(--accent-light);
  --brand-secondary: #8b5cf6;
  --brand-secondary-light: rgba(139, 92, 246, 0.1);
  --brand-bg: var(--bg-primary);
  --brand-surface: var(--surface);
  --brand-radius: var(--radius-md);
}

/* ── Dark Theme ─────────────────────────────────────────── */
[data-theme="dark"] {
  --bg-primary: #09090b;
  --bg-secondary: #111113;
  --bg-tertiary: #1a1a1e;

  --surface: #18181b;
  --surface-hover: #27272a;

  --border: #27272a;
  --border-light: #1e1e22;

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);

  --brand-bg: var(--bg-primary);
  --brand-surface: var(--surface);
}
/* ============================================================
   CareerFlow — Base Styles & CSS Reset
   ============================================================ */

/* ── Google Fonts Import ────────────────────────────────── */
/* @import url */('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  transition: color var(--transition-normal), background-color var(--transition-normal);
}

/* ── Selection ──────────────────────────────────────────── */
::selection {
  background-color: var(--accent);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--accent);
  color: #ffffff;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-tertiary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

strong, b {
  font-weight: var(--font-semibold);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}

/* ── Flex Utilities ─────────────────────────────────────── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── Grid Utilities ─────────────────────────────────────── */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Text Utilities ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-white { color: #ffffff; }
.uppercase { text-transform: uppercase; }
.capitalize { text-capitalize: capitalize; }
.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.tracking-wide { letter-spacing: var(--tracking-wide); }

/* ── Spacing Utilities ──────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* ── Width / Sizing ─────────────────────────────────────── */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* ── Display Utilities ──────────────────────────────────── */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; align-items: center; }

/* ── Overflow / Truncation ──────────────────────────────── */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* ── Cursor ─────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.cursor-grab { cursor: grab; }
.cursor-not-allowed { cursor: not-allowed; }

/* ── Position ───────────────────────────────────────────── */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* ── Border ─────────────────────────────────────────────── */
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ── Shadow ─────────────────────────────────────────────── */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ── Opacity ────────────────────────────────────────────── */
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }

/* ── Animation Keyframes ────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Animation Utility Classes ──────────────────────────── */
.fade-in {
  animation: fadeIn 0.4s var(--ease-out-expo) forwards;
}

.slide-up {
  animation: slideUp 0.5s var(--ease-out-expo) forwards;
}

.slide-down {
  animation: slideDown 0.5s var(--ease-out-expo) forwards;
}

.slide-in-right {
  animation: slideInRight 0.5s var(--ease-out-expo) forwards;
}

.scale-in {
  animation: scaleIn 0.3s var(--ease-out-expo) forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ── Loading Spinner ────────────────────────────────────── */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.loading-spinner-sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.loading-spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

/* ── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  border-radius: var(--radius-full);
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background-color: var(--warning-light);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.2);
}

.badge-danger {
  background-color: var(--danger-light);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.badge-info {
  background-color: var(--info-light);
  color: var(--info);
  border-color: rgba(59, 130, 246, 0.2);
}

.badge-neutral {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border-color: var(--border);
}

.badge-accent {
  background-color: var(--accent-light);
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.2);
}

/* ── Avatar ─────────────────────────────────────────────── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  color: var(--accent);
  font-weight: var(--font-semibold);
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: var(--text-xs); }
.avatar-md { width: 40px; height: 40px; font-size: var(--text-sm); }
.avatar-lg { width: 48px; height: 48px; font-size: var(--text-base); }
.avatar-xl { width: 64px; height: 64px; font-size: var(--text-xl); }

/* ── Empty State ────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 360px;
  margin-bottom: var(--space-6);
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border);
  margin: var(--space-4) 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background-color: var(--border);
  margin: 0 var(--space-4);
}

/* ── Chip / Tag ─────────────────────────────────────────── */
.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.chip-accent {
  background-color: var(--accent-light);
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.2);
}

.chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.chip-remove:hover {
  opacity: 1;
}

/* ── Skeleton Loading ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 25%,
    var(--border-light) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
}

.skeleton-text:last-child {
  width: 70%;
}

.skeleton-title {
  height: 24px;
  width: 50%;
  margin-bottom: var(--space-3);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-lg);
}

/* ── Page Structure ─────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}

.page-header-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.page-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  line-height: var(--leading-tight);
}

.page-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ── Visually Hidden (SR-only) ──────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Smooth Theme Transition ────────────────────────────── */
body,
body *:not(script):not(style) {
  transition-property: color, background-color, border-color, box-shadow;
  transition-duration: 0ms;
}

body.theme-transitioning,
body.theme-transitioning *:not(script):not(style) {
  transition-duration: 300ms;
  transition-timing-function: ease;
}

/* ── Page Header Stats ──────────────────────────────────── */
.page-header-stats {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.header-stat {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.header-stat-success {
  background-color: var(--success-light);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.2);
}

.header-stat-warning {
  background-color: var(--warning-light);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.2);
}

/* ============================================================
   CareerFlow — Application Shell Layout
   ============================================================ */

/* ── App Layout ─────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: var(--z-sidebar);
  transition: width var(--transition-normal);
}

/* ── Sidebar Header ─────────────────────────────────────── */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  min-height: var(--topbar-height);
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow: hidden;
}

.sidebar-logo {
  max-height: 32px;
  width: auto;
  flex-shrink: 0;
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.sidebar-logo-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-org-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Sidebar Navigation ────────────────────────────────── */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-3) var(--space-3);
  gap: 2px;
  flex: 1;
}

.sidebar-section {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.sidebar-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.sidebar-section-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
  padding: 0 var(--space-3);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.sidebar-link:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

.sidebar-link.active {
  background-color: var(--accent-light);
  color: var(--accent);
  font-weight: var(--font-medium);
}

.sidebar-link svg,
.sidebar-link .sidebar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
}

.sidebar-link.active svg,
.sidebar-link.active .sidebar-icon {
  opacity: 1;
}

.sidebar-link-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Sidebar Badge ──────────────────────────────────────── */
.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: var(--font-semibold);
  background-color: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-full);
  margin-left: auto;
  flex-shrink: 0;
}

.sidebar-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Sidebar Footer ────────────────────────────────────── */
.sidebar-footer {
  margin-top: auto;
  padding: var(--space-3);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.sidebar-user:hover {
  background-color: var(--surface-hover);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Sidebar Collapse Toggle ────────────────────────────── */
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

.sidebar-collapse-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-normal);
}

/* ── Sidebar Collapsed State ────────────────────────────── */
.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar.collapsed .sidebar-org-name,
.sidebar.collapsed .sidebar-link-text,
.sidebar.collapsed .sidebar-section-label,
.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .sidebar-badge {
  display: none;
}

.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 10px;
}

.sidebar.collapsed .sidebar-link svg {
  margin: 0;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: var(--space-4);
}

.sidebar.collapsed .sidebar-brand {
  justify-content: center;
}

.sidebar.collapsed .sidebar-user {
  justify-content: center;
  padding: var(--space-2);
}

.sidebar.collapsed .sidebar-collapse-btn svg {
  transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-section {
  padding-top: var(--space-3);
  margin-top: var(--space-3);
}

/* ═══════════════════════════════════════════════════════════
   MAIN AREA
   ═══════════════════════════════════════════════════════════ */

.main-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}

.sidebar.collapsed ~ .main-area,
.main-area.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed);
}

/* ═══════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════ */

.topbar {
  height: var(--topbar-height);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  flex-shrink: 0;
}

[data-theme="dark"] .topbar {
  background-color: rgba(9, 9, 11, 0.8);
}

/* ── Topbar Left ────────────────────────────────────────── */
.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.topbar-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.topbar-breadcrumb a:hover {
  color: var(--text-primary);
}

.topbar-breadcrumb-separator {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

.topbar-breadcrumb-current {
  color: var(--text-primary);
  font-weight: var(--font-medium);
}

/* ── Topbar Right ───────────────────────────────────────── */
.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ── Topbar Search ──────────────────────────────────────── */
.topbar-search {
  position: relative;
  max-width: 280px;
}

.topbar-search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

.topbar-search-input::placeholder {
  color: var(--text-tertiary);
}

.topbar-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background-color: var(--surface);
}

.topbar-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.topbar-search-shortcut {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-tertiary);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  pointer-events: none;
}

/* ── Topbar Icon Button ─────────────────────────────────── */
.topbar-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  border: none;
  background: none;
}

.topbar-icon-btn:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

.topbar-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Notification Badge ─────────────────────────────────── */
.topbar-notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background-color: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

/* ── Topbar Avatar ──────────────────────────────────────── */
.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.topbar-avatar:hover {
  box-shadow: 0 0 0 2px var(--accent-light);
}

.topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Topbar Theme Toggle ────────────────────────────────── */
.topbar-theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
}

.topbar-theme-toggle:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

.topbar-theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */

.main-content {
  flex: 1;
  padding: 24px 32px;
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
}

.content-wrapper {
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
}

/* ── Mobile Menu Button ─────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Mobile Overlay ─────────────────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-sidebar) - 1);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}
/* ============================================================
   CareerFlow — Authentication Screens
   ============================================================ */

/* ── Auth Container ─────────────────────────────────────── */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-6);
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.auth-container::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

/* ── Auth Card ──────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 48px 40px;
  position: relative;
  z-index: 1;
  animation: scaleIn 0.5s var(--ease-out-expo) forwards;
}

/* ── Auth Logo ──────────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.auth-logo img {
  max-height: 48px;
  width: auto;
}

.auth-logo-text {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  background: linear-gradient(135deg, var(--accent), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Auth Header ────────────────────────────────────────── */
.auth-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.auth-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

/* ── Auth Form ──────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form .form-input {
  padding: 12px 16px;
}

.auth-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-forgot {
  font-size: var(--text-sm);
  color: var(--accent);
  transition: color var(--transition-fast);
}

.auth-forgot:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── Auth Divider ───────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

/* ── Social Login Buttons ───────────────────────────────── */
.auth-social-btns {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-social-btn:hover {
  background-color: var(--surface-hover);
  border-color: var(--text-tertiary);
}

.auth-social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Auth Links ─────────────────────────────────────────── */
.auth-link {
  font-size: var(--text-sm);
  color: var(--accent);
  transition: color var(--transition-fast);
}

.auth-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── Auth Footer ────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-6);
}

.auth-footer a {
  color: var(--accent);
  font-weight: var(--font-medium);
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ── Auth Branding ──────────────────────────────────────── */
.auth-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.auth-branding img {
  height: 20px;
  opacity: 0.6;
}

/* ── Password Strength Meter ────────────────────────────── */
.password-strength {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.password-strength-bar {
  flex: 1;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--border);
  transition: background-color var(--transition-fast);
}

.password-strength.weak .password-strength-bar:nth-child(1) {
  background-color: var(--danger);
}

.password-strength.fair .password-strength-bar:nth-child(-n+2) {
  background-color: var(--warning);
}

.password-strength.good .password-strength-bar:nth-child(-n+3) {
  background-color: var(--info);
}

.password-strength.strong .password-strength-bar {
  background-color: var(--success);
}

.password-strength-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* ── Auth Error Alert ───────────────────────────────────── */
.auth-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--danger-light);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  animation: slideDown 0.3s ease;
}

.auth-error-icon {
  color: var(--danger);
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-error-text {
  font-size: var(--text-sm);
  color: var(--danger);
  line-height: var(--leading-normal);
}

/* ── Two-Factor Auth Code Input ─────────────────────────── */
.auth-code-inputs {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.auth-code-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.auth-code-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
/* ============================================================
   CareerFlow — Dashboard Styles
   ============================================================ */

/* ── Stats Grid ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

/* ── Stat Card ──────────────────────────────────────────── */
.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stat-card-title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon svg {
  width: 20px;
  height: 20px;
}

.stat-card-icon.accent {
  background-color: var(--accent-light);
  color: var(--accent);
}

.stat-card-icon.success {
  background-color: var(--success-light);
  color: var(--success);
}

.stat-card-icon.warning {
  background-color: var(--warning-light);
  color: var(--warning);
}

.stat-card-icon.info {
  background-color: var(--info-light);
  color: var(--info);
}

.stat-card-icon.danger {
  background-color: var(--danger-light);
  color: var(--danger);
}

.stat-card-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-top: var(--space-3);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.stat-card-trend {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  margin-top: var(--space-1);
}

.stat-card-trend.up {
  color: var(--success);
}

.stat-card-trend.down {
  color: var(--danger);
}

.stat-card-trend svg {
  width: 14px;
  height: 14px;
}

.stat-card-trend-label {
  color: var(--text-tertiary);
  font-weight: var(--font-normal);
  margin-left: var(--space-1);
}

/* ── Charts Grid ────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

/* ── Chart Card ─────────────────────────────────────────── */
.chart-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.chart-card-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chart-card-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.chart-card-subtitle {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.chart-card-body {
  padding: 20px 24px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.chart-period-btn {
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-tertiary);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chart-period-btn:hover {
  color: var(--text-primary);
  background-color: var(--surface-hover);
}

.chart-period-btn.active {
  color: var(--accent);
  background-color: var(--accent-light);
}

/* ── Chart Placeholder (for demo) ───────────────────────── */
.chart-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-4);
}

.chart-bar {
  flex: 1;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--accent-gradient);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  min-width: 20px;
}

.chart-bar:hover {
  opacity: 1;
}

/* ── Activity Feed ──────────────────────────────────────── */
.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  gap: var(--space-3);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.activity-dot.accent { background-color: var(--accent); }
.activity-dot.success { background-color: var(--success); }
.activity-dot.warning { background-color: var(--warning); }
.activity-dot.danger { background-color: var(--danger); }
.activity-dot.info { background-color: var(--info); }

.activity-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.activity-text {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--leading-normal);
}

.activity-text strong {
  font-weight: var(--font-medium);
}

.activity-time {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── Quick Actions ──────────────────────────────────────── */
.quick-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 100px;
  text-decoration: none;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-light);
  color: var(--accent);
}

.quick-action-icon svg {
  width: 20px;
  height: 20px;
}

.quick-action-label {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  text-align: center;
}

/* ── Dashboard Widget ───────────────────────────────────── */
.dashboard-widget {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dashboard-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.dashboard-widget-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.dashboard-widget-body {
  padding: var(--space-5) var(--space-6);
}

.dashboard-widget-footer {
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--border);
  text-align: center;
}

.dashboard-widget-footer a {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: var(--font-medium);
}

/* ── Progress Bar ───────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  transition: width var(--transition-slow);
}

.progress-bar-fill.success { background: var(--success); }
.progress-bar-fill.warning { background: var(--warning); }
.progress-bar-fill.danger { background: var(--danger); }

/* ── Metric Row ─────────────────────────────────────────── */
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.metric-value {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

/* ── Activity Feed Icon Circles ────────────────────────── */
.activity-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: var(--accent-light);
  color: var(--accent);
}

.activity-icon svg {
  width: 16px;
  height: 16px;
}

.activity-icon-interview {
  background-color: var(--warning-light);
  color: var(--warning);
}

.activity-icon-application {
  background-color: var(--success-light);
  color: var(--success);
}

.activity-icon-placement {
  background-color: var(--accent-light);
  color: var(--accent);
}

/* ============================================================
   CareerFlow — Data Table Styles
   ============================================================ */

/* ── Table Container ────────────────────────────────────── */
.table-container {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Table Toolbar ──────────────────────────────────────── */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.table-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
}

.table-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── Table Search ───────────────────────────────────────── */
.table-search {
  position: relative;
  min-width: 280px;
}

.table-search-input {
  width: 100%;
  padding: 8px 12px 8px 38px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.table-search-input::placeholder {
  color: var(--text-tertiary);
}

.table-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background-color: var(--surface);
}

.table-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  pointer-events: none;
}

/* ── Table Filters ──────────────────────────────────────── */
.table-filters {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.table-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px 14px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.table-filter-btn:hover {
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

.table-filter-btn.active {
  background-color: var(--accent-light);
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.3);
}

.table-filter-btn svg {
  width: 14px;
  height: 14px;
}

/* ── Table Actions ──────────────────────────────────────── */
.table-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── Data Table ─────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* ── Table Head ─────────────────────────────────────────── */
.data-table thead {
  background-color: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}

.data-table th.sortable {
  cursor: pointer;
  transition: color var(--transition-fast);
}

.data-table th.sortable:hover {
  color: var(--text-primary);
}

.data-table th .sort-icon {
  display: inline-flex;
  margin-left: var(--space-1);
  opacity: 0.3;
  transition: opacity var(--transition-fast);
}

.data-table th.sortable:hover .sort-icon,
.data-table th.sorted .sort-icon {
  opacity: 1;
}

.data-table th.sorted .sort-icon {
  color: var(--accent);
}

.data-table th .sort-icon svg {
  width: 12px;
  height: 12px;
}

/* ── Table Body ─────────────────────────────────────────── */
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
  background-color: var(--surface-hover);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr.selected {
  background-color: var(--accent-light);
}

/* ── Checkbox Column ────────────────────────────────────── */
.data-table .col-checkbox {
  width: 40px;
  padding-left: 16px;
  padding-right: 8px;
}

.data-table .col-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background-color: var(--bg-secondary);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  display: block;
}

.data-table .col-checkbox input[type="checkbox"]:hover {
  border-color: var(--accent);
}

.data-table .col-checkbox input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.data-table .col-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ── Avatar Cell ────────────────────────────────────────── */
.table-avatar-cell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.table-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  flex-shrink: 0;
  overflow: hidden;
}

.table-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.table-user-name {
  font-weight: var(--font-medium);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-user-email {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Table Status ───────────────────────────────────────── */
.table-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.table-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.table-status.active {
  background-color: var(--success-light);
  color: var(--success);
}

.table-status.active .table-status-dot {
  background-color: var(--success);
}

.table-status.inactive {
  background-color: var(--bg-tertiary);
  color: var(--text-tertiary);
}

.table-status.inactive .table-status-dot {
  background-color: var(--text-tertiary);
}

.table-status.pending {
  background-color: var(--warning-light);
  color: var(--warning);
}

.table-status.pending .table-status-dot {
  background-color: var(--warning);
}

.table-status.rejected {
  background-color: var(--danger-light);
  color: var(--danger);
}

.table-status.rejected .table-status-dot {
  background-color: var(--danger);
}

/* ── Table Actions Cell ─────────────────────────────────── */
.table-actions-cell {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.table-action-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
}

.table-action-btn:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

.table-action-btn svg {
  width: 16px;
  height: 16px;
}

.table-action-btn.danger:hover {
  background-color: var(--danger-light);
  color: var(--danger);
}

/* ── Table Pagination ───────────────────────────────────── */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.table-page-info {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.table-page-controls {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.table-page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background-color: var(--surface);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.table-page-btn:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.table-page-btn.active {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.table-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.table-page-btn svg {
  width: 14px;
  height: 14px;
}

.table-page-ellipsis {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ── Bulk Actions Bar ───────────────────────────────────── */
.table-bulk-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-sticky);
  animation: slideUp 0.3s var(--ease-out-expo) forwards;
  min-width: 400px;
}

.table-bulk-bar-count {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

.table-bulk-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.table-bulk-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px 14px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.table-bulk-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.table-bulk-btn svg {
  width: 14px;
  height: 14px;
}

.table-bulk-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  background: none;
  border: none;
}

.table-bulk-close:hover {
  opacity: 1;
}

/* ── Responsive Table Wrapper ───────────────────────────── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Compact Table Modifier ─────────────────────────────── */
.data-table.compact th,
.data-table.compact td {
  padding: 8px 12px;
  font-size: var(--text-xs);
}

/* ============================================================
   CareerFlow — Form Elements & Buttons
   ============================================================ */

/* ── Form Group ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

/* ── Form Label ─────────────────────────────────────────── */
.form-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  line-height: var(--leading-normal);
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

/* ── Form Input ─────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input:hover {
  border-color: var(--text-tertiary);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background-color: var(--surface);
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--bg-tertiary);
}

.form-input.error {
  border-color: var(--danger);
  background-color: var(--danger-light);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ── Form Select ────────────────────────────────────────── */
.form-select {
  width: 100%;
  padding: 10px 38px 10px 14px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-select:hover {
  border-color: var(--text-tertiary);
}

.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background-color: var(--surface);
}

/* ── Form Textarea ──────────────────────────────────────── */
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  min-height: 100px;
  resize: vertical;
  transition: all var(--transition-fast);
  outline: none;
}

.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background-color: var(--surface);
}

/* ── Custom Checkbox ────────────────────────────────────── */
.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background-color: var(--bg-secondary);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-fast);
}

.form-checkbox input[type="checkbox"]:hover {
  border-color: var(--accent);
}

.form-checkbox input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ── Custom Radio ───────────────────────────────────────── */
.form-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.form-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background-color: var(--bg-secondary);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-fast);
}

.form-radio input[type="radio"]:hover {
  border-color: var(--accent);
}

.form-radio input[type="radio"]:checked {
  border-color: var(--accent);
  border-width: 5px;
}

.form-radio input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ── Toggle Switch ──────────────────────────────────────── */
.form-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
  font-size: var(--text-sm);
}

.form-switch-track {
  position: relative;
  width: 40px;
  height: 22px;
  background-color: var(--border);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}

.form-switch input {
  display: none;
}

.form-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}

.form-switch input:checked + .form-switch-track {
  background-color: var(--accent);
}

.form-switch input:checked + .form-switch-track .form-switch-thumb {
  transform: translateX(18px);
}

.form-switch input:focus-visible + .form-switch-track {
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ── Form Error & Hint ──────────────────────────────────── */
.form-error {
  font-size: var(--text-xs);
  color: var(--danger);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* ── Form Row (Side-by-side fields) ─────────────────────── */
.form-row {
  display: flex;
  gap: var(--space-4);
}

.form-row .form-group {
  flex: 1;
}

/* ── Form Section ───────────────────────────────────────── */
.form-section {
  margin-bottom: var(--space-8);
}

.form-section-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

/* ── Form Actions ───────────────────────────────────────── */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* ── File Upload ────────────────────────────────────────── */
.form-file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.form-file-upload:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.form-file-upload.dragover {
  border-color: var(--accent);
  background-color: var(--accent-light);
  border-style: solid;
}

.form-file-upload input[type="file"] {
  display: none;
}

.form-file-icon {
  width: 48px;
  height: 48px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

.form-file-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.form-file-text strong {
  color: var(--accent);
}

.form-file-hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* ── Color Picker ───────────────────────────────────────── */
.form-color-picker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.form-color-picker input[type="color"] {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 2px;
  background: none;
}

.form-color-picker input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.form-color-picker input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.form-color-value {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* ── Tags Input ─────────────────────────────────────────── */
.form-tags-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 42px;
  cursor: text;
  transition: all var(--transition-fast);
}

.form-tags-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background-color: var(--surface);
}

.form-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.form-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  font-size: 10px;
  line-height: 1;
}

.form-tag-remove:hover {
  opacity: 1;
}

.form-tags-input input {
  flex: 1;
  min-width: 80px;
  border: none;
  background: none;
  font-size: var(--text-sm);
  color: var(--text-primary);
  outline: none;
  padding: 4px;
}

.form-tags-input input::placeholder {
  color: var(--text-tertiary);
}

/* ── Input with Icon ────────────────────────────────────── */
.form-input-icon {
  position: relative;
}

.form-input-icon .form-input {
  padding-left: 40px;
}

.form-input-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.form-input-icon-right .form-input {
  padding-right: 40px;
}

.form-input-icon-right .input-icon {
  left: auto;
  right: 14px;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

/* ── Base Button ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition-fast);
  user-select: none;
  position: relative;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Button Variants ────────────────────────────────────── */
.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--text-tertiary);
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: var(--danger-hover);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-success {
  background-color: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background-color: var(--success-hover);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent-light);
}

/* ── Button Sizes ───────────────────────────────────────── */
.btn-xs {
  padding: 4px 10px;
  font-size: var(--text-xs);
  gap: var(--space-1);
}

.btn-sm {
  padding: 6px 12px;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 12px 24px;
  font-size: var(--text-base);
}

.btn-xl {
  padding: 14px 32px;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* ── Button Modifiers ───────────────────────────────────── */
.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.btn-icon.btn-sm {
  padding: 6px;
  width: 28px;
  height: 28px;
}

.btn-icon.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-icon.btn-lg {
  padding: 10px;
  width: 44px;
  height: 44px;
}

.btn-block {
  width: 100%;
}

/* ── Button Spinner ─────────────────────────────────────── */
.btn .btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  opacity: 0.7;
}

/* ── Button Group ───────────────────────────────────────── */
.btn-group {
  display: inline-flex;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.btn-group .btn:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.btn-group .btn + .btn {
  margin-left: -1px;
}
/* ============================================================
   CareerFlow - Application Tracking Kanban Board Styles
   ============================================================ */

.pipeline-container {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  min-height: calc(100vh - 220px);
  align-items: flex-start;
}

.pipeline-column {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
  flex-shrink: 0;
}

.pipeline-column-header {
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.pipeline-column-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pipeline-status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.pipeline-status-dot.applied { background-color: var(--info); }
.pipeline-status-dot.shortlisted { background-color: var(--warning); }
.pipeline-status-dot.assessment { background-color: #8b5cf6; }
.pipeline-status-dot.interview { background-color: var(--accent); }
.pipeline-status-dot.selected { background-color: var(--success); }
.pipeline-status-dot.rejected { background-color: var(--danger); }
.pipeline-status-dot.offer_released { background-color: #06b6d4; }

.pipeline-column-count {
  font-size: var(--text-xs);
  background: var(--border);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: var(--font-medium);
}

.pipeline-column-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
  flex: 1;
  min-height: 150px;
}

.pipeline-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  cursor: grab;
  transition: all var(--transition-fast);
}

.pipeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-muted);
}

.pipeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2);
}

.pipeline-card-name {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.pipeline-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.pipeline-card-company {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-3);
}

.pipeline-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--border);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.pipeline-empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
}
/* ============================================================
   CareerFlow - Calendar Styles
   ============================================================ */

.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-6);
}

.calendar-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.calendar-nav-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
}

.calendar-nav-controls {
  display: flex;
  gap: var(--space-2);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.calendar-day-header {
  background-color: var(--bg-secondary);
  padding: var(--space-3);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
}

.calendar-cell {
  background-color: var(--surface);
  min-height: 100px;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-cell.other-month {
  background-color: var(--bg-secondary);
  opacity: 0.5;
}

.calendar-cell-num {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  align-self: flex-end;
}

.calendar-cell.today .calendar-cell-num {
  background-color: var(--accent);
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-event {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-weight: var(--font-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calendar-event.online {
  background-color: var(--info-light);
  color: var(--info);
  border-left: 3px solid var(--info);
}

.calendar-event.offline {
  background-color: var(--warning-light);
  color: var(--warning);
  border-left: 3px solid var(--warning);
}

.calendar-event:hover {
  filter: brightness(0.95);
}

/* Sidebar List */
.calendar-sidebar {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.calendar-sidebar-title {
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-3);
}

.calendar-list-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calendar-list-time {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--accent);
}

.calendar-list-name {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
}

.calendar-list-detail {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
/* ============================================================
   CareerFlow - Notification Dropdown & Page Styles
   ============================================================ */

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 380px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: var(--z-dropdown);
  animation: scaleIn 0.2s var(--ease-out-expo);
  margin-top: 8px;
}

.notification-dropdown.dropdown-open {
  display: flex;
}

.notification-dropdown-header {
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.notification-dropdown-title {
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}

.notification-mark-all {
  font-size: var(--text-xs);
  color: var(--accent);
  cursor: pointer;
  font-weight: var(--font-medium);
}

.notification-mark-all:hover {
  color: var(--accent-hover);
}

.notification-dropdown-body {
  max-height: 350px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition-fast);
  position: relative;
}

.notification-item:hover {
  background-color: var(--bg-secondary);
}

.notification-item.unread {
  background-color: var(--accent-light);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notification-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.notification-message {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-time {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

.notification-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  position: absolute;
  top: 18px;
  right: 16px;
}

.notification-empty {
  padding: var(--space-8);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.notification-dropdown-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--border);
  text-align: center;
  background-color: var(--bg-secondary);
}

.notification-dropdown-footer a {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--accent);
}

/* User Profile Menu */
.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2) 0;
  display: none;
  flex-direction: column;
  z-index: var(--z-dropdown);
  margin-top: 8px;
  animation: scaleIn 0.15s ease;
}

.user-menu.dropdown-open {
  display: flex;
}

.user-menu-header {
  padding: var(--space-3) var(--space-4);
}

.user-menu-name {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
}

.user-menu-email {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.user-menu-divider {
  height: 1px;
  background-color: var(--border);
  margin: var(--space-2) 0;
}

.user-menu-item {
  padding: 8px var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.user-menu-item:hover {
  background-color: var(--bg-secondary);
}

.user-menu-logout {
  color: var(--danger);
}

.user-menu-logout:hover {
  background-color: var(--danger-light);
  color: var(--danger);
}
/* ============================================================
   CareerFlow - White-Label settings page
   ============================================================ */

.settings-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-6);
  align-items: flex-start;
}

.settings-sidebar {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.settings-nav-item {
  padding: 10px var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-nav-item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.settings-nav-item.active {
  background-color: var(--accent-light);
  color: var(--accent);
}

.settings-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.settings-section {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.settings-section-title {
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-1);
}

.settings-section-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.settings-color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.settings-color-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.settings-color-label {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.settings-color-swatch {
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
  position: relative;
}

.settings-color-picker {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.settings-logo-upload {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.settings-logo-preview {
  width: 120px;
  height: 60px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-2);
}

.settings-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.settings-domain-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-domain-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-domain-name {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
}

.settings-domain-status {
  font-size: var(--text-xs);
  color: var(--success);
}
/* ============================================================
   CareerFlow - Modals
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

.modal {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  width: 90vw;
  overflow: hidden;
  animation: scaleIn 0.3s var(--ease-out-expo);
}

.modal-sm { max-width: 480px; }
.modal-md { max-width: 640px; }
.modal-lg { max-width: 860px; }
.modal-xl { max-width: 1040px; }

.modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  background-color: var(--bg-secondary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-section-title {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-2);
  margin-top: var(--space-2);
}
/* ============================================================
   CareerFlow - Mobile Responsive Layout Overrides
   ============================================================ */

/* ── Tablets & Medium Screens (1200px and under) ─────────── */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .charts-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* KPI Summaries and Inline 4-column layouts */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* ── Mobile Sidebar Slide & Backdrop (1024px and under) ──── */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-modal) !important;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-xl);
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /* Override collapsed sidebar to be full width on mobile/tablet viewports */
  .sidebar.collapsed {
    width: var(--sidebar-width) !important;
  }
  
  .sidebar.collapsed .sidebar-org-name,
  .sidebar.collapsed .sidebar-link-text,
  .sidebar.collapsed .sidebar-section-label,
  .sidebar.collapsed .sidebar-user-info,
  .sidebar.collapsed .sidebar-badge {
    display: block !important;
  }
  
  .sidebar.collapsed .sidebar-link {
    justify-content: flex-start !important;
    padding: var(--space-3) var(--space-4) !important;
  }
  
  .sidebar.collapsed .sidebar-header {
    justify-content: space-between !important;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5) !important;
  }

  .sidebar.collapsed .sidebar-brand {
    justify-content: flex-start !important;
  }

  .sidebar-collapse-btn {
    display: none !important;
  }
  
  /* Dark overlay mask behind mobile sidebar */
  .sidebar.mobile-open::after {
    content: "";
    position: fixed;
    inset: 0;
    left: var(--sidebar-width);
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: -1;
  }
  
  .main-area {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  .mobile-menu-btn {
    display: flex !important;
  }
  
  .landing-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-6) !important;
  }
}

/* ── Mobile Screens & Columns Stacking (768px and under) ──── */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  
  .calendar-layout {
    grid-template-columns: 1fr !important;
  }
  
  .settings-layout {
    grid-template-columns: 1fr !important;
  }
  
  /* Convert all grid-cols-2, grid-cols-3, and grid-cols-4 classes to single columns */
  .grid-cols-2, .grid-cols-3, .grid-cols-4,
  .grid[class*="grid-cols-"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Inline grid styles */
  [style*="display:grid; grid-template-columns: 1.6fr 1fr"],
  [style*="display:grid; grid-template-columns:1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .form-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .filters-bar, .table-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--space-3) !important;
  }
  
  .filters-bar select, .filters-bar input, .table-search {
    width: 100% !important;
    min-width: 0 !important;
  }

  .page-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--space-4) !important;
  }
  
  .page-header-left, .page-header-right {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  
  .page-header-right .btn {
    width: 100% !important;
  }
  
  /* Modals Optimization */
  .modal {
    width: 95vw !important;
    max-height: 95vh !important;
  }
  
  .modal-body {
    padding: var(--space-4) !important;
  }
  
  .modal-footer {
    padding: var(--space-4) !important;
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }
  
  .modal-footer .btn {
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* Tables hiding rules for mobile */
  .data-table th:nth-child(5), .data-table td:nth-child(5),
  .data-table th:nth-child(6), .data-table td:nth-child(6) {
    display: none !important;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
  }
  
  .landing-stats {
    grid-template-columns: 1fr !important;
  }
  
  .use-case-panel.active {
    grid-template-columns: 1fr !important;
    padding: var(--space-6) !important;
  }
  
  .contact-section {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }
}

/* ── Tiny Mobile Devices (480px and under) ───────────────── */
@media (max-width: 480px) {
  .main-content {
    padding: var(--space-4) !important;
  }
  
  .topbar {
    padding: 0 var(--space-4) !important;
    gap: 8px !important;
  }
  
  /* Collapse inline KPI metrics grids to 1 column */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Breadcrumb hiding to make space for top actions */
  #breadcrumb {
    display: none !important;
  }

  /* Auth card mobile padding */
  .auth-card {
    padding: 32px 20px !important;
    border-radius: 12px !important;
  }

  .auth-container {
    padding: 16px !important;
  }

  /* Better touch targets on mobile */
  .sidebar-link {
    padding: 12px !important;
    font-size: 15px !important;
  }

  /* Tables: card-like scroll container */
  .data-table-wrapper,
  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .data-table {
    min-width: 600px !important;
  }

  /* Sidebar footer compact on tiny screens */
  .sidebar-footer {
    padding: 12px !important;
  }

  /* Stat cards in 2 cols on tiny mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Inline KPI 2-column grids */
  [style*="grid-template-columns: repeat(2, 1fr)"] {
    gap: 8px !important;
  }
}

/* ── Extra: Smooth sidebar open/close on mobile ──────────── */
@media (max-width: 1024px) {
  .sidebar {
    will-change: transform;
    backface-visibility: hidden;
  }

  /* Close button inside mobile sidebar */
  .sidebar.mobile-open .sidebar-collapse-btn {
    display: none !important;
  }

  /* Ensure auth screens are full-width on tablets */
  .auth-card {
    max-width: 400px !important;
  }
}

/* Student Profile Modal Styles */
.student-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.profile-header-info {
  flex: 1;
}
.profile-name {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.profile-meta {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.profile-contact {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-section h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
