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

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo .logo-icon {
  width: 60px;
  height: 60px;
  font-size: 20px;
  margin: 0 auto 15px;
}

.login-logo h1 {
  color: #1a3c5c;
  font-size: 24px;
  font-weight: 600;
}

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

.login-box input {
  padding: 12px 15px;
  font-size: 16px;
}

.error-message {
  background: #fee2e2;
  color: #dc2626;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}

.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  border-top: 1px solid var(--gray-200);
  background: white;
}

.current-user {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: capitalize;
}

.form-section {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-section-title {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}

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

.info-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  width: 150px;
  font-weight: 500;
  color: var(--gray-600);
  flex-shrink: 0;
}

.info-value {
  color: var(--gray-800);
}

:root {
  --primary: #1a3c5c;
  --primary-light: #2d5a7b;
  --accent: #667eea;
  --accent-hover: #5a6fd6;
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #e74c3c;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --sidebar-width: 220px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: white;
  border-right: 1px solid var(--gray-200);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.sidebar-logo span {
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
}

.nav-menu {
  list-style: none;
  padding: 10px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  color: var(--gray-700);
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: var(--gray-50);
}

.nav-item.active {
  background: #e8f0fe;
  color: var(--accent);
  border-left-color: var(--accent);
}

.nav-icon {
  font-size: 18px;
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 0 30px 30px;
  min-height: 100vh;
}

.top-header {
  background: white;
  padding: 20px 30px 20px 0;
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-end;
}

.global-search-container {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.global-search-input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
  background: var(--gray-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat 12px center;
  background-size: 18px;
  transition: border-color 0.2s, background-color 0.2s;
}

.global-search-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: white;
}

.global-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.global-search-results.active {
  display: block;
}

.search-group-header {
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.search-result-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.15s;
}

.search-result-item:hover {
  background: var(--gray-50);
}

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

.search-result-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.search-result-avatar.candidate {
  background: var(--accent);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 500;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-detail {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

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

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
}

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

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

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

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 20px;
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray-200);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat-card h3 {
  color: var(--gray-600);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: bold;
  color: var(--accent);
}

.stat-card-clickable {
  transition: all 0.2s ease;
}

.stat-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background-color: #fafafa;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.widget {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 20px;
}

.widget-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-list {
  list-style: none;
}

.widget-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 12px;
}

.widget-list li:last-child {
  border-bottom: none;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 14px;
}

.avatar-lg {
  width: 100px;
  height: 100px;
  font-size: 36px;
}

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

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  white-space: normal;
  word-wrap: break-word;
  max-width: 200px;
  min-width: 80px;
}

tr:hover {
  background: var(--gray-50);
}

.employee-link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

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

.search-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-select {
  padding: 10px 15px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  min-width: 150px;
}

.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 30px;
  border-radius: 10px;
  color: white;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.profile-header .avatar {
  background: white;
  color: var(--primary);
  border: 3px solid rgba(255,255,255,0.3);
}

.profile-info h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

.profile-info p {
  opacity: 0.9;
}

.profile-vitals {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 20px;
  margin-bottom: 20px;
}

.vitals-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}

.vitals-icon {
  color: var(--gray-500);
}

.tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 25px;
  gap: 5px;
}

.tab {
  padding: 12px 20px;
  cursor: pointer;
  color: var(--gray-600);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

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

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

.tab-content {
  display: none;
}

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

.section {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 25px;
  margin-bottom: 20px;
}

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

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.balance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.balance-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-left: 4px solid var(--accent);
}

.balance-card .balance-value {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
}

.balance-card .balance-label {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 5px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.status-denied {
  background: #f8d7da;
  color: #721c24;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item.current::before {
  background: var(--success);
  box-shadow: 0 0 0 2px var(--success);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary);
}

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

.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-500);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--gray-800);
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray-500);
}

.close:hover {
  color: var(--gray-800);
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--gray-500);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  cursor: pointer;
  margin-bottom: 20px;
  font-size: 14px;
}

.back-link:hover {
  color: var(--accent);
}

.history-table td:first-child {
  position: relative;
  padding-left: 25px;
}

.history-table tr.current td:first-child::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

/* Settings Sidebar Navigation */
.settings-nav {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 10px 0;
  height: fit-content;
}

