/* PathTechStaff Workforce PWA - Enhanced Main Styles */

/* Critical CSS - Load First */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1e293b;
  background-color: #ffffff;
  transition: none; /* Prevent flash during load */
  visibility: visible !important;
  opacity: 1 !important;
}

/* Header Critical Styles - Prevent Layout Shift */
#Header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 120px; /* Reserve space */
}

#Action_bar {
  background: #f8fafc;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  min-height: 40px;
}

#Top_bar {
  padding: 1rem 0;
  min-height: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#Top_bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu_wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-height: 60px; /* Prevent collapse */
}

#Top_bar #menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  min-height: 30px;
}

#Top_bar #menu li {
  margin: 0;
}

#Top_bar #menu li a {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
}

#Top_bar #menu li a i {
  font-size: 14px !important;
  width: 14px !important;
  text-align: center;
  display: inline-block !important;
  margin-right: 6px !important;
}

.candidate-nav {
  display: none;
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 30px;
}

.candidate-nav.show {
  display: flex !important;
}

.candidate-nav li a {
  color: #3b82f6 !important;
  font-weight: 600 !important;
  background: rgba(59, 130, 246, 0.1) !important;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
}

/* CSS Variables */
:root {
  /* Brand Colors */
  --primary: #3498db;
  --secondary: #2c3e50;
  --accent: #1abc9c;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --error: #ef4444;
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --text-white: #ffffff;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-surface: #ffffff;
  
  /* Border Colors */
  --border-light: #e2e8f0;
  --border-dark: #4a5568;
  
  /* Status Colors */
  --status-new: #3498db;
  --status-screening: #f39c12;
  --status-interview: #9b59b6;
  --status-offer: #1abc9c;
  --status-hired: #2ecc71;
  --status-rejected: #e74c3c;
  

  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-family-heading: 'Montserrat', var(--font-family);
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-loose: 1.75;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-Index */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
}

/* Dark Mode Variables */
.dark-mode {
  --primary: #60a5fa;
  --secondary: #e2e8f0;
  --accent: #34d399;
  
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e0;
  --text-muted: #94a3b8;
  --text-light: #1e293b;
  --text-white: #ffffff;
  
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-muted: #334155;
  --bg-dark: #ffffff;
  --bg-surface: #1e293b;
  
  --border-light: #334155;
  --border-dark: #cbd5e0;
}

/* Base Styles - Optimized for Performance */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  visibility: visible !important;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  visibility: visible !important;
  opacity: 1 !important;
  /* Remove transition during load to prevent FOUC */
  transition: none;
}

/* Re-enable transitions after load */
body.loaded {
  transition: all var(--transition-normal);
}

.dark-mode body {
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
  color: var(--text-primary);
}

h1 {
  font-size: var(--font-size-4xl);
}

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

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

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

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

h6 {
  font-size: var(--font-size-md);
}

p {
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  color: var(--accent);
  text-decoration: none;
}

.dark-mode a:hover {
  color: var(--accent);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.btn i {
  margin-right: 0.5rem;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #2980b9);
  border: none;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2980b9, var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
  color: var(--text-primary);
  background: transparent;
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.dark-mode .btn-secondary {
  color: var(--text-primary);
  border-color: var(--primary);
}

.dark-mode .btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-primary);
}

.btn-success {
  color: white;
  background-color: var(--success);
  border-color: var(--success);
}

.btn-success:hover {
  background-color: #27ae60;
  border-color: #27ae60;
}

.btn-danger {
  color: white;
  background-color: var(--danger);
  border-color: var(--danger);
}

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

.btn-future {
  color: white;
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-future:hover {
  background-color: #16a085;
  border-color: #16a085;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: var(--font-weight-medium);
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  background-clip: padding-box;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.dark-mode .form-control {
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border-color: var(--border-light);
}

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  background-color: var(--bg-primary);
}

.form-control.invalid {
  border-color: var(--danger);
}

.form-control.valid {
  border-color: var(--success);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px;
  background-color: var(--primary);
  color: white;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Theme Toggle */
.theme-toggle {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-muted);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
  color: var(--text-dark);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-index-modal);
}

.modal-content {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.dark-mode .modal-content {
  background-color: var(--bg-muted);
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  font-size: var(--font-size-xl);
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text-dark);
}

/* Card */
.card {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.dark-mode .card {
  background-color: var(--bg-muted);
}

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-semibold);
}

.card-text {
  color: var(--text-muted);
}

