:root {
  /* Colors - Skyline Modern */
  --background: #f9f9ff;
  --on-background: #181c22;
  
  --surface: #f9f9ff;
  --surface-dim: #d7dae3;
  --surface-bright: #f9f9ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f1f3fc;
  --surface-container: #ebedf7;
  --surface-container-high: #e6e8f1;
  --surface-container-highest: #e0e2eb;
  
  --on-surface: #181c22;
  --on-surface-variant: #414753;
  --inverse-surface: #2d3037;
  --inverse-on-surface: #eef0fa;
  
  --outline: #717785;
  --outline-variant: #c1c6d5;
  --surface-tint: #005db8;
  
  --primary: #005ab4;
  --on-primary: #ffffff;
  --primary-container: #0a73e0;
  --on-primary-container: #fefcff;
  --inverse-primary: #aac7ff;
  
  --secondary: #465f88;
  --on-secondary: #ffffff;
  --secondary-container: #b6d0ff;
  --on-secondary-container: #3f5881;
  
  --tertiary: #f59e0b;
  --on-tertiary: #ffffff;
  --tertiary-container: #fef3c7;
  --on-tertiary-container: #92400e;
  --star-gold: #f59e0b;
  
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  
  /* Status Colors */
  --status-available: #10b981;
  --status-available-bg: #ecfdf5;
  --status-unavailable: #ef4444;
  --status-unavailable-bg: #fef2f2;
  
  /* Glassmorphism & Modern Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(193, 198, 213, 0.65);
  --glass-blur: 16px;
  --glass-card: rgba(255, 255, 255, 0.92);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Shapes / Rounded corners */
  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-default: 0.625rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.125rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Multi-layered Modern Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(65, 71, 83, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 6px 16px -2px rgba(65, 71, 83, 0.08), 0 2px 6px -1px rgba(65, 71, 83, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(65, 71, 83, 0.12), 0 6px 12px -2px rgba(65, 71, 83, 0.06);
  --shadow-xl: 0 24px 38px -6px rgba(65, 71, 83, 0.14), 0 10px 18px -4px rgba(65, 71, 83, 0.08);
  --shadow-ambient: 0 10px 30px -8px rgba(0, 90, 180, 0.14), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 16px rgba(0, 90, 180, 0.25);
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Safe Area Insets for iOS & Android Edge-to-Edge displays */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* Dark theme modern refined Slate/Zinc palette */
.dark-mode {
  --background: #0b0f17;
  --on-background: #f1f5f9;
  
  --surface: #0e1422;
  --surface-dim: #080c14;
  --surface-bright: #242e42;
  --surface-container-lowest: #080c14;
  --surface-container-low: #0f1626;
  --surface-container: #162035;
  --surface-container-high: #1e2a44;
  --surface-container-highest: #283756;
  
  --on-surface: #f8fafc;
  --on-surface-variant: #94a3b8;
  --inverse-surface: #f1f5f9;
  --inverse-on-surface: #0f172a;
  
  --outline: #64748b;
  --outline-variant: rgba(255, 255, 255, 0.1);
  
  --primary: #60a5fa;
  --on-primary: #081d45;
  --primary-container: #1d4ed8;
  --on-primary-container: #eff6ff;
  
  --secondary: #93c5fd;
  --on-secondary: #0c2340;
  
  --status-available: #34d399;
  --status-available-bg: rgba(16, 185, 129, 0.15);
  --status-unavailable: #f87171;
  --status-unavailable-bg: rgba(239, 68, 68, 0.15);
  
  --tertiary: #fbbf24;
  --tertiary-container: #78350f;
  --on-tertiary-container: #fef3c7;
  --star-gold: #fbbf24;
  
  --glass-bg: rgba(11, 15, 23, 0.82);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-card: rgba(15, 22, 38, 0.85);
  --shadow-ambient: 0 10px 30px -8px rgba(0, 0, 0, 0.6), 0 4px 10px -2px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(96, 165, 250, 0.25);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Touch Ergonomics & Responsive interaction feedback */
button, a, input, select, textarea, .filter-badge, .nav-link, .bottom-nav-item, .chip {
  touch-action: manipulation;
}

button:active, .btn:active, .filter-badge:active, .bottom-nav-item:active {
  transform: scale(0.96);
  transition: transform 0.08s ease;
}

/* Accessible focus ring across all interactive controls (WCAG 2.2) */
*:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--on-background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Smooth transitions for theme switching on general elements */
body, 
.app-header, 
.nav-link, 
.btn, 
.tab-btn, 
.job-tag, 
.badge,
.table-responsive,
table,
th,
td,
h1, h2, h3, h4, h5, h6, p, span, i, label {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

/* Typography styles matching DESIGN.md */
h1, .headline-lg {
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.02em;
}

h2, .headline-md {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.01em;
}

h3, .headline-sm {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.body-lg {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

body, p, .body-md {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.label-md {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-container);
}

/* Header & Navbar - Modern Glassmorphism */
.app-header {
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.brand-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 90, 180, 0.25);
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-link {
  color: var(--on-surface-variant);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-default);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: var(--surface-container-low);
  color: var(--primary);
}

.nav-link.active {
  background-color: var(--surface-container);
  color: var(--primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* User Session Header Card */
.header-user-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 4px var(--space-sm);
  background-color: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--on-primary);
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  font-size: 10px;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
}

.logout-icon-btn {
  border: none;
  background: none;
  color: var(--error);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.logout-icon-btn:hover {
  background-color: var(--error-container);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--on-surface-variant);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--surface-container-low);
  color: var(--on-surface);
}

/* ==========================================
   AUTHENTICATION SCREEN STYLES
   ========================================== */
.login-wrapper {
  display: none;
  width: 100%;
  min-height: 100vh;
  background-color: var(--background);
  background-image: radial-gradient(circle at top right, rgba(0, 90, 180, 0.05), transparent 40%),
                    radial-gradient(circle at bottom left, rgba(150, 68, 0, 0.03), transparent 30%);
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow-y: auto;
}

.login-wrapper.active {
  display: flex;
}

html.user-pre-authenticated #login-screen-wrapper {
  display: none !important;
}

html.user-pre-authenticated #main-app-wrapper {
  display: block !important;
}

.login-container {
  width: 100%;
  max-width: 440px;
  animation: fadeIn var(--transition-normal) forwards;
}

.login-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-xl);
}

/* Google Sign-In Button & Auth Divider */
.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--surface-container-lowest);
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-default);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  margin-bottom: var(--space-md);
  user-select: none;
}