.settings-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.settings-menu li {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.settings-menu li:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.settings-menu li.active {
  background: rgba(102, 126, 234, 0.1);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: block;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-danger:disabled {
  background: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
}

.empty-state {
  text-align: center;
  color: var(--gray-500);
  padding: 30px !important;
  font-style: italic;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable:hover {
  background: var(--gray-100);
}

.sort-icon {
  font-size: 12px;
  color: var(--gray-400);
  margin-left: 4px;
}

.sort-icon.active {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .widget-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .widget-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Inline editing styles */
.inline-edit {
  cursor: pointer;
  padding: 8px 12px !important;
  transition: background 0.15s;
}

.inline-edit:hover {
  background: var(--gray-100);
}

.inline-edit.editing {
  background: var(--gray-50);
  padding: 4px 8px !important;
}

.inline-edit .editable-value {
  display: block;
}

.inline-select,
.inline-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 13px;
  background: white;
  outline: none;
  box-shadow: 0 0 0 2px rgba(115, 182, 79, 0.2);
}

.inline-edit .btn-sm {
  padding: 2px 6px;
  margin-left: 4px;
  font-size: 11px;
  vertical-align: middle;
}

/* Bulk actions bar */
.bulk-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.bulk-actions-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
}

.bulk-actions-info .btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bulk-actions-info .btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.bulk-actions-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bulk-actions-controls .filter-select {
  background: white;
  min-width: 150px;
}

/* Selected row highlighting */
.selected-row {
  background: rgba(115, 182, 79, 0.1) !important;
}

.selected-row:hover {
  background: rgba(115, 182, 79, 0.15) !important;
}

.row-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Candidate Detail Page - BambooHR Style */
.candidate-detail-page {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.candidate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.candidate-header .back-link {
  color: var(--primary-blue);
  cursor: pointer;
  font-size: 14px;
}

.candidate-header .back-link:hover {
  text-decoration: underline;
}

.candidate-detail-layout {
  display: grid;
  grid-template-columns: minmax(500px, 2fr) 340px;
  gap: 24px;
  flex: 1;
  min-height: 0;
}

.candidate-resume-panel {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.resume-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
}

.resume-viewer {
  flex: 1;
  background: var(--gray-100);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.pdf-btn {
  background: #5a5a5a;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.pdf-btn:hover {
  background: #6a6a6a;
}

.pdf-btn:disabled {
  background: #3a3a3a;
  color: #888;
  cursor: not-allowed;
}

.resume-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.application-questions-section {
  border-top: 1px solid var(--gray-200);
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.application-questions-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.question-answer {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray-100);
}

.question-answer:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.question-number {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 5px;
}

.answer-text {
  color: var(--gray-600);
  font-size: 14px;
}

.candidate-info-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.candidate-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  padding: 20px;
}

.candidate-rating {
  margin-bottom: 15px;
}

.rating-stars {
  display: flex;
  gap: 4px;
}

.rating-star {
  font-size: 28px;
  color: var(--gray-300);
  cursor: pointer;
  transition: color 0.15s;
}

.rating-star:hover,
.rating-star.filled {
  color: #f59e0b;
}

.rating-stars:hover .rating-star {
  color: #f59e0b;
}

.rating-stars .rating-star:hover ~ .rating-star {
  color: var(--gray-300);
}

.candidate-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.candidate-stage-selector select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.candidate-applied {
  color: var(--gray-500);
  font-size: 13px;
  margin: 12px 0;
}

.linkedin-link {
  display: inline-block;
  color: var(--primary-blue);
  font-size: 14px;
  margin-bottom: 15px;
}

.candidate-details-list {
  margin-top: 20px;
  border-top: 1px solid var(--gray-200);
  padding-top: 15px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.detail-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.detail-value {
  font-size: 14px;
  color: var(--gray-800);
}

.detail-value a {
  color: var(--primary-blue);
}

/* Inline editing in candidate table */
.inline-stars {
  display: flex;
  gap: 2px;
}

.inline-star {
  font-size: 16px;
  color: var(--gray-300);
  cursor: pointer;
  transition: color 0.1s;
}

.inline-star:hover,
.inline-star.filled {
  color: #f59e0b;
}

.inline-stars:hover .inline-star {
  color: #f59e0b;
}

.inline-stars .inline-star:hover ~ .inline-star {
  color: var(--gray-300);
}

.inline-stage-select {
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  min-width: 120px;
}

.inline-stage-select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* Bulk selection styles */
.selected-row {
  background-color: rgba(59, 130, 246, 0.08) !important;
}

.selected-row:hover {
  background-color: rgba(59, 130, 246, 0.12) !important;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Column reorder in modal */
.column-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--gray-50);
  border-radius: 6px;
  cursor: grab;
  user-select: none;
}

.column-item:active {
  cursor: grabbing;
}

.column-item.dragging {
  opacity: 0.5;
  background: var(--gray-200);
}

.column-item.drag-over {
  border-top: 2px solid var(--primary-blue);
}

.drag-handle {
  color: var(--gray-400);
  font-size: 14px;
}

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

/* Draggable table rows */
.draggable-row {
  transition: background-color 0.2s;
}

.draggable-row.drag-over {
  background-color: #e8f4ff;
  border-top: 2px solid var(--primary-blue);
}

.draggable-row:hover .drag-handle {
  color: var(--gray-600);
}

/* Sortable table headers */
.sortable-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.sortable-table th.sortable:hover {
  background-color: var(--gray-100);
}

.sortable-table th.sortable .sort-icon {
  margin-left: 5px;
  font-size: 12px;
  color: var(--gray-400);
}

.sortable-table th.sortable.sort-asc .sort-icon,
.sortable-table th.sortable.sort-desc .sort-icon {
  color: var(--primary);
}

/* Reports Page Styles */
.reports-category {
  margin-bottom: 35px;
}

.reports-category-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 5px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.report-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.report-card .report-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.report-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 16px;
}

.report-card p {
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
}

.report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
}

.filter-group select,
.filter-group input {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.report-summary {
  padding: 10px 0 15px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 15px;
  font-weight: 500;
  color: var(--gray-600);
}

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

.report-table th,
.report-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.report-table th {
  background: var(--gray-50);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray-600);
}

.report-table tbody tr:hover {
  background: var(--gray-50);
}

.employee-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

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

.department-group {
  margin-bottom: 25px;
}

.department-header {
  background: #f0f4f8;
  padding: 10px 15px;
  font-weight: 600;
  color: var(--primary);
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--gray-200);
  border-bottom: none;
}

