/* Job Interview Tracker - World-Class Design System v3.0 */

/* ============================================
   DESIGN TOKENS - Inspired by Anthropic/Apple
   ============================================ */
:root {
  /* Primary Colors - Vibrant Button Terracotta */
  --color-primary: #d4735e;
  --color-primary-light: #e69884;
  --color-primary-dark: #b8513d;
  --color-primary-rgb: 212, 115, 94;

  /* Secondary Colors - Muted Pastel Sage */
  --color-secondary: #B8C9BE;
  --color-secondary-light: #D9E4DC;
  --color-secondary-dark: #9BAD9F;
  --color-secondary-rgb: 184, 201, 190;

  /* Accent Colors - Soft Pastel Peach */
  --color-accent: #E5B5A8;
  --color-accent-light: #F2D5CC;
  --color-accent-dark: #D09B8D;

  /* Tertiary - Soft Pastel Sky Blue */
  --color-tertiary: #C5D9E0;
  --color-tertiary-light: #E0ECEF;
  --color-tertiary-dark: #A7BFC9;

  /* Neutrals - Warm Soft Grays */
  --color-background: #F7F5F3;
  --color-surface: #FDFCFB;
  --color-surface-elevated: #FFFFFF;
  --color-border: #E8E4E0;
  --color-border-light: #F0EEEC;

  --color-text-primary: #3C3835;
  --color-text-secondary: #756F68;
  --color-text-tertiary: #A39B94;
  --color-text-inverse: #FDFCFB;

  /* Semantic Colors - Muted Pastels */
  --color-success: #A8C89A;
  --color-success-light: #CFE3C5;
  --color-warning: #E8C48A;
  --color-warning-light: #F5E0BA;
  --color-error: #D9A09A;
  --color-error-light: #ECC9C5;
  --color-info: #9DB8CD;
  --color-info-light: #C9D9E5;

  /* Typography - Professional & Modern */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', 'Georgia', 'Times New Roman', serif;
  --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;

  /* Font Sizes - Type Scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */

  /* Font Weights - Inter Variable */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* Spacing - 8pt Grid System */
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */

  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Shadows - Soft & Natural */
  --shadow-xs: 0 1px 2px rgba(44, 40, 37, 0.04);
  --shadow-sm: 0 2px 4px rgba(44, 40, 37, 0.06);
  --shadow-md: 0 4px 8px rgba(44, 40, 37, 0.08), 0 2px 4px rgba(44, 40, 37, 0.04);
  --shadow-lg: 0 8px 16px rgba(44, 40, 37, 0.1), 0 4px 8px rgba(44, 40, 37, 0.06);
  --shadow-xl: 0 16px 32px rgba(44, 40, 37, 0.12), 0 8px 16px rgba(44, 40, 37, 0.08);
  --shadow-2xl: 0 24px 48px rgba(44, 40, 37, 0.16);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--color-background);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  letter-spacing: -0.011em;
}

.container {
  max-width: 100%;
  margin: 0;
  padding: var(--space-6);
}

@media (min-width: 2000px) {
  .container {
    max-width: 1920px;
    margin: 0 auto;
  }
}

/* ============================================
   TYPOGRAPHY - Professional & Refined
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-4) 0;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-lg);
  font-weight: 600;
}

h6 {
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin: 0 0 var(--space-4) 0;
  line-height: var(--leading-relaxed);
}

strong, b {
  font-weight: var(--weight-semibold);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ============================================
   HEADER - World-Class Glassmorphism Design
   ============================================ */
header {
  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);

  color: var(--color-text-primary);
  padding: var(--space-6) var(--space-10);
  border-radius: var(--radius-2xl);
  margin: var(--space-4) 0 var(--space-8) 0;

  /* Layered Shadows - Premium Feel */
  box-shadow:
    0 8px 32px rgba(var(--color-primary-rgb), 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);

  /* Border with Gradient */
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;

  /* Smooth Transitions */
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Sticky Behavior */
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  overflow: visible;
}

/* Gradient Border Glow on Hover */
header::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-2xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.4) 0%,
    rgba(var(--color-accent-dark), 0.4) 50%,
    rgba(var(--color-tertiary-dark), 0.4) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

header:hover::before {
  opacity: 1;
}

/* Subtle Floating Animation */
@keyframes headerFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

/* Shrunk State (Applied via JS on scroll) */
header.shrunk {
  padding: var(--space-4) var(--space-8);
  margin: 0 0 var(--space-6) 0;
  box-shadow:
    0 4px 20px rgba(var(--color-primary-rgb), 0.15),
    0 1px 4px rgba(0, 0, 0, 0.06);
}

header.shrunk .brand-title {
  font-size: var(--text-3xl);
}

header.shrunk .brand-tagline {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

header.shrunk .logo-icon {
  width: 32px;
  height: 32px;
}

.header-left {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  margin-left: var(--space-4); /* Add breathing room from left edge */
}

.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* Brand Logo & Identity */
.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  animation: fadeInLeft 0.6s ease-out;
  cursor: pointer;
  transition: all var(--transition-base);
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.logo-icon {
  color: var(--color-primary);
  filter: drop-shadow(0 2px 8px rgba(var(--color-primary-rgb), 0.25));
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo:hover .logo-icon {
  transform: rotate(90deg) scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(var(--color-primary-rgb), 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all var(--transition-base);
}

.brand-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all var(--transition-base);
}

.brand-accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--weight-extrabold);
}

.brand-tagline {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin: 0;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo:hover .brand-tagline {
  opacity: 1;
  letter-spacing: 0.08em;
}

header h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  margin: 0;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Search Container - Centered Floating Design */
.search-container {
  position: relative;
  flex: 0 1 480px;
  max-width: 480px;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto; /* Center the search bar */
}

.search-input {
  width: 100%;
  padding: 12px 80px 12px 44px;
  border: 1.5px solid rgba(var(--color-primary-rgb), 0.15);
  border-radius: var(--radius-2xl);
  font-size: 14px;
  font-weight: var(--weight-medium);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-text-primary);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.search-input::placeholder {
  color: var(--color-text-tertiary);
  opacity: 0.65;
  transition: all 300ms ease;
}

.search-input:focus::placeholder {
  opacity: 0.45;
  transform: translateX(3px);
}

.search-input:focus {
  outline: none;
  border-color: rgba(var(--color-primary-rgb), 0.35);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 24px rgba(var(--color-primary-rgb), 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transform: translateY(-2px) scale(1.01);
}

/* Expand on Focus Animation */
.search-container:focus-within {
  max-width: 560px;
}

/* Search Icon - Left Side */
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  opacity: 0.5;
  pointer-events: none;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container:focus-within .search-icon {
  opacity: 0.8;
  color: var(--color-primary);
  transform: translateY(-50%) scale(1.08);
}

/* Keyboard Shortcut Badge */
.search-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 8px;
  background: rgba(var(--color-primary-rgb), 0.08);
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
  border-radius: 6px;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  font-family: var(--font-mono), 'SF Mono', 'Monaco', 'Menlo', monospace;
  pointer-events: none;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-container:focus-within .search-kbd {
  opacity: 0.4;
  transform: translateY(-50%) scale(0.95);
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-height: 500px;
  overflow-y: auto;
  z-index: 1000;
  color: #2c3e50;
}

.search-results:empty {
  display: none !important;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid #ecf0f1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 8px;
  letter-spacing: 0.5px;
}

.search-result-type.job {
  background: #e3f2fd;
  color: #1976d2;
}

.search-result-type.event {
  background: #f3e5f5;
  color: #7b1fa2;
}

.search-result-type.call {
  background: #e8f5e9;
  color: #388e3c;
}

.search-result-type.interview {
  background: #fff3e0;
  color: #D4A574;
}

.search-result-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.search-result-subtitle {
  font-size: 13px;
  color: #7f8c8d;
}

.search-result-match {
  font-size: 12px;
  color: #95a5a6;
  margin-top: 4px;
  font-style: italic;
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: #7f8c8d;
}

.search-no-results-icon {
  font-size: 48px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* ============================================
   MOBILE RESPONSIVE HEADER - PREMIUM HAMBURGER
   ============================================ */

@media (max-width: 768px) {
  header {
    padding: var(--space-4) var(--space-5);
    flex-wrap: nowrap;
    gap: var(--space-3);
  }

  header.shrunk {
    padding: var(--space-3) var(--space-4);
  }

  .header-left {
    flex: 0 0 auto;
  }

  .brand-logo {
    gap: var(--space-3);
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .brand-title {
    font-size: var(--text-2xl);
  }

  .brand-tagline {
    font-size: var(--text-xs);
  }

  .header-right {
    flex: 1;
    justify-content: flex-end;
    gap: var(--space-2);
  }

  .search-container {
    position: fixed;
    top: calc(var(--space-20) + 10px);
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
    z-index: var(--z-dropdown);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .search-container.mobile-active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .btn-dark-mode,
  .btn-settings {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  /* Hamburger Menu Button */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 2px solid rgba(var(--color-primary-rgb), 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
  }

  .mobile-menu-toggle:active {
    transform: scale(0.95);
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-primary-dark);
    border-radius: 2px;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Desktop: Hide mobile menu toggle */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ===== PREMIUM TAB NAVIGATION ===== */
.tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-2);
  background: rgba(var(--color-primary-rgb), 0.04);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(4px);
}

.tab-btn {
  padding: 11px 20px;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  font-size: 14.5px;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.08);
  transform: translateY(-1px);
}

.tab-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-dark) 100%);
  box-shadow:
    0 4px 12px rgba(var(--color-primary-rgb), 0.25),
    0 2px 6px rgba(var(--color-accent-dark), 0.15);
  transform: translateY(0);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
  animation: ripple 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.tab-content {
  display: none;
  animation: fadeInContent 400ms ease;
}

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

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.5rem;
  color: #2c3e50;
}

/* ============================================
   BUTTONS - Modern & Warm Design System
   ============================================ */

/* Base Button */
button {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  outline: none;
}

button:focus-visible {
  outline: 3px solid rgba(var(--color-primary-rgb), 0.3);
  outline-offset: 2px;
}

/* Primary Button - Warm Terracotta */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-dark) 100%);
  color: var(--color-text-inverse);
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md), 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 8px 20px rgba(var(--color-primary-rgb), 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button - Soft & Subtle */
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 2px solid var(--color-border);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-background);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* Danger Button - Warm Red */
.btn-danger {
  background: linear-gradient(135deg, var(--color-error) 0%, var(--color-error-light) 100%);
  color: var(--color-text-inverse);
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  font-weight: var(--weight-semibold);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-danger:active {
  transform: translateY(0);
}

/* Edit Button - Secondary Color */
.btn-edit {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-right: var(--space-2);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-sm);
}