.btn-google-login:hover {
  background-color: var(--surface-container-low);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-google-login:active {
  transform: scale(0.98);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--space-md) 0;
  color: var(--outline);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--outline-variant);
}

.auth-divider span {
  padding: 0 var(--space-sm);
}

/* Google Account Selection Modal Card */
.google-account-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 14px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  background-color: var(--surface-container-lowest);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

.google-account-card:hover {
  background-color: var(--surface-container-low);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.google-account-card:active {
  transform: scale(0.98);
}

.google-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--primary);
  color: #ffffff;
}

.google-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.google-account-info {
  flex: 1;
  overflow: hidden;
  line-height: 1.3;
}

.google-account-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-account-email {
  font-size: 12px;
  color: var(--on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-access-box button {
  transition: transform var(--transition-fast);
}

.quick-access-box button:hover {
  transform: scale(1.02);
}

/* Main Layout */
.main-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Sub-views */
.view-panel {
  display: none;
  animation: fadeIn var(--transition-normal) forwards;
}

.view-panel.active {
  display: block !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Info Banners */
.hero-section {
  background: linear-gradient(135deg, var(--surface-container-low), var(--surface-container-highest));
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, var(--secondary-container) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.hero-title {
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.stat-card {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-default);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

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

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 500;
}

/* Quick Settings Bar / Availability */
.availability-banner {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: justify;
  flex-wrap: wrap;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.availability-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

.status-indicator.available {
  background-color: var(--status-available-bg);
  color: var(--status-available);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-indicator.unavailable {
  background-color: var(--status-unavailable-bg);
  color: var(--status-unavailable);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: currentColor;
}

.availability-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Switch UI */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-container-highest);
  transition: .3s;
  border-radius: 34px;
  border: 1px solid var(--outline-variant);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--on-surface-variant);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: var(--on-primary);
}

/* Layout Split Grid */
.split-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

/* Cards & Containers */
.card {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background-color 0.25s ease, color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-ambient);
  border-color: var(--primary);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--surface-container-highest);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-surface);
}

.card-subtitle {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-top: 2px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
}

.input-field {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-default);
  border: 1px solid var(--outline-variant);
  background-color: var(--surface-container-lowest);
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 90, 180, 0.15);
}

.input-field::placeholder {
  color: var(--outline);
  opacity: 0.7;
}

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

/* Multi-input Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-default);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
  user-select: none;
  letter-spacing: -0.01em;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 2px 6px rgba(0, 90, 180, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-container);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 90, 180, 0.3);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background-color: var(--surface-container);
  color: var(--on-surface-variant);
  border-color: var(--outline-variant);
}

.btn-secondary:hover {
  background-color: var(--surface-container-high);
  color: var(--on-surface);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--surface-container-low);
  border-color: var(--primary-container);
}

.btn-danger {
  background-color: var(--error);
  color: var(--on-error);
}

.btn-danger:hover {
  background-color: #a61515;
}

.btn-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-default);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Lists and Dynamic Sub-Form Entries */
.list-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.list-item {
  background-color: var(--surface-container-low);
  padding: var(--space-md);
  border-radius: var(--radius-default);
  border: 1px solid var(--outline-variant);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.list-item.active {
  background-color: var(--surface-container);
  border-color: var(--primary);
}

.list-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-item-title {
  font-weight: 600;
  color: var(--on-surface);
}

.list-item-subtitle {
  font-size: 13px;
  color: var(--on-surface-variant);
}

.list-item-desc {
  font-size: 12px;
  color: var(--outline);
  margin-top: 4px;
}

/* Dynamic Tag / Skill Input */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
}