/* Glassmorphism Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
}

.dark-mode .glass-card {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Chat Assistant Styles */
.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  z-index: var(--z-index-modal);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode .chat-container {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-container.chat-open {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chat-container.chat-minimized {
  height: 60px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(52, 152, 219, 0.1);
  border-radius: 20px 20px 0 0;
}

.dark-mode .chat-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(96, 165, 250, 0.1);
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 12px;
}

.chat-title h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.chat-status {
  font-size: 12px;
  color: var(--success);
  margin-top: 2px;
}

.chat-controls {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.chat-controls button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.chat-controls button:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.chat-message.bot .message-avatar {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.chat-message.user .message-avatar {
  background: var(--text-muted);
  color: white;
}

.message-content {
  max-width: 80%;
}

.message-bubble {
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.chat-message.bot .message-bubble {
  background: rgba(52, 152, 219, 0.1);
  border-bottom-left-radius: 4px;
}

.chat-message.user .message-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
}

.chat-message.bot .message-time {
  text-align: left;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.typing-indicator {
  display: flex;
  gap: 2px;
}

.typing-indicator span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
}

.chat-input-container {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  gap: 8px;
}

.dark-mode .chat-input-container {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.voice-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.voice-btn:hover {
  background: rgba(52, 152, 219, 0.1);
  color: var(--primary);
}

.voice-btn.listening {
  background: var(--danger);
  color: white;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  resize: none;
  min-height: 20px;
  max-height: 80px;
}

.dark-mode .chat-input {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.chat-send {
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.chat-send:hover {
  background: #2980b9;
  transform: scale(1.05);
}

.chat-suggestions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  flex-wrap: wrap;
}

.suggestion-btn {
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.suggestion-btn:hover {
  background: var(--primary);
  color: white;
}

.chat-trigger-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
  transition: all var(--transition-normal);
  z-index: var(--z-index-fixed);
}

.chat-trigger-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-scale {
  animation: scaleIn 0.4s ease-out;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: var(--z-index-fixed);
  transition: width 0.1s ease;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.spinner-ring {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}

.spinner-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 32px;
  height: 32px;
  margin: 4px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  animation: spinner-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--primary) transparent transparent transparent;
}

.spinner-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.spinner-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.spinner-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes spinner-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Header Layout Fix */
#Action_bar {
  background: var(--bg-secondary);
  padding: 8px 0;
  font-size: 14px;
}

#Action_bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#Action_bar .contact_details {
  list-style: none;
  margin: 0;
  padding: 0;
}

#Action_bar .social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

#Action_bar .social li {
  margin: 0;
}

#Action_bar .social a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

#Action_bar .social a:hover {
  color: var(--text-primary);
}

#Top_bar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  padding: 15px 0;
}

#Top_bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#Top_bar .logo {
  flex-shrink: 0;
}

#Top_bar .logo img {
  height: 60px;
  width: auto;
  vertical-align: middle;
}

#Top_bar .menu_wrapper {
  display: flex;
  align-items: center;
}

#Top_bar #menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
  align-items: center;
}

#Top_bar #menu li {
  margin: 0;
}

#Top_bar #menu li a {
  padding: 10px 15px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#Top_bar #menu li.current-menu-item a {
  background: var(--primary);
  color: white;
}

#Top_bar #menu li a:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.responsive-menu-toggle {
  display: none;
  cursor: pointer;
  padding: 10px;
  font-size: 1.5rem;
  color: var(--text-primary);
  background: none;
  border: none;
}

@media (max-width: 1024px) {
  #Top_bar #menu {
    gap: 1rem;
  }
  
  #Top_bar #menu li a {
    font-size: 14px;
    padding: 5px 10px;
  }
  
  .candidate-nav {
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .responsive-menu-toggle {
    display: block;
  }
  
  #Top_bar #menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
    gap: 0;
    border-top: 1px solid var(--border-light);
  }
  
  #Top_bar #menu.active {
    display: flex;
  }
  
  #Top_bar #menu li {
    padding: 0;
    width: 100%;
  }
  
  #Top_bar #menu li a {
    display: block;
    padding: 12px 20px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
  }
  
  #Top_bar #menu li:last-child a {
    border-bottom: none;
  }
  
  #Action_bar .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000;
  width: 50px;
  height: 50px;
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Dark mode variables */
.dark-mode {
  --bg-primary: #1e293b;
  --bg-secondary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e0;
  --border-light: #475569;
  --card-bg: #334155;
}

/* Ensure content visibility in both modes */
.dark-mode .card,
.dark-mode .job-card,
.dark-mode .service-highlight,
.dark-mode .feature-card {
  background: var(--card-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-light) !important;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
  color: var(--text-primary) !important;
}

.dark-mode p, .dark-mode span, .dark-mode div {
  color: var(--text-secondary) !important;
}

#Top_bar .menu_wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#Top_bar #menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

#Top_bar #menu li {
  margin: 0;
}

#Top_bar #menu li a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

#Top_bar #menu li a i {
  font-size: 14px;
}

#Top_bar #menu li a:hover {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

#Top_bar #menu li.current-menu-item a {
  background: var(--primary);
  color: white;
}

/* Candidate Navigation */
.candidate-nav {
  display: none;
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.candidate-nav.show {
  display: flex !important;
}

.candidate-nav li a {
  color: var(--primary) !important;
  font-weight: 600 !important;
  background: rgba(59, 130, 246, 0.1) !important;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.candidate-nav li a i {
  font-size: 14px;
}

.candidate-nav li a:hover {
  background: rgba(59, 130, 246, 0.2) !important;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.d-flex {
  display: flex;
}

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

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

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

.align-items-center {
  align-items: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-5 { margin-left: 3rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Responsive */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: var(--font-size-2xl);
  }
  
  h2 {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
}