.btn-edit:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.form-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.form-card h3 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #2c3e50;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #9DB8CD;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.list-container {
  display: grid;
  gap: 15px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

.card-subtitle {
  color: #657786;
  font-size: 14px;
}

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

.card-body {
  margin-bottom: 15px;
}

.card-field {
  margin-bottom: 10px;
  font-size: 14px;
}

.card-field strong {
  color: #2c3e50;
  margin-right: 5px;
}

.card-field span {
  color: #657786;
}

/* Job Card Specific Styles */
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.meta-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f5f7fa;
  border: 1px solid #e1e8ed;
  border-radius: 20px;
  font-size: 12px;
  color: #2c3e50;
  font-weight: 500;
}

.job-summary {
  background: #f8f9ff;
  border-left: 3px solid #9DB8CD;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
}

.job-summary strong {
  color: #9DB8CD;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.job-summary p {
  margin: 0;
  line-height: 1.6;
  color: #2c3e50;
  font-size: 14px;
}

.btn-link {
  display: inline-block;
  color: #9DB8CD;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.btn-link:hover {
  color: #D09B8D;
  text-decoration: underline;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-interested { background: #e3f2fd; color: #1976d2; }
.status-applied { background: #f3e5f5; color: #7b1fa2; }
.status-screening { background: #fff3e0; color: #D4A574; }
.status-interviewing { background: #fff9c4; color: #E5C185; }
.status-offer { background: #c8e6c9; color: #388e3c; }
.status-rejected { background: #ffcdd2; color: #d32f2f; }
.status-accepted { background: #a5d6a7; color: #2e7d32; }
.status-scheduled { background: #e1f5fe; color: #0277bd; }
.status-completed { background: #c8e6c9; color: #388e3c; }
.status-cancelled { background: #ffcdd2; color: #d32f2f; }
.status-outbound { background: #e1f5fe; color: #0277bd; }
.status-inbound { background: #f3e5f5; color: #7b1fa2; }
.status-phone { background: #e3f2fd; color: #1976d2; }
.status-video { background: #f3e5f5; color: #7b1fa2; }
.status-onsite { background: #fff3e0; color: #D4A574; }
.status-technical { background: #fff9c4; color: #E5C185; }
.status-behavioral { background: #e1f5fe; color: #0277bd; }
.status-final { background: #c8e6c9; color: #388e3c; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #657786;
}

.empty-state h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

/* Drag and Drop Zone */
.drop-zone {
  background: white;
  border: 2px dashed #d0d7de;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.drop-zone.drag-over {
  border-color: #9DB8CD;
  background: #f8f9ff;
  transform: scale(1.01);
}

.drop-zone-content svg {
  color: #9DB8CD;
  margin-bottom: 8px;
  width: 36px;
  height: 36px;
}

.drop-zone-content h3 {
  color: #2c3e50;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.drop-zone-content p {
  color: #657786;
  margin-bottom: 10px;
  font-size: 13px;
}

.url-input {
  width: 100%;
  max-width: 450px;
  padding: 10px 14px;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.url-input:focus {
  outline: none;
  border-color: #9DB8CD;
}

/* Analyzing State */
.analyzing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: white;
  border-radius: 10px;
  margin-bottom: 30px;
}

.analyzing p {
  margin-top: 20px;
  color: #657786;
  font-size: 16px;
}

/* Spinner Animation */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e1e8ed;
  border-top-color: #9DB8CD;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Job Link */
.job-link {
  color: #9DB8CD;
  text-decoration: none;
  word-break: break-all;
}

.job-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  header {
    padding: 20px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .tabs {
    overflow-x: auto;
  }

  .card-actions {
    flex-direction: column;
  }

  .btn-edit,
  .btn-danger {
    width: 100%;
    margin-right: 0;
  }
}

/* ==================== SETTINGS & MODAL ==================== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-settings {
  background: rgba(var(--color-primary-rgb), 0.1);
  border: 2px solid rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-primary-dark);
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.btn-settings::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15), rgba(var(--color-accent-dark), 0.15));
  opacity: 0;
  transition: opacity 400ms ease;
}

.btn-settings:hover::before {
  opacity: 1;
}

.btn-settings:hover {
  background: rgba(var(--color-primary-rgb), 0.18);
  border-color: rgba(var(--color-primary-rgb), 0.4);
  transform: translateY(-2px) rotate(90deg) scale(1.05);
  box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.25);
}

.btn-settings:active {
  transform: translateY(0) rotate(90deg) scale(0.95);
}

/* ===== MODAL - GLASSMORPHISM DESIGN ===== */
.modal {
  display: none;
  position: fixed;
  z-index: var(--z-modal);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 400ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

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

.modal-content {
  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);

  margin: 0 auto;
  padding: 0;
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;

  /* Premium Shadow */
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);

  /* Border */
  border: 1px solid rgba(255, 255, 255, 0.8);

  /* Animation */
  animation: modalSlideUp 400ms cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
  overflow: hidden;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Gradient Border Glow */
.modal-content::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-2xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.3) 0%,
    rgba(var(--color-accent-dark), 0.3) 50%,
    rgba(var(--color-tertiary-dark), 0.3) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

.modal-header {
  /* No gradient - blend into glassmorphism */
  background: transparent;
  color: var(--color-text-primary);
  padding: var(--space-8) var(--space-8) var(--space-4) var(--space-8);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.modal-header h2 {
  margin: 0;
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: rgba(var(--color-primary-rgb), 0.1);
  border: 2px solid rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-primary-dark);
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  background: rgba(var(--color-primary-rgb), 0.18);
  border-color: rgba(var(--color-primary-rgb), 0.4);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.2);
}

.modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

.modal-body {
  padding: var(--space-4) var(--space-8) var(--space-8) var(--space-8);
  overflow-y: auto;
  flex: 1;
  position: relative;
  z-index: 1;
}

.modal-body h3 {
  color: #2c3e50;
  margin-bottom: 8px;
}

.help-text {
  color: #7f8c8d;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===== EMAIL MODAL (PRO FEATURE) ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  transition: opacity 300ms ease-in-out;
  padding: var(--space-4);
}

.modal-overlay.active {
  opacity: 1;
}

.email-preview {
  background: rgba(var(--color-background-rgb), 0.5);
  border: 1px solid rgba(var(--color-border-rgb), 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  font-family: var(--font-mono, monospace);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Email Modal Enhancements */
#email-modal .modal-content {
  max-width: 900px;
  max-height: 95vh;
}

#email-modal .modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid rgba(var(--color-border-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#email-modal .modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

#email-modal .modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}

#email-modal .form-group {
  margin-bottom: var(--space-5);
}

#email-modal .form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 0.9375rem;
}

#email-modal .form-group input[type="email"],
#email-modal .form-group input[type="text"] {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid rgba(var(--color-border-rgb), 0.3);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  transition: all 200ms ease;
  background: rgba(var(--color-background-rgb), 0.5);
}

#email-modal .form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

/* TinyMCE Editor Container */
#email-modal .tox-tinymce {
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--color-border-rgb), 0.3);
  transition: all 200ms ease;
}

#email-modal .tox-tinymce:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

/* Modal Close Button */
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: var(--space-2);
  margin: calc(var(--space-2) * -1);
  border-radius: var(--radius-md);
  transition: all 200ms ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(var(--color-border-rgb), 0.15);
  color: var(--color-text-primary);
}

/* Improved Form Actions */
#email-modal .form-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(var(--color-border-rgb), 0.15);
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(var(--color-border-rgb), 0.2);
}

.upgrade-prompt {
  max-width: 500px;
}

.upgrade-benefits {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08) 0%, rgba(var(--color-accent-rgb), 0.08) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

.upgrade-benefits h4 {
  margin-bottom: var(--space-3);
  color: var(--color-primary);
  font-size: 1.125rem;
}

.upgrade-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.upgrade-benefits li {
  padding: var(--space-2) 0;
  color: var(--color-text-primary);
  font-size: 0.9375rem;
}

/* ===== CV STATUS & FORM ELEMENTS ===== */
.cv-status {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: rgba(var(--color-success-rgb, 168, 200, 154), 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--color-success-rgb, 168, 200, 154), 0.2);
  color: var(--color-success-dark, #7A9C6E);
  font-weight: var(--weight-medium);
}

#cv-text {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--color-text-primary);
}

#cv-text::placeholder {
  color: var(--color-text-tertiary);
  opacity: 0.7;
}

#cv-text:focus {
  outline: none;
  border-color: rgba(var(--color-primary-rgb), 0.5);
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 20px rgba(var(--color-primary-rgb), 0.12),
    inset 0 1px 3px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

#cv-text:focus::placeholder {
  opacity: 0.5;
  transform: translateX(4px);
}

/* ===== MODAL BUTTON STYLES ===== */
.btn-danger {
  background: linear-gradient(135deg, var(--color-error) 0%, #C89090 100%);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-lg);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(217, 160, 154, 0.25);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #C89090 0%, var(--color-error) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(217, 160, 154, 0.35);
}

.btn-danger:active {
  transform: translateY(0);
}

/* ==================== MAIN LAYOUT: Jobs + Calendar Side-by-Side ==================== */

.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 20px;
  max-width: 100%;
}

.jobs-column {
  min-width: 0; /* Prevent overflow */
  width: 100%;
}

.actions-column {
  display: none; /* Hidden - moved to navigation */
}

/* ==================== KANBAN BOARD ==================== */

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.kanban-column {
  background: #f8f9fa;
  border-radius: 8px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kanban-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  padding: 16px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Color coding for different columns - Muted Pastels */
.kanban-column[data-status="interested"] .kanban-header {
  background: linear-gradient(135deg, #C5D9E0 0%, #A7BFC9 100%);
}

.kanban-column[data-status="interested"] .kanban-card {
  border-left-color: #A7BFC9;
}

.kanban-column[data-status="applied"] .kanban-header {
  background: linear-gradient(135deg, #D4A59A 0%, #B8877D 100%);
}

.kanban-column[data-status="applied"] .kanban-card {
  border-left-color: #D4A59A;
}

.kanban-column[data-status="interviewing"] .kanban-header {
  background: linear-gradient(135deg, #E8C48A 0%, #D4AF78 100%);
}

.kanban-column[data-status="interviewing"] .kanban-card {
  border-left-color: #E8C48A;
}

.kanban-column[data-status="offer"] .kanban-header {
  background: linear-gradient(135deg, #A8C89A 0%, #92B087 100%);
}

.kanban-column[data-status="offer"] .kanban-card {
  border-left-color: #A8C89A;
}

.kanban-column[data-status="rejected"] .kanban-header {
  background: linear-gradient(135deg, #D9A09A 0%, #C68B85 100%);
}

.kanban-column[data-status="rejected"] .kanban-card {
  border-left-color: #D9A09A;
  opacity: 0.8;
}

.kanban-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  min-width: 24px;
  text-align: center;
}

.kanban-cards {
  padding: 12px;
  flex: 1;
  min-height: 200px;
  max-height: 70vh;
  overflow-y: auto;
}

.kanban-cards:empty::before {
  content: 'Drop cards here';
  display: block;
  text-align: center;
  color: #95a5a6;
  padding: 40px 20px;
  font-style: italic;
}

.kanban-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid #9DB8CD;
  cursor: grab;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.btn-card-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.kanban-card:hover .btn-card-delete {
  opacity: 1;
  transform: scale(1);
}

.btn-card-delete:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.btn-card-delete:active {
  transform: scale(0.95);
}

.kanban-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.kanban-card.compact {
  padding: 10px;
  min-height: auto;
}

.kanban-card:hover {
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  transform: translateY(-3px) scale(1.02);
  border-left-width: 5px;
}

.kanban-card:hover::after {
  opacity: 1;
}

.kanban-card:active {
  cursor: grabbing;
  opacity: 0.9;
  transform: scale(0.98);
}

.kanban-card.dragging {
  opacity: 0.6;
  transform: rotate(3deg) scale(1.05);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
}

.kanban-cards.drag-over {
  background: rgba(102, 126, 234, 0.1);
  border: 2px dashed #9DB8CD;
  border-radius: 8px;
}

.kanban-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.kanban-card-title {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
  flex: 1;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.kanban-card-subtitle {
  color: #7f8c8d;
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.card-location {
  font-size: 11px;
  color: #95a5a6;
  margin-top: 4px;
}

.match-score-compact {
  background: #95a5a6;
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 11px;
  white-space: nowrap;
}

.match-score-compact.high {
  background: #A8C89A;
}

.match-score-compact.medium {
  background: #E8C48A;
}

.match-score-compact.low {
  background: #D9A09A;
}

.kanban-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.kanban-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ecf0f1;
  position: relative;
  z-index: 1;
}

.kanban-card-actions button {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

.match-score-large {
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  margin-bottom: 10px;
  display: inline-block;
}

.match-score-large.high {
  background: linear-gradient(135deg, #A8C89A 0%, #B5D4A8 100%);
}

.match-score-large.medium {
  background: linear-gradient(135deg, #E8C48A 0%, #EFD29B 100%);
}

.match-score-large.low {
  background: linear-gradient(135deg, #D9A09A 0%, #C89090 100%);
}

/* Responsive Kanban */
@media (max-width: 1600px) {
  .kanban-board {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .kanban-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .container {
    padding: 12px;
  }

  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  header {
    padding: 20px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .drop-zone {
    padding: 30px 20px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 8px;
  }

  .kanban-board {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kanban-column {
    min-width: 100%;
  }

  header {
    padding: 16px;
    border-radius: 8px;
  }

  header h1 {
    font-size: 1.25rem;
  }

  .btn-settings {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .drop-zone {
    padding: 20px 15px;
  }

  .drop-zone h3 {
    font-size: 1.1rem;
  }

  .drop-zone svg {
    width: 48px;
    height: 48px;
  }

  .kanban-header {
    padding: 12px;
  }

  .kanban-header h3 {
    font-size: 14px;
  }

  .kanban-card {
    padding: 8px;
  }

  .modal-content {
    width: 95%;
    margin: 20px auto;
  }

  .job-details-modal {
    max-height: 90vh;
  }
}

/* ==================== JOB DETAILS MODAL ==================== */

.job-details-modal {
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
}

.job-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #ecf0f1;
}

.job-details-header h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 24px;
}

.job-details-header h3 {
  margin: 4px 0 0 0;
  color: #7f8c8d;
  font-weight: 500;
  font-size: 18px;
}

.job-details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.job-details-section {
  margin-bottom: 24px;
}

.job-details-section h4 {
  color: #2c3e50;
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ecf0f1;
}

.job-details-section p {
  color: #34495e;
  line-height: 1.6;
  margin: 0;
}

.cv-match {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #9DB8CD;
}

.match-category {
  margin-bottom: 16px;
}

.match-category:last-child {
  margin-bottom: 0;
}

.match-category h5 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
}

.match-category ul {
  margin: 0;
  padding-left: 24px;
  color: #34495e;
  line-height: 1.6;
}

.match-category li {
  margin-bottom: 4px;
}

.job-details-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid #ecf0f1;
}

.job-details-actions button,
.job-details-actions a {
  padding: 12px 24px;
  font-size: 15px;
}

.notes-section {
  background: #fff9e6;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #E8C48A;
}

.notes-section h4 {
  color: #E8C48A;
}

.has-notes-indicator {
  font-size: 12px;
  margin-left: 4px;
  opacity: 0.8;
}

/* ===== COMPACT CALENDAR BUTTON ===== */

.btn-calendar-toggle {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #9DB8CD;
  font-weight: 600;
  font-size: 14px;
  width: 100%;
}

.btn-calendar-toggle:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.btn-add-event-main {
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: white;
  font-weight: 600;
  font-size: 14px;
  width: 100%;
}

.btn-add-event-main:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.inline-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-month-nav h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  min-width: 140px;
  text-align: center;
}

.calendar-nav-btn {
  background: rgba(102, 126, 234, 0.1);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #9DB8CD;
}

.calendar-nav-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.1);
}

.btn-add-event {
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-add-event:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Calendar Popup */
.calendar-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.calendar-popup-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  max-width: 700px;
  max-height: 85vh;
  width: 90%;
  animation: popupSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.calendar-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.btn-close-popup {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #ef4444;
}

.btn-close-popup:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

.calendar-popup-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 16px;
  flex: 1;
  overflow: auto;
}

.popup-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(249, 250, 251, 0.5);
}

.calendar-popup-grid .calendar-day {
  aspect-ratio: 1;
  min-height: 0;
  padding: 8px;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  border: 1px solid rgba(229, 231, 235, 0.8);
  background: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  font-weight: 400;
}

.calendar-popup-grid .calendar-day:hover {
  background: rgba(102, 126, 234, 0.08);
  border-color: rgba(102, 126, 234, 0.3);
  z-index: 1;
}

.calendar-popup-grid .calendar-day.other-month {
  color: #d1d5db;
  background: transparent;
}

.calendar-popup-grid .calendar-day.other-month:hover {
  background: rgba(102, 126, 234, 0.05);
}

.calendar-popup-grid .calendar-day.today {
  background: #9DB8CD;
  color: white;
  font-weight: 600;
  border-color: #9DB8CD;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.calendar-popup-grid .calendar-day.today:hover {
  background: #5a67d8;
}

.calendar-popup-grid .calendar-day.has-events::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9DB8CD;
}

.calendar-popup-grid .calendar-day.today.has-events::after {
  background: white;
}

.calendar-popup-grid .calendar-day-number {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: block;
}

/* Upcoming Events Compact */
.upcoming-events-compact {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upcoming-events-compact:hover {
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.upcoming-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.upcoming-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upcoming-count {
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
  background: #9DB8CD;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-small:hover {
  background: #D09B8D;
  transform: translateY(-1px);
}

#upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#upcoming-list .agenda-item {
  margin: 0;
}

/* ===== AGENDA STYLES ===== */

/* Agenda Layout */
.agenda-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  margin-top: 20px;
}

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

/* Mini Calendar Widget */
.agenda-calendar {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.calendar-nav {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #9DB8CD;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.calendar-nav:hover {
  background: #f0f0f0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #7f8c8d;
  padding: 8px 0;
}

.calendar-day {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  border: 1px solid #e8e8e8;
  background: white;
}

.calendar-day:hover {
  background: #f8f9fa;
  border-color: #9DB8CD;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.calendar-day.other-month {
  color: #bdc3c7;
  background: #fafafa;
}

.calendar-day.today {
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  color: white;
  font-weight: 600;
  border-color: #9DB8CD;
}

.calendar-day.today .calendar-day-number {
  color: white;
}

.calendar-day.today .calendar-event {
  background: rgba(255, 255, 255, 0.95);
}

.calendar-day-number {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  width: 100%;
  text-align: left;
}

.calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  flex: 1;
  overflow: hidden;
}

.calendar-event {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 11px;
  border-left: 3px solid #9DB8CD;
  transition: all 0.2s;
  cursor: pointer;
}

.calendar-event:hover {
  background: #e8f0fe;
  transform: translateX(2px);
}

.calendar-event-icon {
  font-size: 10px;
  flex-shrink: 0;
}

.calendar-event-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  color: #2c3e50;
  font-weight: 500;
}

/* Event type color coding */
.calendar-event.deadline {
  border-left-color: #D9A09A;
  background: #fee;
}

.calendar-event.interview {
  border-left-color: #E8C48A;
  background: #fff4e6;
}

.calendar-event.follow-up {
  border-left-color: #3498db;
  background: #e3f2fd;
}

.calendar-event.meeting {
  border-left-color: #9b59b6;
  background: #f3e5f5;
}

.calendar-event.reminder {
  border-left-color: #B5D4A8;
  background: #e8f5e9;
}

.calendar-event-more {
  font-size: 10px;
  color: #7f8c8d;
  font-weight: 600;
  padding: 2px 6px;
  text-align: center;
  background: #ecf0f1;
  border-radius: 3px;
  margin-top: 2px;
}

/* Calendar drag-and-drop states */
.calendar-day.drag-over {
  background: #e3f2fd !important;
  border: 2px dashed #9DB8CD;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Drag notification */
.drag-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drag-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Calendar Popover */
.calendar-popover {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 0;
  z-index: 9999;
  min-width: 280px;
  max-width: 320px;
  animation: popoverSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e0e0e0;
}

@keyframes popoverSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popover-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  color: white;
  font-weight: 600;
  font-size: 13px;
  border-radius: 12px 12px 0 0;
}

.popover-events {
  padding: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.popover-event {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  margin-bottom: 6px;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid #9DB8CD;
}

.popover-event:last-child {
  margin-bottom: 0;
}

.popover-event:hover {
  background: #e8f0fe;
  transform: translateX(4px);
}

.popover-event-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.popover-event-details {
  flex: 1;
  min-width: 0;
}

.popover-event-title {
  font-weight: 600;
  font-size: 13px;
  color: #2c3e50;
  margin-bottom: 2px;
  word-wrap: break-word;
}

.popover-event-time {
  font-size: 11px;
  color: #7f8c8d;
  display: block;
}

/* Popover event type colors */
.popover-event.deadline {
  border-left-color: #D9A09A;
  background: #fee;
}

.popover-event.deadline:hover {
  background: #fdd;
}

.popover-event.interview {
  border-left-color: #E8C48A;
  background: #fff4e6;
}

.popover-event.interview:hover {
  background: #ffe8cc;
}

.popover-event.follow-up {
  border-left-color: #3498db;
  background: #e3f2fd;
}

.popover-event.follow-up:hover {
  background: #bbdefb;
}

.popover-event.meeting {
  border-left-color: #9b59b6;
  background: #f3e5f5;
}

.popover-event.meeting:hover {
  background: #e1bee7;
}

.popover-event.reminder {
  border-left-color: #B5D4A8;
  background: #e8f5e9;
}

.popover-event.reminder:hover {
  background: #c8e6c9;
}

/* Timeline View */
.agenda-timeline {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Today's Focus */
.todays-focus {
  margin-bottom: 32px;
}

.todays-focus h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
}

.focus-group {
  margin-bottom: 16px;
}

.focus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 600;
  color: #7f8c8d;
  font-size: 14px;
  user-select: none;
}

.focus-header:hover {
  color: #9DB8CD;
}

.toggle-icon {
  transition: transform 0.3s;
}

.focus-group.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.focus-group.collapsed .focus-content {
  display: none;
}

.focus-content {
  margin-top: 8px;
}

.focus-item-label {
  font-size: 12px;
  font-weight: 600;
  color: #95a5a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Timeline Divider */
.timeline-divider {
  display: flex;
  align-items: center;
  margin: 32px 0 24px 0;
}

.timeline-divider::before,
.timeline-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e1e8ed;
}

.timeline-divider span {
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Today Indicator */
.today-indicator {
  display: flex;
  align-items: center;
  margin: 16px 0;
  position: relative;
}

.today-indicator::before {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, #9DB8CD, transparent);
}

.today-indicator span {
  padding: 4px 12px;
  background: #9DB8CD;
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin: 0 12px;
}

/* Timeline List */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Agenda Item */
.agenda-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: white;
  border: 1px solid #e8e8e8;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.agenda-item:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #9DB8CD;
}

.agenda-item.completed {
  opacity: 0.6;
  background: #f5f5f5;
}

.agenda-item.overdue {
  background: #fff5f5;
  border-left: 4px solid #D9A09A;
  border-color: #ffcccb;
}

/* Checkbox */
.agenda-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #bdc3c7;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.agenda-checkbox:hover {
  border-color: #9DB8CD;
}

.agenda-checkbox.checked {
  background: #A8C89A;
  border-color: #A8C89A;
}

.agenda-checkbox.checked::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* Priority Badge */
.priority-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.priority-badge.deadline {
  background: #D9A09A;
}

.priority-badge.interview {
  background: #E8C48A;
}

.priority-badge.follow-up {
  background: #3498db;
}

.priority-badge.meeting {
  background: #9b59b6;
}

.priority-badge.reminder {
  background: #1abc9c;
}

.priority-badge.other {
  background: #95a5a6;
}

/* Agenda Item Content */
.agenda-item-content {
  flex: 1;
  min-width: 0;
}

.agenda-item-title {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 2px;
}

.agenda-item.completed .agenda-item-title {
  text-decoration: line-through;
}

.agenda-item-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #7f8c8d;
}

.agenda-item-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Quick Add Button on Job Cards */
.job-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-quick-reminder {
  padding: 4px 8px;
  background: #ecf0f1;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  color: #9DB8CD;
  font-weight: 500;
}

.btn-quick-reminder:hover {
  background: #9DB8CD;
  color: white;
}

/* Empty State */
.agenda-empty {
  text-align: center;
  padding: 40px;
  color: #95a5a6;
}

.agenda-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* ===== VIEW TOGGLE - WORLD CLASS NAVIGATION ===== */
.view-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  background: var(--color-surface, #FFFFFF);
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(157, 184, 205, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  width: fit-content;
  border: 1px solid var(--color-border-light, rgba(209, 201, 191, 0.2));
  position: relative;
  overflow: hidden;
}

.view-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(157, 184, 205, 0) 0%,
    rgba(157, 184, 205, 0.3) 50%,
    rgba(208, 155, 141, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-toggle:hover::before {
  opacity: 1;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--color-text-secondary, #657786);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

.view-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center,
    rgba(157, 184, 205, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-toggle-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.view-toggle-btn:hover {
  background: linear-gradient(135deg,
    rgba(157, 184, 205, 0.08) 0%,
    rgba(208, 155, 141, 0.06) 100%
  );
  color: var(--color-primary, #9DB8CD);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(157, 184, 205, 0.15);
}

.view-toggle-btn:active {
  transform: translateY(0);
  transition: transform 0.1s;
}

.view-toggle-btn.active {
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(157, 184, 205, 0.35), 0 2px 6px rgba(208, 155, 141, 0.2);
  transform: translateY(0);
}

.view-toggle-btn.active::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 70%
  );
  animation: ripple 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.view-toggle-btn svg {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-toggle-btn:hover svg {
  transform: scale(1.1) rotate(2deg);
}

.view-toggle-btn.active svg {
  transform: scale(1.05);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Calendar button special styling - smaller and refined */
.view-toggle-calendar {
  min-width: 110px;
  padding: 11px 18px;
  border-left: 1px solid var(--color-border-light, rgba(209, 201, 191, 0.15));
  margin-left: 4px;
}

.view-toggle-calendar svg {
  width: 16px;
  height: 16px;
}

.view-toggle-calendar:hover {
  background: linear-gradient(135deg,
    rgba(157, 184, 205, 0.06) 0%,
    rgba(208, 155, 141, 0.04) 100%
  );
}

/* ===== UNIFIED TIMELINE VIEW ===== */
.timeline-view {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #ecf0f1;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

.filter-group select {
  padding: 6px 12px;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-group select:focus {
  outline: none;
  border-color: #9DB8CD;
}

/* Timeline Swim Lanes */
.timeline-swim-lane {
  margin-bottom: 32px;
}

.swim-lane-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e1e8ed;
}

.swim-lane-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.swim-lane-count {
  background: #9DB8CD;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.swim-lane-subtitle {
  font-size: 13px;
  color: #95a5a6;
  margin-left: auto;
}

/* Timeline Item */
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #9DB8CD;
  transition: all 0.2s;
}

.timeline-item:hover {
  background: #ecf0f1;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item.overdue {
  border-left-color: #D9A09A;
  background: #fee;
}

.timeline-item.completed {
  opacity: 0.6;
  border-left-color: #A8C89A;
}

/* Timeline Icon */
.timeline-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-icon.job {
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  color: white;
}

.timeline-icon.interview {
  background: linear-gradient(135deg, #E8C48A 0%, #E0B899 100%);
  color: white;
}

.timeline-icon.deadline {
  background: linear-gradient(135deg, #D9A09A 0%, #C89090 100%);
  color: white;
}

.timeline-icon.follow-up {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

.timeline-icon.reminder {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  color: white;
}

/* Timeline Content */
.timeline-item-content {
  flex: 1;
  min-width: 0;
}

.timeline-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.timeline-item-title {
  font-weight: 600;
  color: #2c3e50;
  font-size: 15px;
  line-height: 1.4;
}

.timeline-item.completed .timeline-item-title {
  text-decoration: line-through;
}

.timeline-item-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.timeline-item-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.timeline-item-company {
  font-weight: 500;
  color: #9DB8CD;
}

/* Job Progress Bar */
.job-progress {
  margin-top: 8px;
}

.job-progress-label {
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 4px;
}

.job-progress-bar {
  height: 6px;
  background: #ecf0f1;
  border-radius: 3px;
  overflow: hidden;
}

.job-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #9DB8CD 0%, #D09B8D 100%);
  border-radius: 3px;
  transition: width 0.3s;
}

/* Timeline Actions */
.timeline-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.timeline-action-btn {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #e1e8ed;
  background: white;
  color: #657786;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.timeline-action-btn:hover {
  border-color: #9DB8CD;
  color: #9DB8CD;
  background: #f8f9ff;
}

.timeline-action-btn.primary {
  background: #9DB8CD;
  color: white;
  border-color: #9DB8CD;
}

.timeline-action-btn.primary:hover {
  background: #D09B8D;
}

/* Empty Timeline */
.timeline-empty {
  text-align: center;
  padding: 60px 20px;
  color: #95a5a6;
}

.timeline-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* ===== FLOATING QUICK ADD BUTTON ===== */
.btn-floating-quick-add {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  color: white;
  border: none;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  font-size: 24px;
}

.btn-floating-quick-add:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.btn-floating-quick-add:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-floating-quick-add svg {
  transition: transform 0.3s;
}

.btn-floating-quick-add:hover svg {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .btn-floating-quick-add {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
}

/* ===== FLOATING HELP BUTTON ===== */
.btn-floating-help {
  position: fixed;
  bottom: 32px;
  right: 112px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D8B8D8 0%, #D09B9B 100%);
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.btn-floating-help:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 28px rgba(245, 87, 108, 0.4);
}

.btn-floating-help:active {
  transform: translateY(-2px) scale(1.02);
}

@media (max-width: 768px) {
  .btn-floating-help {
    bottom: 20px;
    right: 88px;
    width: 48px;
    height: 48px;
  }
}

/* ===== KEYBOARD SHORTCUTS MODAL ===== */
.shortcuts-modal-content {
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.shortcuts-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #9DB8CD;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.shortcut-item:last-child {
  border-bottom: none;
}

.shortcut-item kbd {
  display: inline-block;
  padding: 6px 10px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #9DB8CD;
  background: #f5f5f7;
  border: 1px solid #d1d1d6;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin: 0 4px;
}

.shortcut-item span {
  flex: 1;
  text-align: right;
  color: #666;
  font-size: 14px;
}

.shortcuts-tips {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shortcuts-tips li {
  padding: 10px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid #eee;
}

.shortcuts-tips li:last-child {
  border-bottom: none;
}

.shortcuts-tips li:before {
  content: "💡";
  margin-right: 8px;
}

@media (max-width: 768px) {
  .shortcuts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== FILE DROP ZONE ===== */
.file-drop-zone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #f9fafb;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-drop-zone:hover {
  border-color: #9DB8CD;
  background: #f5f7ff;
}

.file-drop-zone.drag-over {
  border-color: #9DB8CD;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.drop-zone-content {
  pointer-events: none;
}

.drop-zone-content svg {
  margin: 0 auto 16px;
  color: #9DB8CD;
  opacity: 0.8;
}

.drop-zone-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.drop-zone-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 8px 0;
}

.drop-zone-content button {
  pointer-events: all;
  margin: 12px 0;
}

.drop-zone-hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 8px 0 0 0;
}

/* ===== CONFIRMATION MODAL ===== */
.confirm-modal-content {
  max-width: 450px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
}

.btn-danger {
  background: linear-gradient(135deg, #D09B9B 0%, #D8B8D8 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* ==================== UPGRADE MODAL ==================== */
.upgrade-modal-content {
  max-width: 900px;
  padding: 0;
}

.upgrade-modal-body {
  padding: 3rem 2.5rem;
}

.upgrade-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.upgrade-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upgrade-message {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.pricing-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.tier-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.current-tier {
  opacity: 0.8;
}

.recommended-tier {
  border: 2px solid var(--color-primary);
  background: linear-gradient(135deg, rgba(212, 115, 94, 0.05) 0%, rgba(184, 81, 61, 0.05) 100%);
  box-shadow: 0 8px 24px rgba(212, 115, 94, 0.2);
}

.tier-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #6b7280;
  color: white;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-dark) 100%);
  color: white;
  padding: 6px 20px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(212, 115, 94, 0.3);
}

.tier-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--color-text-primary);
  text-align: center;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 1.5rem 0;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.tier-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

.tier-features li:last-child {
  border-bottom: none;
}

.feature-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-icon.check {
  color: #10b981;
  font-weight: 700;
}

.usage-info {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.upgrade-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(212, 115, 94, 0.3);
  transition: all 0.3s ease;
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 115, 94, 0.4);
}

.upgrade-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.upgrade-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .pricing-comparison {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .upgrade-modal-body {
    padding: 2rem 1.5rem;
  }

  .upgrade-header h2 {
    font-size: 2rem;
  }

  .price {
    font-size: 2rem;
  }
}

.btn-danger:active {
  transform: translateY(0);
}

#confirm-message {
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* ===== STATISTICS DASHBOARD (Glassmorphism) ===== */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  padding: 0 4px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9DB8CD 0%, #D09B8D 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.stat-card.success-rate {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
  backdrop-filter: blur(20px);
  color: white;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.stat-card.success-rate:hover {
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.stat-card.success-rate .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

.stat-icon {
  font-size: 32px;
  line-height: 1;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card.success-rate .stat-value {
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
}

@media (max-width: 1200px) {
  .stats-dashboard {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
    gap: 12px;
  }

  .stat-icon {
    font-size: 24px;
  }

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

  .stat-label {
    font-size: 11px;
  }
}

/* ===== FILTERS AND SORTING BAR ===== */
.filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.filters-section {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-left: 12px;
}

.filter-btn {
  padding: 10px 18px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  border-color: #9DB8CD;
  color: #9DB8CD;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  border-color: transparent;
  color: white;
}

.filter-count {
  background: rgba(0, 0, 0, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  min-width: 24px;
  text-align: center;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
}

.sort-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 24px;
  margin-left: 24px;
  border-left: 2px solid #e5e7eb;
}

.sort-section label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
}

#sort-select {
  padding: 8px 32px 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

#sort-select:hover {
  border-color: #9DB8CD;
}

#sort-select:focus {
  outline: none;
  border-color: #9DB8CD;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.icon-btn {
  padding: 8px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  border-color: #D09B9B;
  background: #fef2f2;
}

.icon-btn svg {
  stroke: #6b7280;
}

.icon-btn:hover svg {
  stroke: #D09B9B;
}

@media (max-width: 768px) {
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-section {
    justify-content: center;
  }

  .sort-section {
    justify-content: space-between;
  }

  .filter-btn {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* ===== LANGUAGE SELECTOR - SUBTLE & MINIMALISTIC ===== */
.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: var(--space-4); /* Add breathing room from edge */
}

.language-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Glassmorphism Style */
  background: rgba(var(--color-primary-rgb), 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
  border-radius: var(--radius-lg);

  padding: 10px 36px 10px 14px;
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: var(--weight-medium);
  font-family: inherit;
  cursor: pointer;

  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Subtle Shadow */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.language-select:hover {
  background: rgba(var(--color-primary-rgb), 0.1);
  border-color: rgba(var(--color-primary-rgb), 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.12);
}

.language-select:focus {
  outline: none;
  border-color: rgba(var(--color-primary-rgb), 0.4);
  box-shadow:
    0 4px 16px rgba(var(--color-primary-rgb), 0.15),
    0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
}

/* Custom Dropdown Arrow */
.language-switcher::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-primary);
  font-size: 12px;
  transition: all 300ms ease;
}

.language-switcher:hover::after {
  color: var(--color-primary-dark);
}

/* Remove default arrow in IE */
.language-select::-ms-expand {
  display: none;
}

/* ===== DARK MODE TOGGLE BUTTON - Premium Micro-Interactions ===== */
.btn-dark-mode {
  padding: 10px 12px;
  background: rgba(var(--color-primary-rgb), 0.1);
  border: 2px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.btn-dark-mode::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15), rgba(var(--color-accent-dark), 0.15));
  opacity: 0;
  transition: opacity 400ms ease;
}

.btn-dark-mode:hover::before {
  opacity: 1;
}

.btn-dark-mode:hover {
  background: rgba(var(--color-primary-rgb), 0.18);
  border-color: rgba(var(--color-primary-rgb), 0.4);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.2);
}

.btn-dark-mode:active {
  transform: translateY(0) scale(0.98);
}

.btn-dark-mode svg {
  stroke: var(--color-primary-dark);
  position: relative;
  z-index: 1;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dark-mode:hover svg {
  stroke: var(--color-primary);
  transform: rotate(180deg);
}

/* ===== DARK MODE STYLES - Standard Dark Mode ===== */
body.dark-mode {
  background: #0f0f0f;
}

body.dark-mode .container {
  color: #e4e4e7;
}

body.dark-mode header {
  background: rgba(26, 26, 28, 0.85);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

body.dark-mode header::before {
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.3) 0%,
    rgba(var(--color-accent-dark), 0.3) 50%,
    rgba(var(--color-tertiary-dark), 0.3) 100%
  );
}

body.dark-mode .stat-card,
body.dark-mode .filters-bar,
body.dark-mode .job-card,
body.dark-mode .event-card,
body.dark-mode .form-card,
body.dark-mode .modal-content {
  background: #1a1a1a;
  color: #e4e4e7;
  border-color: #2a2a2a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

body.dark-mode .stat-label,
body.dark-mode .sort-section label {
  color: #a1a1aa;
}

body.dark-mode .filter-btn {
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: #a1a1aa;
}

body.dark-mode .filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
}

body.dark-mode .filter-btn.active {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent-dark) 100%);
  color: white;
}

body.dark-mode #sort-select,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: #e4e4e7;
}

body.dark-mode .job-card:hover,
body.dark-mode .stat-card:hover {
  box-shadow: 0 8px 20px rgba(212, 165, 154, 0.2);
}

body.dark-mode .column-header {
  background: #1a1a1a;
  color: #e4e4e7;
}

body.dark-mode .calendar-day.today {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

body.dark-mode .btn-secondary {
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: #e4e4e7;
}

body.dark-mode .btn-secondary:hover {
  background: #262626;
  border-color: var(--color-primary);
}

body.dark-mode .icon-btn {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .drop-zone {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .drop-zone:hover {
  background: #262626;
  border-color: var(--color-primary);
}

body.dark-mode .agenda-item {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .agenda-item:hover {
  background: #262626;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(212, 165, 154, 0.2);
}

body.dark-mode .agenda-item.overdue {
  background: #1f1a1a;
  border-color: var(--color-error);
}

body.dark-mode .kanban-column {
  background: #141414 !important;
  border-color: #2a2a2a !important;
}

body.dark-mode .kanban-cards {
  background: transparent !important;
}

body.dark-mode .agenda-calendar-widget,
body.dark-mode .upcoming-events {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .upcoming-events h3 {
  border-bottom-color: #2a2a2a;
}

/* Dark mode glassmorphism */
body.dark-mode .inline-calendar-widget,
body.dark-mode .upcoming-events-section {
  background: rgba(26, 26, 26, 0.9);
  border-color: rgba(42, 42, 42, 0.5);
}

body.dark-mode .calendar-month-nav h3,
body.dark-mode .upcoming-events-section h4 {
  color: #e4e4e7;
}

body.dark-mode .calendar-nav-btn {
  background: rgba(102, 126, 234, 0.2);
  color: #8b9bea;
}

body.dark-mode .calendar-nav-btn:hover {
  background: rgba(102, 126, 234, 0.3);
}

body.dark-mode .inline-calendar-grid .calendar-day {
  background: rgba(26, 27, 38, 0.5);
  color: #e4e6eb;
}

body.dark-mode .inline-calendar-grid .calendar-day:hover {
  background: rgba(102, 126, 234, 0.2);
}

body.dark-mode .stat-card {
  background: rgba(36, 40, 59, 0.7);
  border-color: rgba(65, 69, 88, 0.3);
}

body.dark-mode .stat-card::before {
  background: linear-gradient(90deg, #8b9bea 0%, #9b7bc2 100%);
}

body.dark-mode .kanban-card {
  background: #332E29 !important;
  backdrop-filter: none !important;
  border-color: #4A423A !important;
  color: #E8E4DF !important;
}

body.dark-mode .kanban-card h4 {
  color: #E8E4DF !important;
}

body.dark-mode .kanban-card p,
body.dark-mode .kanban-card small {
  color: #B8AFA5 !important;
}

body.dark-mode .kanban-card::after {
  background: linear-gradient(135deg, rgba(212, 165, 154, 0.05) 0%, rgba(229, 181, 168, 0.05) 100%);
}

body.dark-mode .btn-card-delete {
  background: rgba(239, 68, 68, 0.95);
}

body.dark-mode .btn-card-delete:hover {
  background: rgba(220, 38, 38, 1);
}

body.dark-mode .search-input {
  background: rgba(26, 26, 28, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

body.dark-mode .search-input:focus {
  background: rgba(26, 26, 28, 0.95);
  border-color: rgba(var(--color-primary-rgb), 0.4);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(var(--color-primary-rgb), 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

body.dark-mode .search-input::placeholder {
  color: #71717a;
}

body.dark-mode .search-icon {
  color: #71717a;
}

body.dark-mode .search-container:focus-within .search-icon {
  color: var(--color-primary-light);
}

body.dark-mode .search-kbd {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .search-results {
  background: #24283b;
  border-color: #414558;
}

body.dark-mode .search-result-item:hover {
  background: #1a1b26;
}

body.dark-mode .modal {
  background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .shortcut-item {
  border-color: #414558;
}

body.dark-mode .shortcuts-tips li {
  border-color: #414558;
  color: #9ca3af;
}

/* Dark Mode - Calendar Popup Components */
body.dark-mode .btn-calendar-toggle {
  background: rgba(36, 40, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
}

body.dark-mode .btn-calendar-toggle:hover {
  background: rgba(36, 40, 59, 0.95);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

body.dark-mode .btn-add-event-main {
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
}

body.dark-mode .btn-add-event-main:hover {
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

body.dark-mode .calendar-popup {
  background: rgba(0, 0, 0, 0.6);
}

body.dark-mode .calendar-popup-content {
  background: rgba(26, 27, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark-mode .calendar-popup-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(36, 40, 59, 0.5);
}

body.dark-mode .calendar-popup-header h3 {
  color: #e2e8f0;
}

body.dark-mode .btn-close-popup {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

body.dark-mode .btn-close-popup:hover {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

body.dark-mode .popup-day-header {
  color: #9ca3af;
  background: rgba(36, 40, 59, 0.5);
}

body.dark-mode .calendar-popup-grid .calendar-day {
  background: rgba(36, 40, 59, 0.6);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .calendar-popup-grid .calendar-day:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .calendar-popup-grid .calendar-day.today {
  background: #9DB8CD;
  color: white;
  border-color: #9DB8CD;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

body.dark-mode .calendar-popup-grid .calendar-day.today:hover {
  background: #5a67d8;
}

body.dark-mode .calendar-popup-grid .calendar-day.other-month {
  color: #4b5563;
  background: transparent;
}

body.dark-mode .calendar-popup-grid .calendar-day.other-month:hover {
  background: rgba(102, 126, 234, 0.08);
}

body.dark-mode .calendar-popup-grid .calendar-day.has-events::after {
  background: #a5b4fc;
}

body.dark-mode .upcoming-events-compact {
  background: rgba(36, 40, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .upcoming-header h4 {
  color: #e2e8f0;
}

body.dark-mode .upcoming-count {
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  color: white;
}

body.dark-mode .upcoming-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .upcoming-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .upcoming-item-title {
  color: #e2e8f0;
}

body.dark-mode .upcoming-item-date {
  color: #94a3b8;
}

body.dark-mode .upcoming-empty {
  color: #64748b;
}

/* ===== MOBILE RESPONSIVENESS ===== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
  /* Container padding */
  .container {
    padding: 10px;
  }

  /* Header - stack elements */
  header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  header h1 {
    font-size: 20px;
    flex: 1 1 100%;
    margin-bottom: 8px;
  }

  .header-actions {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 8px;
  }

  /* Tabs - horizontal scroll */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 8px;
  }

  .tab {
    font-size: 13px;
    padding: 8px 16px;
    white-space: nowrap;
  }

  /* Statistics dashboard - 2 columns on mobile */
  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }

  .stat-card {
    padding: 14px;
  }

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

  .stat-label {
    font-size: 11px;
  }

  /* Filters bar - stack */
  .filters-bar {
    flex-direction: column;
    gap: 12px;
  }

  .filter-buttons {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
  }

  /* Kanban board - horizontal scroll */
  .kanban-board {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
  }

  .kanban-column {
    min-width: 280px;
    flex-shrink: 0;
  }

  .kanban-header {
    padding: 10px 12px;
    font-size: 13px;
  }

  .kanban-cards {
    min-height: 200px;
  }

  .kanban-card {
    padding: 10px;
    margin-bottom: 8px;
  }

  .kanban-card-title {
    font-size: 14px;
  }

  .kanban-card-subtitle {
    font-size: 12px;
  }

  /* Hide actions column on mobile */
  .actions-column {
    display: none;
  }

  /* Calendar popup - full width on mobile */
  .calendar-popup-content {
    max-width: 95%;
    width: 95%;
    max-height: 90vh;
  }

  .calendar-popup-header {
    padding: 12px 16px;
  }

  .calendar-popup-header h3 {
    font-size: 16px;
  }

  .calendar-popup-grid {
    padding: 12px;
  }

  .popup-day-header {
    font-size: 10px;
    padding: 6px 0;
  }

  .calendar-popup-grid .calendar-day {
    font-size: 13px;
    padding: 4px;
  }

  /* Forms - full width */
  .form-card {
    padding: 16px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 10px 12px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 18px;
    font-size: 14px;
  }

  /* Modals - full width on mobile */
  .modal-content {
    width: 95%;
    max-width: 95%;
    margin: 20px;
    padding: 20px;
  }

  /* Search - full width */
  .search-container {
    max-width: none;
    width: calc(100% - 32px);
    left: 16px;
    right: 16px;
  }

  .search-input {
    font-size: 14px;
    padding: 10px 12px 10px 40px;
  }

  /* Help button - adjust position */
  .help-button {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  /* Job cards */
  .job-card {
    padding: 14px;
  }

  .job-card h3 {
    font-size: 16px;
  }

  .job-card p {
    font-size: 13px;
  }

  /* Agenda layout - stack */
  .agenda-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Excel drop zone */
  .drop-zone {
    padding: 30px 20px;
  }

  .drop-zone-icon {
    width: 48px;
    height: 48px;
  }

  .drop-zone h3 {
    font-size: 16px;
  }

  .drop-zone p {
    font-size: 13px;
  }
}

/* Mobile phones (480px) */
@media (max-width: 480px) {
  /* Header - more compact */
  header h1 {
    font-size: 18px;
  }

  /* Statistics - single column */
  .stats-dashboard {
    grid-template-columns: 1fr;
  }

  /* Kanban columns - smaller */
  .kanban-column {
    min-width: 260px;
  }

  /* Calendar popup - more compact */
  .calendar-popup-content {
    max-width: 98%;
  }

  .calendar-popup-grid {
    padding: 8px;
  }

  .calendar-popup-grid .calendar-day {
    font-size: 12px;
    padding: 2px;
  }

  /* Buttons - full width */
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  /* Modal - larger on small screens */
  .modal-content {
    margin: 10px;
    padding: 16px;
  }

  /* Tabs - smaller text */
  .tab {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Filter buttons - smaller */
  .filter-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ===== AI ASSISTANT FEATURES ===== */

.ai-assistant-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-left: 4px solid #9DB8CD;
  margin-top: 20px;
}

.ai-assistant-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn-ai {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-ai:active {
  transform: translateY(0);
}

.btn-ai svg {
  flex-shrink: 0;
}

.ai-result-container {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

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

.ai-result-header {
  background: linear-gradient(135deg, #9DB8CD 0%, #D09B8D 100%);
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-result-header h5 {
  margin: 0;
  font-size: 16px;
}

.ai-result-actions {
  display: flex;
  gap: 8px;
}

.ai-result-content {
  background: white;
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
}

.ai-result-content pre {
  margin: 0;
  color: #2c3e50;
}

.ai-result-footer {
  background: #f9fafb;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  color: #6b7280;
}

.ai-result-footer p {
  margin: 4px 0;
}

.ai-disclaimer {
  color: #3498db !important;
  font-style: italic;
}

.ai-loading {
  background: white;
  padding: 40px 20px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top-color: #9DB8CD;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

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

.ai-loading p {
  color: #6b7280;
  font-size: 14px;
}

.ai-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.ai-error p {
  color: #dc2626;
  margin-bottom: 12px;
}

/* Dark mode for AI features */
body.dark-mode .ai-assistant-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-left-color: #8b9bea;
}

body.dark-mode .ai-result-content {
  background: #1a1b26;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .ai-result-content pre {
  color: #e2e8f0;
}

body.dark-mode .ai-result-footer {
  background: #24283b;
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

body.dark-mode .ai-loading {
  background: #1a1b26;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .ai-loading p {
  color: #9ca3af;
}

body.dark-mode .ai-error {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

body.dark-mode .ai-error p {
  color: #fca5a5;
}

/* Mobile responsive AI features */
@media (max-width: 768px) {
  .ai-assistant-buttons {
    flex-direction: column;
  }

  .btn-ai {
    width: 100%;
    justify-content: center;
  }

  .ai-result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-result-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .ai-result-content {
    max-height: 300px;
    padding: 16px;
  }
}

/* ==================== TABBED SETTINGS MODAL ==================== */
.settings-container {
  max-width: 1100px !important;
  width: 95% !important;
  max-height: 85vh;
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
  flex: 1;
}

/* Settings Horizontal Tabs Container */
.settings-tabs-container {
  width: 100%;
  background: rgba(var(--color-primary-rgb), 0.03);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
  padding: 0;
}

.settings-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.settings-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Settings Tab Buttons */
.settings-tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.settings-tab-btn:hover {
  background: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary-dark);
}

.settings-tab-btn.active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.05);
}

.settings-tab-btn .tab-icon {
  font-size: 18px;
  transition: transform 300ms ease;
}

.settings-tab-btn:hover .tab-icon {
  transform: scale(1.1);
}

.settings-tab-btn .tab-label {
  transition: all 300ms ease;
}

/* Settings Content Area */
.settings-content {
  flex: 1;
  padding: 30px 40px;
  overflow-y: auto;
  background: #ffffff;
}

.settings-tab {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

.settings-tab h3 {
  color: #24292e;
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}

.settings-tab .help-text {
  color: #586069;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    max-height: 100vh;
  }

  .settings-body {
    flex-direction: column;
  }

  .settings-tabs-container {
    padding: 0;
  }

  .settings-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .settings-tab-btn {
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    min-width: 90px;
    text-align: center;
    font-size: 12px;
  }

  .settings-tab-btn .tab-icon {
    font-size: 22px;
  }

  .settings-tab-btn .tab-label {
    font-size: 11px;
    line-height: 1.2;
  }

  .settings-content {
    padding: 20px;
  }

  .settings-tab h3 {
    font-size: 20px;
  }
}

/* ============================================
   BRANDED LOADING & MICRO-INTERACTIONS
   ============================================ */

/* Branded Loading Spinner */
.careerflow-loader {
  display: inline-block;
  width: 48px;
  height: 48px;
  position: relative;
}

.careerflow-loader::before,
.careerflow-loader::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--color-primary);
  animation: brandedSpin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.careerflow-loader::after {
  border-top-color: var(--color-accent);
  animation-delay: 0.3s;
  animation-duration: 1.5s;
}

@keyframes brandedSpin {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}

/* Branded Loading Container */
.branded-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  gap: var(--space-6);
}

.branded-loading-state .careerflow-loader {
  width: 64px;
  height: 64px;
}

.branded-loading-text {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ============================================
   BRANDED EMPTY STATES
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

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

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-6);
  opacity: 0.5;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.empty-state-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.empty-state-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 400px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.empty-state-action {
  margin-top: var(--space-4);
}

/* ============================================
   BRANDED SUCCESS STATES
   ============================================ */

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-success-light) 0%, var(--color-success) 100%);
  margin: 0 auto var(--space-6);
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-checkmark::before {
  content: '✓';
  font-size: 3rem;
  color: white;
  font-weight: var(--weight-bold);
  animation: checkmarkDraw 0.5s 0.2s ease-out;
  animation-fill-mode: both;
}

@keyframes checkmarkDraw {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ============================================
   BRANDED PROGRESS BAR
   ============================================ */

.branded-progress {
  width: 100%;
  height: 8px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.branded-progress-bar {
  height: 100%;
  background: linear-gradient(90deg,
    var(--color-primary) 0%,
    var(--color-accent) 50%,
    var(--color-primary) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  animation: shimmer 2s linear infinite;
}

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

/* ============================================
   BRANDED TOOLTIPS
   ============================================ */

.branded-tooltip {
  position: relative;
  display: inline-block;
}

.branded-tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent-dark) 100%);
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.branded-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-primary-dark);
  opacity: 0;
  transition: all var(--transition-base);
}

.branded-tooltip:hover::before,
.branded-tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}

/* ============================================
   BRANDED BADGE SYSTEM
   ============================================ */

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent-light) 100%);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.brand-badge.badge-new {
  background: linear-gradient(135deg, var(--color-info-light) 0%, var(--color-tertiary-light) 100%);
  color: var(--color-tertiary-dark);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(168, 197, 205, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(168, 197, 205, 0);
  }
}

.brand-badge.badge-hot {
  background: linear-gradient(135deg, var(--color-warning-light) 0%, var(--color-accent-light) 100%);
  color: var(--color-accent-dark);
}

.brand-badge.badge-premium {
  background: linear-gradient(135deg, #F5E6D3 0%, #E5D5C5 100%);
  color: #8B7355;
  border: 1px solid rgba(139, 115, 85, 0.2);
}

/* ============================================
   BRANDED CARD HOVER EFFECTS
   ============================================ */

.branded-card-hover {
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.branded-card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
  transition: left 0.5s ease;
}

.branded-card-hover:hover::before {
  left: 100%;
}

.branded-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl),
              0 0 0 1px rgba(var(--color-primary-rgb), 0.1);
}

/* ============================================
   DARK MODE - SETTINGS TABS
   ============================================ */

body.dark-mode .settings-tabs-container {
  background: rgba(26, 26, 26, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .settings-tab-btn {
  color: #a1a1aa;
}

body.dark-mode .settings-tab-btn:hover {
  background: rgba(var(--color-primary-rgb), 0.15);
  color: var(--color-primary-light);
}

body.dark-mode .settings-tab-btn.active {
  color: var(--color-primary-light);
  border-bottom-color: var(--color-primary-light);
  background: rgba(var(--color-primary-rgb), 0.1);
}

body.dark-mode .settings-content {
  background: #1a1a1a;
}

body.dark-mode .settings-tab h3 {
  color: #e4e4e7;
}

body.dark-mode .settings-tab .help-text {
  color: #a1a1aa;
}

/* ============================================
   RESPONSIVE BRANDING
   ============================================ */

@media (max-width: 768px) {
  .brand-title {
    font-size: var(--text-3xl);
  }

  .brand-tagline {
    font-size: var(--text-xs);
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .empty-state-icon {
    font-size: 3rem;
  }

  .success-checkmark {
    width: 60px;
    height: 60px;
  }

  .success-checkmark::before {
    font-size: 2rem;
  }
}

/* ============================================
   AUTHENTICATION STYLES
   ============================================ */

.auth-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.user-info {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.user-email {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.tier-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-free {
  background: #e5e7eb;
  color: #374151;
}

.tier-pro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.tier-team {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.auth-modal-content {
  max-width: 900px;
  width: 90%;
  padding: 3rem 2.75rem;
  border-radius: 16px;
  position: relative;
}

.auth-modal-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  letter-spacing: -0.02em;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text-muted);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

/* Two-Column Layout */
.auth-two-column {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.auth-form-column {
  flex: 1;
  min-width: 0;
}

.auth-features-column {
  flex: 1;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.auth-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem 0;
  font-weight: 400;
}

/* Input with Icon */
.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 3rem;
}

/* Forgot Password */
.forgot-password {
  text-align: right;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.forgot-password a {
  font-size: 0.875rem;
  color: #d4735e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-password a:hover {
  color: #b8513d;
  text-decoration: underline;
}

/* Feature Highlight */
.feature-highlight {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-icon-large {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-highlight h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.feature-highlight p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text);
}

.feature-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #10b981;
}

/* Social Proof */
.social-proof {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.social-proof p {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}

.social-proof strong {
  color: #d4735e;
  font-weight: 700;
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-two-column {
    flex-direction: column;
    gap: 2rem;
  }

  .auth-features-column {
    order: -1;
    padding: 1.5rem;
  }

  .feature-highlight {
    padding: 1rem;
  }

  .feature-icon-large {
    font-size: 2.5rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
  }

  .auth-modal-content {
    padding: 2rem 1.5rem;
  }

  .auth-modal-content h2 {
    font-size: 1.5rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: var(--text-base);
  transition: all 0.2s ease;
  background: #ffffff;
}

.form-group input:focus {
  outline: none;
  border-color: #d4735e;
  box-shadow: 0 0 0 4px rgba(212, 115, 94, 0.1);
  background: #ffffff;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.error-message {
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: var(--text-sm);
}

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #d4735e 0%, #b8513d 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(212, 115, 94, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 115, 94, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.auth-switch {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.auth-switch a {
  color: #d4735e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-switch a:hover {
  color: #b8513d;
  text-decoration: underline;
}

/* Dark mode auth styles */
body.dark-mode .user-email {
  color: #e4e4e7;
}

body.dark-mode .tier-free {
  background: #27272a;
  color: #d4d4d8;
}

body.dark-mode .auth-modal-content h2 {
  color: #e4e4e7;
}

body.dark-mode .form-group label {
  color: #e4e4e7;
}

body.dark-mode .form-group input {
  background: #18181b;
  border-color: #3f3f46;
  color: #e4e4e7;
}

body.dark-mode .form-group input:focus {
  border-color: var(--color-primary-light);
}

body.dark-mode .error-message {
  background: #450a0a;
  border-color: #7f1d1d;
  color: #fca5a5;
}

/* Auth divider (for social login) */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0 1.75rem 0;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px solid #e5e7eb;
}

.auth-divider span {
  padding: 0 1rem;
}

body.dark-mode .auth-divider {
  color: #71717a;
}

body.dark-mode .auth-divider::before,
body.dark-mode .auth-divider::after {
  border-bottom-color: #3f3f46;
}

/* Dark mode for two-column layout */
body.dark-mode .modal-close {
  color: #a1a1aa;
}

body.dark-mode .modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4e7;
}

body.dark-mode .auth-subtitle {
  color: #a1a1aa;
}

body.dark-mode .auth-features-column {
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
}

body.dark-mode .feature-highlight {
  background: #18181b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .feature-highlight h3 {
  color: #e4e4e7;
}

body.dark-mode .feature-highlight p {
  color: #a1a1aa;
}

body.dark-mode .feature-item {
  color: #e4e4e7;
}

body.dark-mode .social-proof {
  border-top-color: #3f3f46;
}

body.dark-mode .social-proof p {
  color: #a1a1aa;
}

body.dark-mode .trust-badge {
  background: #18181b;
  color: #a1a1aa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Google Sign-In Button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: white;
  color: #3c4043;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-bottom: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-google:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-google:active {
  background: #f3f4f6;
  transform: translateY(0);
}

.btn-google svg {
  flex-shrink: 0;
}

body.dark-mode .btn-google {
  background: #18181b;
  color: #e4e4e7;
  border-color: #3f3f46;
}

body.dark-mode .btn-google:hover {
  background: #27272a;
  border-color: #52525b;
}

.btn-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #0077B5;
  color: white;
  border: 1.5px solid #0077B5;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 119, 181, 0.2);
}

.btn-linkedin:hover {
  background: #006399;
  border-color: #006399;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
  transform: translateY(-1px);
}

.btn-linkedin:active {
  background: #005582;
  transform: translateY(0);
}

.btn-linkedin svg {
  flex-shrink: 0;
}

body.dark-mode .btn-linkedin {
  background: #0077B5;
  color: white;
  border-color: #0077B5;
}

body.dark-mode .btn-linkedin:hover {
  background: #006399;
  border-color: #006399;
}


/* ============================================
   USER MENU DROPDOWN (Option 2)
   ============================================ */

.user-menu-container {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.user-menu-trigger:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-primary);
}

.user-menu-trigger.active {
  background: var(--color-bg-secondary);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
  opacity: 0.5;
}

.user-menu-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 240px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  z-index: 1000;
  animation: dropdownSlideIn 0.2s ease;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown-header {
  padding: 0.75rem;
  margin-bottom: 0.25rem;
}

.user-dropdown-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.user-dropdown-email {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.5rem 0;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.user-dropdown-item:hover {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
}

.user-dropdown-item svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.user-dropdown-item:hover svg {
  opacity: 1;
}

.user-dropdown-logout {
  color: #dc2626;
}

.user-dropdown-logout:hover {
  background: #fee2e2;
  color: #991b1b;
}

/* Dark mode dropdown */
body.dark-mode .user-menu-trigger {
  border-color: #3f3f46;
  color: #e4e4e7;
}

body.dark-mode .user-menu-trigger:hover {
  background: #27272a;
  border-color: var(--color-primary-light);
}

body.dark-mode .user-menu-trigger.active {
  background: #27272a;
  border-color: var(--color-primary-light);
}

body.dark-mode .user-dropdown {
  background: #18181b;
  border-color: #3f3f46;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

body.dark-mode .user-dropdown-name {
  color: #e4e4e7;
}

body.dark-mode .user-dropdown-email {
  color: #a1a1aa;
}

body.dark-mode .user-dropdown-divider {
  background: #3f3f46;
}

body.dark-mode .user-dropdown-item {
  color: #e4e4e7;
}

body.dark-mode .user-dropdown-item:hover {
  background: #27272a;
  color: var(--color-primary-light);
}

body.dark-mode .user-dropdown-logout:hover {
  background: #450a0a;
  color: #fca5a5;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .user-menu-trigger {
    padding: 0.4rem 0.6rem;
  }
  
  .user-email {
    display: none;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
  }
  
  .user-dropdown {
    min-width: 220px;
  }
}

/* ==================== LANDING PAGE ==================== */

.landing-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.landing-container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  color: white;
}

.landing-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.landing-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: 300;
}

.landing-cta {
  margin-bottom: 4rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.landing-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* Dark mode adjustments for landing page */
body.dark-mode .landing-page {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-mode .feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile responsive for landing page */
@media (max-width: 768px) {
  .landing-title {
    font-size: 2.5rem;
  }

  .landing-subtitle {
    font-size: 1.2rem;
  }

  .landing-features {
    grid-template-columns: 1fr;
  }

  .btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* ==================== JOB DETAIL PAGE ==================== */

.job-detail-page {
  display: none;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.job-detail-header {
  margin-bottom: 2rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-back svg {
  flex-shrink: 0;
}

.job-detail-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.job-detail-main {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
}

.job-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.job-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
}

.job-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
}

.job-location,
.job-field {
  display: inline-block;
  margin-right: 1rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.match-score-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-secondary);
  border-radius: 10px;
}

.match-score-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.match-score {
  display: flex;
  justify-content: center;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.match-score.high .score-circle {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.match-score.medium .score-circle {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.match-score.low .score-circle {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.score-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

.job-section {
  margin-bottom: 2rem;
}

.job-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.job-section p {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
}

.strengths-list,
.gaps-list,
.recommendations-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.strength-item,
.gap-item,
.recommendation-item {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.strength-item {
  background: #ecfdf5;
  border-left: 3px solid #10b981;
  color: #065f46;
}

.gap-item {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  color: #991b1b;
}

.recommendation-item {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  color: #1e40af;
}

.job-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job-actions {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.job-meta {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.job-meta h4 {
  margin: 0 0 0.5rem 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-meta p {
  margin: 0 0 1.5rem 0;
  font-size: var(--text-base);
  color: var(--color-text);
}

.status-select {
  width: 100%;
  padding: 0.625rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg-primary);
  cursor: pointer;
}

.btn-secondary {
  background: var(--color-bg-secondary);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fee2e2;
  border-color: #dc2626;
}

/* Dark mode support */
body.dark-mode .strength-item {
  background: #064e3b;
  border-left-color: #10b981;
  color: #a7f3d0;
}

body.dark-mode .gap-item {
  background: #450a0a;
  border-left-color: #ef4444;
  color: #fca5a5;
}

body.dark-mode .recommendation-item {
  background: #1e3a8a;
  border-left-color: #3b82f6;
  color: #93c5fd;
}

body.dark-mode .btn-danger {
  background: #450a0a;
  color: #fca5a5;
  border-color: #7f1d1d;
}

body.dark-mode .btn-danger:hover {
  background: #7f1d1d;
  border-color: #ef4444;
}

/* Responsive design */
@media (max-width: 968px) {
  .job-detail-content {
    grid-template-columns: 1fr;
  }

  .job-detail-sidebar {
    order: -1;
  }
}

@media (max-width: 640px) {
  .job-detail-page {
    padding: 1rem;
  }

  .job-detail-main {
    padding: 1.5rem;
  }

  .job-header h1 {
    font-size: 1.5rem;
  }

  .job-header h2 {
    font-size: 1.25rem;
  }

  .score-circle {
    width: 100px;
    height: 100px;
  }

  .score-number {
    font-size: 2rem;
  }
}