.tag {
  background-color: var(--surface-container-highest);
  color: var(--on-surface-variant);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  border: 1px solid var(--outline-variant);
}

.tag-remove {
  cursor: pointer;
  color: var(--outline);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
}

.tag-remove:hover {
  background-color: var(--outline-variant);
  color: var(--error);
}

/* Job Cards & Details */
.job-search-box {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--outline);
}

.job-search-box .input-field {
  padding-left: 36px;
}

.location-input-container {
  width: 200px;
}

.job-filters-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.filter-badge {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background-color: var(--surface-container);
  color: var(--on-surface-variant);
  cursor: pointer;
  border: 1px solid var(--outline-variant);
  transition: all var(--transition-fast);
}

.filter-badge.active, .filter-badge:hover {
  background-color: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* Job Card styles */
.jobs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.job-card {
  border-left: 4px solid var(--outline-variant);
}

.job-card.applied {
  border-left-color: var(--primary);
}

.job-card.starred {
  border-left-color: var(--star-gold, #f59e0b);
  box-shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.12), var(--shadow-sm);
}

.job-card.starred .btn-icon-only i[data-lucide="star"],
.star-btn.active i,
.btn-star.active i {
  fill: var(--star-gold, #f59e0b) !important;
  color: var(--star-gold, #f59e0b) !important;
}

.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
}

.job-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--on-surface-variant);
  flex-wrap: wrap;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.job-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.job-tag {
  background-color: var(--surface-container);
  color: var(--on-secondary-container);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

.job-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  border-top: 1px solid var(--surface-container-high);
  padding-top: var(--space-md);
}

/* Resume Summary Preview */
.resume-preview {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.resume-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: var(--space-lg);
}

.resume-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-container), var(--primary-container));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--on-primary);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-md);
}

.resume-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--on-surface);
}

.resume-title {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.resume-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px dashed var(--outline-variant);
  padding-bottom: 4px;
  margin-bottom: var(--space-sm);
}

.resume-experience-item, .resume-education-item {
  position: relative;
  padding-left: var(--space-md);
  border-left: 2px solid var(--outline-variant);
  margin-bottom: var(--space-md);
  padding-bottom: 2px;
}

.resume-experience-item::before, .resume-education-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--outline);
  border: 1px solid var(--background);
}

.resume-experience-item.active::before {
  background-color: var(--primary);
}

.resume-exp-title {
  font-weight: 600;
  color: var(--on-surface);
  font-size: 13px;
}

.resume-exp-meta {
  font-size: 12px;
  color: var(--on-surface-variant);
  margin-bottom: 4px;
}

.resume-exp-desc {
  font-size: 12px;
  color: var(--on-surface-variant);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(24, 28, 34, 0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInModal var(--transition-fast) forwards;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUpModal var(--transition-normal) forwards;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

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

@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--surface-container-high);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--surface-container-high);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  background-color: var(--surface-container-low);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

.close-modal {
  background: none;
  border: none;
  color: var(--outline);
  cursor: pointer;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.close-modal:hover {
  background-color: var(--surface-container-high);
  color: var(--on-surface);
}

/* Candidate Card Grid */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.candidate-card {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  cursor: pointer;
}

.candidate-card-header {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.candidate-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--surface-container-high);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  border: 2px solid var(--outline-variant);
}

.candidate-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.candidate-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
}

.candidate-title {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.candidate-bio {
  font-size: 13px;
  color: var(--on-surface-variant);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Toast Notification - Modern Glassmorphic & Progress Countdown */
.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--inverse-surface);
  color: var(--inverse-on-surface);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  font-weight: 500;
  min-width: 280px;
  max-width: 420px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.toast.toast-exit {
  animation: slideOutToast 0.25s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  animation: toastCountdown linear forwards;
}

@keyframes toastCountdown {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes slideInToast {
  from {
    transform: translateX(120%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOutToast {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(120%) scale(0.9);
    opacity: 0;
  }
}

.toast.success {
  border-left: 4px solid var(--status-available);
}
.toast.success .toast-progress {
  background-color: var(--status-available);
}

.toast.info {
  border-left: 4px solid var(--primary);
}
.toast.info .toast-progress {
  background-color: var(--primary);
}

.toast.error {
  border-left: 4px solid var(--error);
}
.toast.error .toast-progress {
  background-color: var(--error);
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--surface-container-lowest);
  border: 1px dashed var(--outline-variant);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--outline);
}

.empty-state-icon {
  font-size: 32px;
  color: var(--outline-variant);
}

.empty-state-title {
  font-weight: 600;
  color: var(--on-surface-variant);
  font-size: 16px;
}

.empty-state-desc {
  font-size: 13px;
  max-width: 320px;
  margin: 0 auto;
}

/* Tabs inside a Card */
.tab-container {
  display: flex;
  border-bottom: 1px solid var(--surface-container-high);
  margin-bottom: var(--space-md);
  gap: var(--space-sm);
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Detail Tables */
.applicants-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-sm);
}

.applicants-table th, .applicants-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--surface-container-high);
}

