:root {
  /* ===================
     Color Palette
     =================== */

  /* Primary (Indigo) */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;

  /* Success (Emerald) */
  --success-50: #ecfdf5;
  --success-100: #d1fae5;
  --success-500: #10b981;
  --success-600: #059669;
  --success-700: #047857;

  /* Warning (Amber) */
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;

  /* Danger (Red) */
  --danger-50: #fef2f2;
  --danger-100: #fee2e2;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --danger-700: #b91c1c;

  /* Neutral (Slate) */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* ===================
     Semantic Aliases
     =================== */
  --primary-color: var(--primary-600);
  --primary-hover: var(--primary-700);
  --info-color: var(--primary-600);
  --success-color: var(--success-600);
  --warning-color: var(--warning-600);
  --danger-color: var(--danger-600);

  /* ===================
     Surfaces & Backgrounds
     =================== */
  --page-bg: #f5f7fb;
  --surface-50: #f8fafc;
  --surface-100: #ffffff;
  --surface-200: #f1f5f9;
  --surface-muted: #e2e8f0;
  --surface-primary: var(--surface-100);
  --surface-secondary: var(--surface-200);
  --background: var(--page-bg);
  --background-elevated: #ffffff;
  --card-bg: #ffffff;
  --card-bg-hover: #f8fafc;

  /* ===================
     Borders
     =================== */
  --border-soft: #e3e8f6;
  --border-strong: #c7d2f8;
  --border-color: #cbd5e1;

  /* ===================
     Text Colors
     =================== */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --dark-color: #f1f5f9;
  --light-color: #e2e8f0;

  /* ===================
     Typography
     =================== */
  --font-heading: 'Outfit', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --font-size-base: 0.9rem;
  --font-size-sm: 0.8rem;
  --line-height-base: 1.45;

  /* ===================
     Shadows
     =================== */
  --shadow-soft: 0 4px 30px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.15);
  --shadow-lg: 0 25px 45px -10px rgba(15, 23, 42, 0.2);

  /* ===================
     Glass Morphism
     =================== */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: 1px solid rgba(148, 163, 184, 0.35);
  --glass-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --sidebar-glare: rgba(255, 255, 255, 0.8);

  /* ===================
     Layout
     =================== */
  --card-radius: 0.85rem;
  --sidebar-width: 220px;
  --app-padding: clamp(1rem, 1.8vw, 1.75rem);

  /* ===================
     Gradients & Textures
     =================== */
  --shell-gradient: radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79, 70, 229, 0.15), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(16, 185, 129, 0.08), transparent 40%),
    linear-gradient(120deg, rgba(15, 23, 42, 0.03), transparent 55%);
  --noise-texture: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDQiLz48L3N2Zz4=');
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Base */
body {
  background: var(--page-bg);
  font-family: var(--font-family);
  color: var(--text-primary);
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

body.app-body {
  background-image: var(--shell-gradient);
  background-attachment: fixed;
  padding: clamp(0.75rem, 1.5vw, 1.5rem);
}

/* Noise texture overlay for depth */
body.app-body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--noise-texture);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* High Contrast Utilities */
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }

/* Button Contrast Fixes */
.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--surface-200);
  border-color: var(--text-tertiary);
}

/* Card Contrast Fixes */
.stat-card, .surface-card, .job-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Input Contrast Fixes */
input, select, textarea {
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-primary);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Fix dropdown option visibility */
select option {
  background-color: #ffffff;
  color: var(--text-primary);
}

/* Override specific selectors from style.css to ensure visibility */
select.form-control,
.form-group select {
  background-color: #ffffff;
  color: var(--text-primary);
}


h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

body::before {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.app-shell {
  display: flex;
  min-height: calc(100vh - clamp(1rem, 2vw, 2.5rem));
  border-radius: 1.75rem;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 1;
}

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(242, 244, 248, 0.95));
  border-right: 1px solid rgba(148, 163, 184, 0.3);
  padding: 20px 18px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  backdrop-filter: blur(16px);
  gap: 0.5rem;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar .logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
}

