/* Reset and Variables */
:root {
  --bg-dark: #070913;
  --bg-darker: #04050a;
  --bg-card: rgba(13, 17, 33, 0.7);
  --bg-sidebar: #0a0e1a;
  --bg-glass: rgba(15, 22, 42, 0.65);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(139, 92, 246, 0.2);
  
  --primary: #8b5cf6;
  --primary-hover: #a78bfa;
  --primary-glow: rgba(139, 92, 246, 0.35);
  
  --secondary: #3b82f6;
  --secondary-hover: #60a5fa;
  
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.15);
  --accent-orange: #f59e0b;
  --accent-orange-bg: rgba(245, 158, 11, 0.15);
  --accent-red: #ef4444;
  --accent-red-bg: rgba(239, 68, 68, 0.15);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #4b5563;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-neon: 0 0 20px rgba(139, 92, 246, 0.25);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Glow Effects */
body::before, body::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
}
body::before {
  top: 10%;
  left: 20%;
  background: var(--primary);
}
body::after {
  bottom: 10%;
  right: 10%;
  background: var(--accent-cyan);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-glow);
}

/* App Container */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-glass);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-left: 0.5rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.logo-icon i {
  color: #fff;
  width: 22px;
  height: 22px;
}

.brand-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.menu-item i {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.menu-item:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateX(4px);
}

.menu-item.active {
  color: #fff;
  background: linear-gradient(90deg, var(--primary-glow), rgba(139, 92, 246, 0.05));
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: inset 0 0 8px rgba(139, 92, 246, 0.1);
}

.menu-item.active i {
  color: var(--primary-hover);
  filter: drop-shadow(0 0 5px var(--primary-hover));
}

.sidebar-footer {
  margin-top: auto;
}

.api-status-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.pulsing {
  animation: pulse-dot 1.5s infinite ease-in-out;
}

.status-dot.red { background-color: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); }
.status-dot.green { background-color: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }

.status-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Main Content Layout */
.main-content {
  flex-grow: 1;
  margin-left: 280px;
  padding: 2rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.header-search {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  width: 380px;
  transition: var(--transition);
}

.header-search:focus-within {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.header-search i {
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  width: 100%;
  font-size: 0.9rem;
}

.header-search input::placeholder {
  color: var(--text-dark);
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.notification-trigger {
  position: relative;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.notification-trigger:hover {
  color: var(--text-main);
}

.notification-trigger .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Glassmorphism Panel Template */
.glass-panel {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  background: linear-gradient(135deg, var(--primary-hover), #8b5cf6);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-text {
  background: transparent;
  color: var(--primary-hover);
  padding: 0;
}

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

.btn-danger {
  background-color: var(--accent-red-bg);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.btn-danger:hover {
  background-color: var(--accent-red);
  color: #fff;
}

.btn-full-width {
  width: 100%;
}

.cursor-pointer {
  cursor: pointer;
}

/* Tabs System */
.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

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

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.panel-title {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.panel-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

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

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  width: 24px;
  height: 24px;
}

.purple-glow { background: rgba(139, 92, 246, 0.1); color: var(--primary); border: 1px solid rgba(139, 92, 246, 0.2); }
.blue-glow { background: rgba(59, 130, 246, 0.1); color: var(--secondary); border: 1px solid rgba(59, 130, 246, 0.2); }
.green-glow { background: var(--accent-green-bg); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.2); }
.orange-glow { background: var(--accent-orange-bg); color: var(--accent-orange); border: 1px solid rgba(245, 158, 11, 0.2); }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Dashboard Layout */
.dashboard-columns {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
}

.column-card {
  padding: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.75rem;
}

.card-header h2 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
}

.loading-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 0;
}

/* Job lists and pipelines in dashboard */
.job-list-compact, .activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-item-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  transition: var(--transition);
}

.job-item-compact:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.2);
}

.job-meta-compact h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.job-meta-compact span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.job-actions-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.candidate-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background-color: var(--primary-glow);
  color: var(--primary-hover);
  font-weight: 600;
}

/* Timeline Activity */
.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.timeline-item.success::before {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.timeline-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.timeline-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.timeline-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modals System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  width: 100%;
  max-width: 580px;
  padding: 2rem;
  animation: modalSlideUp 0.3s ease;
}

.modal-card.large-modal {
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.btn-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: inset 0 0 5px rgba(139, 92, 246, 0.2);
  background-color: rgba(255, 255, 255, 0.04);
}

.required {
  color: var(--accent-red);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.25rem;
}

/* Jobs Grid */
.jobs-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.job-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-card-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
}

.job-card-dept {
  font-size: 0.75rem;
  color: var(--primary-hover);
  background-color: var(--primary-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.25rem;
}

.job-card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
  margin-top: auto;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed rgba(139, 92, 246, 0.3);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background-color: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
}