.applicants-table th {
  font-weight: 600;
  color: var(--on-surface-variant);
  background-color: var(--surface-container-low);
  font-size: 13px;
}

.applicants-table tr:hover td {
  background-color: var(--surface-container-low);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.badge-pending {
  background-color: var(--surface-container-highest);
  color: var(--on-surface-variant);
}

.badge-interview {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

.badge-rejected {
  background-color: var(--error-container);
  color: var(--on-error-container);
}

.badge-hired {
  background-color: var(--status-available-bg);
  color: var(--status-available);
}

/* Footer styling */
.app-footer {
  background-color: var(--surface-container-lowest);
  border-top: 1px solid var(--outline-variant);
  padding: var(--space-lg) 0;
  margin-top: auto;
  text-align: center;
  font-size: 12px;
  color: var(--on-surface-variant);
}

/* ==========================================
   MOBILE & SMARTPHONE BREAKPOINTS & ADAPTIVE UX
   ========================================== */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none !important;
}

.mobile-bottom-nav {
  display: none;
}

.sheet-drag-handle {
  display: none;
}

.mobile-resume-tabs {
  display: none;
}

.kanban-mobile-action {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  /* Prevent automatic zoom on iOS Safari when tapping inputs */
  input, select, textarea {
    font-size: 16px !important;
  }
  
  /* Compact & Clean Mobile App Header */
  .app-header {
    height: 56px;
    padding-top: var(--safe-top);
  }

  .header-container {
    padding: 0 var(--space-md);
    height: 56px;
  }

  /* Desktop header nav menu is hidden; replaced by bottom thumb-zone nav */
  .app-header .nav-menu {
    display: none !important;
  }

  .header-user-card {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast);
  }

  .header-user-card:active {
    background-color: var(--surface-container-low);
  }

  /* Main body container safe-padding for Bottom Nav Bar */
  .main-content {
    padding: var(--space-md);
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 24px)) !important;
    gap: var(--space-md);
  }

  .view-panel {
    padding-bottom: 24px;
  }

  .app-footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 24px)) !important;
  }

  /* Native Mobile Bottom Navigation Bar (Thumb Zone) */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(58px + var(--safe-bottom));
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    z-index: 150;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    padding-bottom: var(--safe-bottom);
    align-items: stretch;
    justify-content: center;
  }

  .bottom-nav-group {
    display: flex;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    justify-content: space-around;
    align-items: center;
    height: 100%;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--on-surface-variant);
    padding: 2px 0;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 26px;
    border-radius: var(--radius-full);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .bottom-nav-item i {
    width: 20px;
    height: 20px;
  }

  .bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.15s ease;
  }

  .bottom-nav-item.active {
    color: var(--primary);
  }

  .bottom-nav-item.active .bottom-nav-icon-wrap {
    background-color: var(--primary-fixed);
    color: var(--on-primary-fixed);
    transform: translateY(-1px);
  }

  .bottom-nav-item.active .bottom-nav-label {
    color: var(--primary);
    font-weight: 700;
  }

  .bottom-nav-badge {
    position: absolute;
    top: -2px;
    right: 2px;
    background: var(--error);
    color: var(--on-error);
    font-size: 9.5px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  /* Floating Action Button (FAB) for Company Quick Post */
  .bottom-nav-fab .bottom-nav-icon-wrap {
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: var(--on-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 90, 180, 0.35);
    transform: translateY(-8px);
  }

  .bottom-nav-fab .bottom-nav-label {
    transform: translateY(-4px);
    font-weight: 600;
    color: var(--primary);
  }

  /* Modals as Modern Native Bottom Sheets */
  .modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    border-radius: 24px 24px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    animation: slideUpSheet 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    overscroll-behavior-y: contain;
  }

  .sheet-drag-handle {
    display: block !important;
    width: 38px;
    height: 4px;
    background-color: var(--outline-variant);
    border-radius: var(--radius-full);
    margin: 10px auto 4px auto;
    opacity: 0.85;
  }

  .modal-header {
    padding: var(--space-sm) var(--space-md);
  }

  .modal-body {
    padding: var(--space-md);
  }

  .modal-footer {
    padding: var(--space-md);
    padding-bottom: max(var(--space-md), calc(var(--space-md) + var(--safe-bottom))) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  @keyframes slideUpSheet {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  /* Mobile Resume Tabs (Edit vs Preview Toggle) */
  .mobile-resume-tabs {
    display: flex !important;
    gap: 4px;
    background: var(--surface-container);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: var(--space-md);
    border: 1px solid var(--outline-variant);
  }

  .mobile-resume-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: none;
    background: transparent;
    color: var(--on-surface-variant);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-resume-tab-btn.active {
    background: var(--surface-container-lowest);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
  }

  /* Toggle between resume editor and preview in mobile */
  #resume-editor-col {
    display: block !important;
  }
  #resume-preview-col {
    display: none !important;
  }

  .mobile-tab-edit-active #resume-editor-col {
    display: block !important;
  }
  .mobile-tab-edit-active #resume-preview-col {
    display: none !important;
  }

  .mobile-tab-preview-active #resume-editor-col {
    display: none !important;
  }
  .mobile-tab-preview-active #resume-preview-col {
    display: block !important;
  }

  /* Applications table transformed to comfortable mobile cards */
  #my-applications-table,
  #my-applications-table tbody,
  #my-applications-table tr,
  #my-applications-table td {
    display: block;
    width: 100%;
  }

  #my-applications-table thead {
    display: none;
  }

  #my-applications-table tr {
    margin-bottom: var(--space-md);
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-xs);
  }

  #my-applications-table td {
    padding: 4px 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
  }

  #my-applications-table td:first-child {
    font-size: 15px;
    margin-bottom: 4px;
    display: block;
  }

  #my-applications-table td:last-child {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px dashed var(--outline-variant);
    justify-content: flex-end;
  }

  /* Hero Section Mobile Typography */
  .hero-section {
    padding: var(--space-md) var(--space-md);
  }

  .hero-title {
    font-size: 20px;
    line-height: 28px;
  }

  .hero-stats {
    gap: var(--space-sm);
    margin-top: var(--space-sm);
  }

  .stat-card {
    flex: 1;
    min-width: 90px;
    padding: var(--space-sm);
  }

  .stat-value {
    font-size: 18px;
  }

  /* Category Filter Chips with Horizontal Scroll & Snapping */
  .job-filters-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: var(--space-xs);
  }
  
  .filter-badge {
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 8px 14px;
    font-size: 12.5px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  /* Job Search Box Mobile Stacking */
  .job-search-box {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    padding: var(--space-md);
  }

  .location-input-container {
    width: 100%;
  }

  #my-applications-table tr:last-child {
    margin-bottom: var(--space-xl);
  }

  #my-applications-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--on-surface-variant);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  #my-applications-table td:first-child::before,
  #my-applications-table td:last-child::before {
    display: none;
  }

  /* Job Cards Touch Sizing */
  .job-card {
    padding: var(--space-md);
  }

  .job-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .job-actions > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .job-actions > div:last-child {
    width: 100% !important;
  }

  .job-actions .btn-primary,
  .job-actions .btn-secondary[disabled] {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
  }

  .job-actions .btn-whatsapp,
  .job-actions .btn-outline {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 4px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    white-space: nowrap !important;
  }

  /* Split layout collapses to vertical */
  .split-layout {
    grid-template-columns: 1fr !important;
    gap: var(--space-md);
  }
  
  .side-column {
    order: 2; /* Move sidebar below main jobs list */
  }
  
  .main-column {
    order: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .availability-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
  }

  .availability-info {
    width: 100%;
  }

  .availability-toggle {
    width: 100%;
    justify-content: space-between;
  }

  /* Candidates Grid layout */
  .candidates-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Touch Kanban Board (ATS) */
  .kanban-board {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    min-height: auto;
  }

  .kanban-column {
    scroll-snap-align: center;
    min-width: 82vw;
    max-width: 85vw;
    flex-shrink: 0;
  }

  .kanban-mobile-action {
    display: block;
    margin-top: 8px;
    border-top: 1px dashed var(--outline-variant);
    padding-top: 6px;
  }

  .kanban-stage-select {
    width: 100%;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--outline-variant);
    background: var(--surface-container-low);
    font-size: 12px;
    color: var(--on-surface);
    font-weight: 500;
  }
  
  /* Toast Notification Placement on Mobile (Top of Screen) */
  .toast-container {
    top: calc(16px + var(--safe-top)) !important;
    bottom: auto !important;
    left: var(--space-md) !important;
    right: var(--space-md) !important;
    z-index: 350;
  }

  .toast {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand span {
    display: none;
  }

  .header-actions {
    gap: var(--space-sm);
  }

  .header-user-card {
    padding: 2px 4px;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
  }
}