.department-group .report-table {
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.change-type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: capitalize;
}

.change-type-badge.salary {
  background: #e8f5e9;
  color: #2e7d32;
}

.change-type-badge.job_title {
  background: #e3f2fd;
  color: #1565c0;
}

.change-type-badge.reports_to {
  background: #fff3e0;
  color: #e65100;
}

/* Growth Summary Card */
.growth-summary h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.growth-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

.growth-stat .growth-value {
  font-size: 32px;
  font-weight: 700;
}

.growth-stat.positive .growth-value {
  color: #4CAF50;
}

.growth-stat.negative .growth-value {
  color: #e74c3c;
}

.growth-stat .growth-label {
  font-size: 12px;
  color: var(--gray-600);
}

.growth-breakdown {
  display: flex;
  gap: 30px;
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breakdown-item .breakdown-value {
  font-size: 24px;
  font-weight: 600;
}

.breakdown-item .breakdown-value.positive {
  color: #4CAF50;
}

.breakdown-item .breakdown-value.negative {
  color: #e74c3c;
}

.breakdown-item .breakdown-label {
  font-size: 11px;
  color: var(--gray-600);
}

.chart-container {
  width: 100%;
  min-height: 200px;
}

/* Turnover Stats Grid */
.turnover-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.turnover-stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--gray-200);
}

.turnover-stat-card .stat-icon {
  font-size: 32px;
}

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

.turnover-stat-card .stat-label {
  font-size: 12px;
  color: var(--gray-600);
}

/* Turnover Breakdown Grid */
.turnover-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.breakdown-card {
  text-align: center;
}

.breakdown-card h4 {
  margin-bottom: 15px;
  color: var(--primary);
}