.upload-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-hover);
}

.upload-icon-wrapper i {
  width: 32px;
  height: 32px;
}

.upload-divider {
  display: block;
  margin: 0.75rem 0;
  color: var(--text-dark);
  font-size: 0.85rem;
}

/* Upload progress card */
.upload-progress-card {
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.progress-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
}

.progress-file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.progress-file-info i {
  color: var(--text-muted);
}

.progress-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Candidate profile */
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title-bar h2 {
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.search-filter-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  width: 250px;
}

.search-filter-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  width: 100%;
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.candidate-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.candidate-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.candidate-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
}

.candidate-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.candidate-skills-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.skill-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  color: var(--text-main);
}

.candidate-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 0.75rem;
}

/* Large Candidate Modal Styling */
.candidate-details-body {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 0.5rem;
}

.candidate-skills-block {
  margin-bottom: 1.5rem;
}

.candidate-skills-block h3, .candidate-timeline-block h3, .candidate-raw-text h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--primary);
  padding-left: 0.5rem;
}

.skills-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.timeline-item-details {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.timeline-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.timeline-role {
  font-weight: 700;
  color: #fff;
}

.timeline-duration {
  color: var(--primary-hover);
  font-weight: 500;
  font-size: 0.8rem;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.candidate-raw-text pre {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: monospace;
  font-size: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--text-muted);
}

/* Match Engine */
.matcher-container {
  padding: 2rem;
}

.matcher-setup-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.hidden-label {
  visibility: hidden;
}

.batch-progress-section {
  background-color: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.batch-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-bar-container {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  width: 0%;
  transition: width 0.3s ease;
}

.batch-console {
  background-color: #04050a;
  border-radius: 4px;
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.75rem;
  max-height: 100px;
  overflow-y: auto;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.console-log {
  line-height: 1.3;
}
.console-log.success { color: var(--accent-green); }
.console-log.error { color: var(--accent-red); }

/* Data Tables */
.table-responsive {
  overflow-x: auto;
}

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

.data-table th, .data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.data-table th {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.data-table td {
  font-size: 0.9rem;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}

.score-high { background-color: var(--accent-green-bg); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.2); }
.score-medium { background-color: var(--accent-orange-bg); color: var(--accent-orange); border: 1px solid rgba(245, 158, 11, 0.2); }
.score-low { background-color: var(--accent-red-bg); color: var(--accent-red); border: 1px solid rgba(239, 68, 68, 0.2); }

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
}

/* Shortlist layout split */
.shortlist-layout {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 1.5rem;
  align-items: start;
}

.shortlist-list-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.shortlist-card {
  padding: 1.25rem;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  transition: var(--transition);
}

.shortlist-card:hover {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(139, 92, 246, 0.2);
}

.shortlist-card.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.01));
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.shortlist-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.shortlist-candidate-name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
}

.shortlist-job-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.shortlist-detail-panel {
  padding: 2rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.shortlist-empty-detail {
  padding: 4rem;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.shortlist-empty-detail i {
  width: 48px;
  height: 48px;
  color: var(--text-dark);
}

.detail-score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.detail-score-circle .number {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 800;
}

.detail-score-circle .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 600;
}

.detail-section-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
}

.justification-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.skills-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skills-box {
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.skills-box h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skills-box.matched h4 { color: var(--accent-green); }
.skills-box.missing h4 { color: var(--accent-orange); }

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Settings Form */
.max-width-600 {
  max-width: 600px;
  margin: 0 auto;
}

.settings-card {
  padding: 2rem;
}

.settings-card h2 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrapper input {
  padding-right: 3rem;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.btn-toggle-password:hover {
  color: #fff;
}

.input-helper {
  font-size: 0.75rem;
  color: var(--text-dark);
  margin-top: 0.4rem;
  display: block;
}

.api-status-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.status-pill.status-red { background-color: var(--accent-red-bg); color: var(--accent-red); border: 1px solid rgba(239, 68, 68, 0.2); }
.status-pill.status-green { background-color: var(--accent-green-bg); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.2); }

.status-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.mt-4 { margin-top: 1.5rem; }

.guidance-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.guidance-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-glow);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.guidance-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.guidance-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .shortlist-layout {
    grid-template-columns: 1fr;
  }
  .shortlist-detail-panel {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 80px;
    padding: 1.5rem 0.5rem;
  }
  .sidebar-brand .brand-text, .menu-item span, .api-status-badge .status-text {
    display: none;
  }
  .sidebar-brand {
    justify-content: center;
  }
  .menu-item {
    justify-content: center;
    padding: 0.85rem;
  }
  .main-content {
    margin-left: 80px;
    padding: 1.5rem;
  }
  .jobs-list-grid {
    grid-template-columns: 1fr;
  }
  .candidates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .candidates-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