/* Avatar image clipping and visual styling */
.user-avatar img,
.resume-avatar img,
.candidate-avatar img,
.resume-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.user-avatar,
.resume-avatar,
.candidate-avatar,
.resume-avatar-wrapper {
  overflow: hidden;
}

/* ==========================================
   ASSOCIATION WHITELABEL & REPORTS STYLES
   ========================================== */

/* Whitelabel styling */
#set-logo-preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#association-settings-form .form-group {
  margin-bottom: var(--space-md);
}

/* Stats Dashboard Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  width: 100%;
}

.stats-grid .stat-card {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-default);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

.stats-grid .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stats-grid .stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Rank bars styling */
#rep-companies-list div {
  margin-bottom: 2px;
}

#rep-companies-list div span {
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================
   PAGINATION STYLING (OPÇÃO 4: PERFORMANCE)
   ========================================== */
.pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--outline-variant);
  width: 100%;
}

.pagination-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-default);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-row button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.pagination-row span {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-variant);
  user-select: none;
}

/* ==========================================
   CHARTS STYLING (UX/RELATÓRIOS)
   ========================================== */
.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.chart-container {
  position: relative;
  height: 220px;
  width: 100%;
}

/* ==========================================
   JOB STORIES STYLES (SOCIAL-MEDIA LAYOUT)
   ========================================== */