.sidebar .logo h1 {
  font-size: 0.95rem;
  margin: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a i {
  margin-right: 0;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.sidebar-nav a.active {
  background: var(--primary-600);
  color: white;
  transform: none;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.sidebar-nav a:hover:not(.active) {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-700);
  transform: translateX(4px);
}

.sidebar-nav a.active i {
  color: white;
}

.sidebar-nav a:hover:not(.active) i {
  color: var(--primary-700);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  padding-top: 1rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  word-break: break-word;
}

.main-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface-primary);
  border-top-left-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
}

.topbar {
  padding: 12px var(--app-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.topbar .search-field {
  flex: 1;
  max-width: 320px;
  position: relative;
}

.topbar .search-field i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.topbar input[type="search"] {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--primary-50);
  font-size: 0.8rem;
}

.topbar input[type="search"]:focus {
  outline: none;
  border-color: var(--primary-600);
  background: #fff;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu .text p {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.user-menu .text small {
  font-size: 0.72rem;
}

.user-menu img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.user-menu .avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 600;
  font-size: 0.9rem;
}

.page-wrap {
  padding: 20px clamp(1.25rem, 3vw, 2.75rem) 32px;
  flex: 1;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.95));
  border-bottom-left-radius: 1.5rem;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.page-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(125deg, rgba(79, 70, 229, 0.08), rgba(15, 23, 42, 0.03));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.65rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.1), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.08), transparent 35%);
  pointer-events: none;
  opacity: 0.7;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero__content {
  flex: 2;
}

.page-hero__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-hero__title h2 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin: 0;
}

.page-hero__lede {
  margin: 0.15rem 0 0;
  color: var(--text-secondary);
  max-width: 46ch;
}

.page-hero__actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: 160px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary-600);
  color: white;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.15);
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
  background: var(--surface-100);
  border-color: var(--border-soft);
  color: var(--text-secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-tertiary);
}