.breakdown-chart {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.breakdown-chart canvas {
  max-width: 120px;
  max-height: 120px;
}

.breakdown-legend {
  text-align: left;
  padding: 0 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 5px;
  color: var(--gray-700);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Multi-Application Indicator Styles */
.multi-app-indicator {
  color: #ea580c;
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
}

.multi-app-indicator:hover {
  text-decoration: underline;
}

.multi-app-dropdown {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  max-width: 350px;
  overflow: hidden;
}

.multi-app-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  color: var(--primary);
}

.multi-app-dropdown-content {
  max-height: 340px;
  overflow-y: auto;
}

.multi-app-item {
  display: flex;
  gap: 12px;
  padding: 12px 15px;
  cursor: pointer;
  transition: background-color 0.15s;
  border-bottom: 1px solid var(--gray-100);
}

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

.multi-app-item:hover {
  background-color: var(--gray-50);
}

.multi-app-job-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.multi-app-job-info {
  flex: 1;
  min-width: 0;
}

.multi-app-job-title {
  font-weight: 500;
  color: var(--primary-blue);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-app-job-stage {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.multi-app-job-date {
  font-size: 11px;
  color: var(--gray-500);
}

/* Audit Trail Styles */
.audit-timeline {
  padding: 10px 0;
}

.audit-date-group {
  margin-bottom: 25px;
}

.audit-date-header {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.audit-entry {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.audit-entry:last-child {
  border-bottom: none;
}

.audit-time {
  flex-shrink: 0;
  width: 70px;
  font-size: 12px;
  color: var(--gray-500);
  padding-top: 2px;
}

.audit-details {
  flex: 1;
}

.audit-field {
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.audit-change {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}

.audit-old {
  background: #ffeef0;
  color: #c82333;
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: line-through;
}

.audit-arrow {
  color: var(--gray-400);
}

.audit-new {
  background: #e6ffed;
  color: #28a745;
  padding: 2px 8px;
  border-radius: 4px;
}

.audit-meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
}

/* System Audit Trail Table */
.audit-filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: flex-end;
}

.audit-filters .form-group {
  margin-bottom: 0;
}

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

.audit-table th,
.audit-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.audit-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
}

.audit-table tr:hover {
  background: var(--gray-50);
}

/* Action Badges for System Activity Log */
.action-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.action-login, .action-logout {
  background: #e0e7ff;
  color: #4338ca;
}

.action-time {
  background: #fef3c7;
  color: #92400e;
}

.action-candidate {
  background: #dbeafe;
  color: #1e40af;
}

.action-user {
  background: #f3e8ff;
  color: #7c3aed;
}

.action-badge.action-login_failed {
  background: #fee2e2;
  color: #dc2626;
}

/* ==================== */
/* MOBILE RESPONSIVE STYLES */
/* ==================== */

/* Mobile Header - Hidden on desktop */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  z-index: 1001;
  align-items: center;
  padding: 0 15px;
  gap: 15px;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo span {
  font-weight: 600;
  font-size: 16px;
  color: var(--primary);
}

.mobile-logo .logo-icon {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

/* Hamburger Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
  transition: all 0.3s;
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-overlay.active {
  display: block;
}

/* Mobile Breakpoint - 768px */
@media (max-width: 768px) {
  /* Show mobile header */
  .mobile-header {
    display: flex;
  }
  
  /* Sidebar becomes slide-out menu */
  .sidebar {
    position: fixed;
    left: -280px;
    width: 280px;
    z-index: 1000;
    transition: left 0.3s ease;
    top: 0;
    height: 100vh;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  /* Main content adjustments */
  .main-content {
    margin-left: 0;
    padding: 70px 15px 15px;
  }
  
  /* Top header adjustments */
  .top-header {
    position: static;
    padding: 10px 0;
  }
  
  .global-search-container {
    max-width: 100%;
  }
  
  .global-search-input {
    font-size: 16px; /* Prevents iOS zoom */
  }
  
  /* Login page mobile */
  .login-box {
    margin: 15px;
    padding: 25px;
  }
  
  /* Dashboard stats grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat-card {
    padding: 15px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  /* Quick actions grid */
  .quick-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* Page headers */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .page-header h1 {
    font-size: 22px;
  }
  
  .header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .header-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
  
  /* Tables - horizontal scroll */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .data-table {
    min-width: 600px;
  }
  
  .data-table th,
  .data-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  /* Employee cards in grid view */
  .employee-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .employee-card {
    padding: 12px;
  }
  
  /* Forms */
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-group {
    width: 100% !important;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 12px;
  }
  
  /* Buttons touch friendly */
  .btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .btn-sm {
    min-height: 36px;
    padding: 8px 12px;
  }
  
  /* Modals */
  .modal-content {
    width: 95%;
    max-width: none;
    margin: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-content h2 {
    font-size: 18px;
  }
  
  /* Employee profile tabs */
  .profile-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  
  .profile-tab {
    white-space: nowrap;
    padding: 10px 15px;
    font-size: 13px;
  }
  
  /* Employee header */
  .employee-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .employee-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* Info rows */
  .info-row {
    flex-direction: column;
    gap: 5px;
  }
  
  .info-label {
    width: 100%;
  }
  
  /* Kanban board - horizontal scroll */
  .pipeline-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
  }
  
  .pipeline-columns {
    display: flex;
    gap: 15px;
    min-width: max-content;
  }
  
  .pipeline-column {
    min-width: 260px;
    width: 260px;
    flex-shrink: 0;
  }
  
  /* Candidate detail layout */
  .candidate-detail-layout {
    flex-direction: column;
  }
  
  .candidate-resume-panel,
  .candidate-info-panel {
    width: 100%;
  }
  
  .resume-viewer {
    height: 50vh;
  }
  
  /* Job cards */
  .job-card {
    padding: 15px;
  }
  
  .job-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  /* Settings tabs */
  .settings-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 0;
  }
  
  .settings-tab {
    white-space: nowrap;
    padding: 10px 15px;
    font-size: 13px;
  }
  
  /* Reports grid */
  .reports-grid {
    grid-template-columns: 1fr;
  }
  
  .report-category {
    padding: 15px;
  }
  
  /* Time off calendar */
  .calendar-grid {
    font-size: 12px;
  }
  
  .calendar-day {
    padding: 5px 2px;
    min-height: 60px;
  }
  
  /* Filter controls */
  .filter-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-controls input,
  .filter-controls select {
    width: 100%;
  }
  
  /* Audit filters */
  .audit-filters {
    flex-direction: column;
  }
  
  .audit-filters .form-group {
    width: 100%;
  }
  
  /* Search results dropdown */
  .global-search-results {
    max-height: 60vh;
  }
  
  /* Sidebar footer on mobile */
  .sidebar-footer {
    padding: 10px 15px;
  }
  
  /* Hide desktop elements on mobile if needed */
  .hide-mobile {
    display: none !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .employee-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 5px;
    padding: 15px;
  }
  
  .page-header h1 {
    font-size: 20px;
  }
  
  .btn {
    width: 100%;
  }
  
  .header-actions .btn {
    flex: none;
    width: 100%;
  }
}

/* Show only on mobile */
.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .show-mobile {
    display: block;
  }
  
  /* Job detail page mobile */
  .job-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .job-detail-header h1 {
    font-size: 18px;
    line-height: 1.3;
  }
  
  .job-detail-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .job-detail-actions .btn {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 10px 12px;
  }
  
  /* Pipeline tabs scrollable */
  .pipeline-tabs,
  .stage-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 5px;
  }
  
  .pipeline-tabs .tab,
  .stage-tabs .tab,
  .pipeline-tab,
  .stage-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 13px;
  }
  
  /* Candidates list table */
  .candidates-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .candidates-list table {
    min-width: 500px;
  }
  
  .candidates-list td,
  .candidates-list th {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  /* Table responsive for candidate table */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
  }
  
  .table-responsive table {
    min-width: 600px;
  }
  
  .table-responsive td,
  .table-responsive th {
    padding: 10px 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  
  /* Bulk action toolbar mobile */
  .bulk-action-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  
  .bulk-action-toolbar > div:first-child {
    justify-content: space-between;
  }
  
  .bulk-action-toolbar > div:last-child {
    flex-wrap: wrap;
    gap: 8px !important;
  }
  
  .bulk-action-toolbar select {
    flex: 1;
    min-width: 120px;
  }
  
  .bulk-action-toolbar button {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }
  
  /* Inline stage select smaller on mobile */
  .inline-stage-select {
    min-width: 90px;
    font-size: 12px;
  }
  
  /* Candidate action buttons */
  .table-responsive .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  /* Make star ratings smaller on mobile */
  .star-rating {
    font-size: 14px;
  }
  
  /* Back links */
  .back-link {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  /* Job meta info */
  .job-meta {
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
}

/* Mobile Candidate Cards */
.candidate-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.candidate-cards-header {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 5px;
}

.candidate-cards-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
}

.candidate-cards-select-all input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.candidate-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 15px;
  transition: all 0.2s;
}

.candidate-card.selected-card {
  background-color: rgba(59, 130, 246, 0.08);
  border-color: var(--primary-blue);
}

.candidate-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.candidate-card-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.candidate-card-name {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.candidate-card-name a {
  color: var(--primary-blue);
  text-decoration: none;
}

.candidate-card-name a:hover {
  text-decoration: underline;
}

.candidate-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.candidate-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.candidate-card-label {
  color: var(--gray-500);
  font-size: 13px;
  min-width: 60px;
}

.candidate-card-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
}

.candidate-card-stage {
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--gray-700);
}

.candidate-card-actions {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.candidate-card-actions .btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
}

/* Desktop: show table, hide cards */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Mobile: hide table, show cards */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }
}