/* Hide scrollbars for chrome/safari/opera */
.stories-list::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  text-align: center;
  transition: transform var(--transition-fast) ease-in-out;
  user-select: none;
}

.story-item:hover {
  transform: scale(1.05);
}

.story-item:active {
  transform: scale(0.95);
}

.story-avatar-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast) ease;
}

/* Gradient ring indicating unread story */
.story-avatar-ring.unread {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
}

/* Grey ring indicating read story */
.story-avatar-ring.read {
  background: var(--outline-variant);
}

.story-avatar-content {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--surface-container-highest);
  color: var(--on-surface);
  border: 2px solid var(--surface-container-lowest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow: hidden;
}

.story-item-title {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface-variant);
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stories fullscreen viewer styles */
.story-viewer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  animation: storySlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes storySlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.story-progress-bar {
  height: 3px;
  flex: 1;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  background-color: #fff;
  width: 0%;
  transition: width 0.05s linear;
}

/* Styling the description scrollable area */
#story-job-desc::-webkit-scrollbar {
  width: 4px;
}
#story-job-desc::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* ==========================================
   MATCH SCORE BADGES & METERS
   ========================================== */
.badge-match {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.badge-match-high {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

body.dark-mode .badge-match-high {
  background-color: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.badge-match-med {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

body.dark-mode .badge-match-med {
  background-color: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.badge-match-low {
  background-color: var(--surface-container-high);
  color: var(--on-surface-variant);
  border: 1px solid var(--outline-variant);
}

/* ==========================================
   WHATSAPP & SHARE BUTTONS
   ========================================== */
.btn-whatsapp {
  background-color: #25D366 !important;
  color: #ffffff !important;
  border: none !important;
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebd5a !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ==========================================
   KANBAN BOARD PIPELINE (ATS)
   ========================================== */
.view-mode-toggle {
  display: inline-flex;
  background-color: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.view-mode-btn {
  border: none;
  background: transparent;
  color: var(--on-surface-variant);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.view-mode-btn.active {
  background-color: var(--surface-container-lowest);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  min-height: 480px;
  scrollbar-width: thin;
}

.kanban-column {
  background-color: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-width: 230px;
  max-height: calc(100vh - 280px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kanban-column.drag-over {
  background-color: var(--surface-container-high);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-container);
}

.kanban-column-header {
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--outline-variant);
  font-weight: 700;
  font-size: 13px;
}

.kanban-col-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kanban-col-count {
  background-color: var(--surface-container-highest);
  color: var(--on-surface-variant);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: bold;
}

.kanban-cards-area {
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
}

.kanban-card {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  user-select: none;
}

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

.kanban-card.dragging {
  opacity: 0.45;
  cursor: grabbing;
  transform: scale(0.97);
}

.kanban-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.kanban-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.kanban-card-info {
  overflow: hidden;
  line-height: 1.25;
}

.kanban-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.kanban-card-role {
  font-size: 11px;
  color: var(--on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  padding-top: var(--space-xs);
  border-top: 1px dashed var(--outline-variant);
}

.kanban-card-actions {
  display: flex;
  gap: 4px;
}

/* ==========================================
   SKELETON SCREEN LOADERS (PERFORMANCE UX)
   ========================================== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, 
    var(--surface-container-high) 0%, 
    var(--surface-container-highest) 50%, 
    var(--surface-container-high) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite ease-in-out;
  border-radius: var(--radius-sm);
  display: block;
}

.skeleton-card {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.skeleton-line {
  height: 12px;
  width: 100%;
  border-radius: var(--radius-xs);
}

.skeleton-line.sm { height: 10px; width: 35%; }
.skeleton-line.md { height: 14px; width: 65%; }
.skeleton-line.lg { height: 20px; width: 85%; }

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-tags {
  display: flex;
  gap: 6px;
}

.skeleton-tag {
  height: 22px;
  width: 68px;
  border-radius: var(--radius-full);
}

/* ==========================================
   RESUME STRENGTH METER (UX GAMIFICATION)
   ========================================== */
.resume-strength-widget {
  background: linear-gradient(135deg, var(--surface-container-low), var(--surface-container));
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.resume-strength-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.resume-strength-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.resume-strength-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-container-highest);
  color: var(--on-surface-variant);
  transition: all var(--transition-normal);
}

.resume-strength-track {
  width: 100%;
  height: 8px;
  background-color: var(--surface-container-highest);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.resume-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.resume-strength-fill.strength-low {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.resume-strength-fill.strength-med {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.resume-strength-fill.strength-high {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.resume-strength-tips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: 12px;
  color: var(--on-surface-variant);
}

.strength-tip-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* ==========================================
   SEARCH ENHANCEMENTS & CLEAR BUTTONS
   ========================================== */
.search-input-wrapper,
.location-input-container {
  position: relative;
}

.clear-input-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--outline);
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  z-index: 2;
}

.clear-input-btn:hover {
  background-color: var(--surface-container-high);
  color: var(--on-surface);
}

.search-results-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px var(--space-xs);
  margin-top: var(--space-xs);
  font-size: 13px;
  color: var(--on-surface-variant);
}

.btn-clear-filters {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-clear-filters:hover {
  background-color: var(--surface-container-low);
}

/* Star toggle pop animation */
@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.star-pop {
  animation: starPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Kanban column empty state */
.kanban-empty-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
  border: 1px dashed var(--outline-variant);
  border-radius: var(--radius-md);
  color: var(--outline);
  font-size: 12px;
  gap: 4px;
  margin: auto 0;
  background-color: rgba(0, 0, 0, 0.02);
}

body.dark-mode .kanban-empty-column {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================
   PWA INSTALL BANNER & PROMPT
   ========================================== */
.pwa-banner {
  position: fixed;
  bottom: 74px;
  left: var(--space-md);
  right: var(--space-md);
  max-width: 440px;
  margin: 0 auto;
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  z-index: 1000;
  animation: slideUp 0.3s ease forwards;
}

@media (min-width: 769px) {
  .pwa-banner {
    bottom: var(--space-lg);
    right: var(--space-lg);
    left: auto;
  }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-banner-text {
  flex: 1;
  line-height: 1.3;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.close-pwa-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--on-surface-variant);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* ==========================================
   EXECUTIVE BOARD REPORT (PDF & PRINT STYLES)
   ========================================== */
.executive-report-sheet {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background: #ffffff;
  padding: 32px 36px;
  line-height: 1.5;
}

.executive-header {
  border-bottom: 2px solid #005ab4;
  padding-bottom: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.executive-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.executive-kpi-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.executive-kpi-val {
  font-size: 24px;
  font-weight: 700;
  color: #005ab4;
  display: block;
}

.executive-kpi-lbl {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.executive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 24px;
}

.executive-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 10px;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
}

.executive-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.executive-sign-area {
  margin-top: 40px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.executive-sign-line {
  width: 200px;
  border-top: 1px solid #94a3b8;
  padding-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

/* ==========================================
   CONFETTI CELEBRATION CANVAS
   ========================================== */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
  display: none;
}

/* ==========================================
   SKELETON SHIMMER LOADERS
   ========================================== */
.skeleton {
  background: linear-gradient(90deg, var(--surface-container-low) 25%, var(--surface-container-high) 50%, var(--surface-container-low) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s infinite ease-in-out;
  border-radius: var(--radius-sm);
  display: inline-block;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  margin-bottom: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================
   JOB MATCH SCORE BADGE (CANDIDATE VIEW)
   ========================================== */
.job-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.job-match-high {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.job-match-med {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.job-match-low {
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
}

/* ==========================================
   CANDIDATE CURRICULUM PDF (PRINT/DOWNLOAD)
   ========================================== */
.candidate-resume-pdf-sheet {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background: #ffffff;
  padding: 28px 34px;
  line-height: 1.5;
  box-sizing: border-box;
}

.candidate-resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #005ab4;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.candidate-resume-section {
  margin-bottom: 16px;
}

.candidate-resume-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #005ab4;
  letter-spacing: 0.04em;
  margin: 0 0 8px 0;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}

/* ==========================================
   INTERACTIVE MAPS & GEO-PINS (LEAFLET)
   ========================================== */
.map-view-container {
  width: 100%;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  border: 1px solid var(--outline-variant, #e2e8f0);
  background: var(--surface-container-low, #f8fafc);
  position: relative;
  z-index: 1;
}

.custom-map-pin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-map-pin:hover {
  transform: scale(1.18);
  z-index: 9999 !important;
}

.custom-map-pin .pin-body {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
}

.custom-map-pin.company-pin .pin-body {
  background: linear-gradient(135deg, #005ab4, #0284c7);
}

.custom-map-pin.candidate-pin.available .pin-body {
  background: linear-gradient(135deg, #10b981, #059669);
}

.custom-map-pin.candidate-pin.busy .pin-body {
  background: linear-gradient(135deg, #64748b, #475569);
}

.custom-map-pin.my-company-pin .pin-body {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  border: 2.5px solid #fbbf24;
}

.custom-map-pin .pin-content {
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.custom-map-pin .pin-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-map-pin .pin-pulse {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.4);
  animation: mapPulse 2s infinite ease-out;
  pointer-events: none;
  z-index: -1;
}

@keyframes mapPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #e2e8f0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.map-popup-card {
  padding: 14px 16px;
  min-width: 240px;
  max-width: 290px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
}

.map-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.map-popup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
}

.map-popup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-popup-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.map-popup-subtitle {
  font-size: 11px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.map-popup-body {
  font-size: 11.5px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-popup-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Spin animation for loading spinners */
.spin {
  animation: spinAnim 1s linear infinite;
}

@keyframes spinAnim {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-view-mode {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm, 6px);
  border: none;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-view-mode.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-map-filter-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--outline-variant);
  background: var(--surface);
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-map-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 90, 180, 0.25);
}

/* ==========================================
   CANDIDATE METADATA PILLS & RECRUITER INSIGHTS
   ========================================== */
.cand-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.cand-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
  border: 1px solid var(--outline-variant);
}

.cand-meta-pill.cand-age-pill {
  background: rgba(0, 90, 180, 0.08);
  color: var(--primary);
  border-color: rgba(0, 90, 180, 0.2);
}

.cand-meta-pill.cand-exp-pill {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

.cand-meta-pill.cand-edu-pill {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.25);
}

/* Recruiter Suggestions Box in Candidate Card */
.recruiter-suggestions-box {
  background: linear-gradient(135deg, rgba(0, 90, 180, 0.04) 0%, rgba(99, 102, 241, 0.04) 100%);
  border: 1px solid rgba(0, 90, 180, 0.15);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.recruiter-suggestions-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 4px;
}

.recruiter-suggestion-item {
  font-size: 11.5px;
  color: var(--on-surface-variant);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 3px;
  line-height: 1.35;
}

/* Recruiter Analysis Dashboard in Modal */
.recruiter-analysis-card {
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.recruiter-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.recruiter-kpi-item {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.recruiter-kpi-label {
  font-size: 11px;
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.recruiter-kpi-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
}

/* Address Mini Map Interactive Pin Picker */
.address-mini-map-wrap {
  margin-top: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--outline-variant);
}

.address-mini-map {
  height: 190px;
  width: 100%;
  border-radius: var(--radius-sm);
}

.address-mini-map-hint {
  font-size: 11px;
  color: var(--on-surface-variant);
  padding: 6px 10px;
  background: var(--surface-container-high);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}

/* ==========================================
   HTML2PDF MOBILE CAPTURE FIXES
   Prevents negative container centering on smartphones
   ========================================== */
.html2pdf__overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 800px !important;
  min-width: 800px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.html2pdf__container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 750px !important;
  min-width: 750px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
}

/* ==========================================
   PERGUNTAS DE TRIAGEM (SCREENING QUESTIONS)
   ========================================== */
.screening-question-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.screening-question-card:focus-within {
  border-color: var(--primary);
}

.screening-radio-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.screening-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface);
  color: var(--on-surface);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  user-select: none;
}

.screening-radio-label:hover {
  border-color: var(--primary);
  background: var(--surface-container-low);
}

.screening-radio-label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(0, 90, 180, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.screening-radio-label input[type="radio"] {
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
}

.screening-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.screening-badge:hover {
  opacity: 0.85;
}

.screening-badge-passed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.screening-badge-failed {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.screening-badge-neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.screening-answer-card {
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screening-answer-card.passed {
  border-left: 4px solid #16a34a;
}

.screening-answer-card.failed {
  border-left: 4px solid #dc2626;
  background: #fff5f5;
}

/* ==============================================
   LGPD COOKIE CONSENT BANNER
   ============================================== */
.lgpd-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  animation: slideUpLgpdBanner 0.3s ease-out;
}

@keyframes slideUpLgpdBanner {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.lgpd-cookie-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 800px;
  flex: 1;
}

.lgpd-cookie-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 90, 180, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lgpd-cookie-icon i,
.lgpd-cookie-icon svg {
  width: 20px;
  height: 20px;
}

.lgpd-cookie-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--on-surface);
  margin-bottom: 2px;
}

.lgpd-cookie-text p {
  margin: 0;
  font-size: 12px;
  color: var(--on-surface-variant);
  line-height: 1.45;
}

.lgpd-cookie-text a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.lgpd-cookie-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lgpd-cookie-banner {
    padding: var(--space-md);
    bottom: 60px; /* Space for mobile bottom nav bar */
  }
  .lgpd-cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================
   IN-APP NOTIFICATIONS & APPLICATION STEPPER
   ========================================== */
.notifications-center-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-bell-btn {
  position: relative;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--on-surface);
  transition: all var(--transition-fast) ease;
}

.notif-bell-btn:hover {
  background: var(--surface-container-high);
  color: var(--primary);
}

.notif-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--surface);
}

.notifications-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 340px;
  max-width: 90vw;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
}

.notif-item:hover {
  background: var(--surface-container-low) !important;
}

.application-stepper-tracker {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  max-width: 290px;
}

.cand-dist-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  font-size: 11px;
}

.star-rating-btn:hover {
  transform: scale(1.25);
}