.btn-danger {
  background: var(--danger-600);
  color: #fff;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.success { background: var(--success-50); color: var(--success-600); }
.badge.warning { background: var(--warning-50); color: var(--warning-600); }
.badge.danger { background: var(--danger-50); color: var(--danger-600); }
.badge.info { background: var(--primary-50); color: var(--primary-600); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill.success { background: var(--success-50); color: var(--success-600); }
.pill.warning { background: var(--warning-50); color: var(--warning-600); }
.pill.danger { background: var(--danger-50); color: var(--danger-600); }
.pill.info { background: var(--primary-50); color: var(--primary-600); }

.card,
.surface-card {
  background: var(--surface-100);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.two.responsive-split {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(165deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.9));
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

/* Featured first stat card */
.stats-grid .stat-card:first-child {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  border-color: transparent;
}

.stats-grid .stat-card:first-child .stat-label,
.stats-grid .stat-card:first-child .stat-subtext,
.stats-grid .stat-card:first-child .stat-footnote {
  color: rgba(255, 255, 255, 0.85);
}

.stats-grid .stat-card:first-child .stat-card__value strong {
  color: white;
}

.stats-grid .stat-card:first-child .stat-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.stats-grid .stat-card:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.stat-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.stat-subtext {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.stat-card__value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.stat-card__value strong {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
}

.stat-footnote {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.stat-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 0.95rem;
}

.stat-icon.success { background: var(--success-50); color: var(--success-600); }
.stat-icon.info { background: var(--primary-50); color: var(--primary-600); }
.stat-icon.warning { background: var(--warning-50); color: var(--warning-600); }
.stat-icon.neutral { background: var(--primary-50); color: var(--primary-600); }

.job-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--card-radius);
  padding: 12px 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  border-color: var(--primary-200);
}

.job-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.job-card h3 {
  margin: 0;
  font-size: 1rem;
}

.job-card .meta {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 4px 0 0;
}

.job-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.job-card .tags span {
  background: var(--primary-50);
  color: var(--primary-600);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
}

.job-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#jobs-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}

.activity-feed li {
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.activity-feed li:last-child {
  border-bottom: none;
}

.activity-feed .summary {
  font-weight: 600;
  font-size: 0.85rem;
}

.activity-feed .meta {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
  gap: 16px;
}

.tabs button {
  background: none;
  border: none;
  padding: 8px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.tabs button.active {
  color: var(--primary-600);
  border-color: var(--primary-600);
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-field label {
  font-weight: 600;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 3px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  padding: 7px 10px;
  font-size: 0.85rem;
  background: #fff;
}

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

.field-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .page-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.progress-steps {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.progress-steps .step {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-steps .step.active {
  border-color: var(--primary-600);
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.12);
}

.progress-steps .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  font-size: 0.95rem;
}

.data-table th {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--surface-200);
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  body.app-body {
    padding: 0;
  }
  .app-shell {
    flex-direction: column;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .sidebar-nav a {
    margin-bottom: 0;
  }
  .topbar {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .main-column {
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .page-hero__actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-intro h3 {
  margin: 0;
  font-size: 1.1rem;
}

.section-intro p {
  margin: 0.2rem 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.description-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.description-list li {
  background: var(--surface-200);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  min-height: 72px;
}

.description-list span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

.description-list strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.95rem;
}

/* ========================================
   Page Load Animations - Staggered Reveals
   ======================================== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Stat cards staggered animation */
.stat-card {
  animation: slideUp 0.5s ease-out forwards;
  opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

/* Surface cards staggered animation */
.surface-card {
  animation: slideUp 0.5s ease-out forwards;
  opacity: 0;
}

.grid.two .surface-card:nth-child(1) { animation-delay: 0.25s; }
.grid.two .surface-card:nth-child(2) { animation-delay: 0.3s; }

/* Job cards staggered animation */
.job-card {
  animation: slideUp 0.4s ease-out forwards;
  opacity: 0;
}

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.15s; }
.job-card:nth-child(3) { animation-delay: 0.2s; }
.job-card:nth-child(4) { animation-delay: 0.25s; }
.job-card:nth-child(5) { animation-delay: 0.3s; }
.job-card:nth-child(6) { animation-delay: 0.35s; }

/* Page hero animation */
.page-hero {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Activity feed items */
.activity-feed li {
  animation: slideUp 0.3s ease-out forwards;
  opacity: 0;
}

.activity-feed li:nth-child(1) { animation-delay: 0.35s; }
.activity-feed li:nth-child(2) { animation-delay: 0.4s; }
.activity-feed li:nth-child(3) { animation-delay: 0.45s; }
.activity-feed li:nth-child(4) { animation-delay: 0.5s; }
.activity-feed li:nth-child(5) { animation-delay: 0.55s; }
.activity-feed li:nth-child(6) { animation-delay: 0.6s; }

/* Kanban columns staggered */
.kanban-column {
  animation: slideUp 0.4s ease-out forwards;
  opacity: 0;
}

.kanban-column:nth-child(1) { animation-delay: 0.1s; }
.kanban-column:nth-child(2) { animation-delay: 0.15s; }
.kanban-column:nth-child(3) { animation-delay: 0.2s; }
.kanban-column:nth-child(4) { animation-delay: 0.25s; }
.kanban-column:nth-child(5) { animation-delay: 0.3s; }
.kanban-column:nth-child(6) { animation-delay: 0.35s; }

/* Fallback for browsers without animation support */
@supports not (animation: slideUp 0.5s) {
  .stat-card,
  .surface-card,
  .job-card,
  .page-hero,
  .activity-feed li,
  .kanban-column {
    opacity: 1;
  }
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .surface-card,
  .job-card,
  .page-hero,
  .activity-feed li,
  .kanban-column {
    animation: none;
    opacity: 1;
  }
}
