/* ===================================
   ADVANCED JOB SEARCH STYLES
   =================================== */

/* Variables - Aligned with BPO design */
:root {
  --primary-color: hsl(211, 100%, 50%);
  --primary-dark: hsl(211, 100%, 40%);
  --base-color: hsl(113, 100%, 33%);
  --secondary-color: hsl(208, 7%, 46%);
  --success-color: hsl(113, 100%, 33%);
  --warning-color: hsl(45, 100%, 51%);
  --danger-color: hsl(354, 70%, 54%);
  --info-color: hsl(190, 90%, 50%);
  --light-bg: hsl(208, 100%, 97%);
  --border-color: hsl(0, 0%, 88%);
  --text-primary: hsl(0, 0%, 13%);
  --text-secondary: hsl(0, 0%, 46%);
  --text-muted: hsl(0, 0%, 51%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* BPO Design Variables */
  --bpo-primary: hsl(var(--base));
  --bpo-primary-light: hsl(var(--base) / 0.1);
  --bpo-primary-dark: hsl(var(--base-d-100));
  --bpo-success: #10b981;
  --bpo-warning: #f59e0b;
  --bpo-danger: #ef4444;
  --bpo-gray-50: #f8fafc;
  --bpo-gray-100: #f1f5f9;
  --bpo-gray-200: #e2e8f0;
  --bpo-gray-300: #cbd5e1;
  --bpo-gray-500: #64748b;
  --bpo-gray-600: #475569;
  --bpo-gray-700: #334155;
  --bpo-gray-800: #1e293b;
  --bpo-radius: 12px;
  --bpo-radius-lg: 16px;
  --bpo-transition: all 0.3s ease;
  --bpo-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
  --bpo-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===================================
   SEARCH HEADER SECTION - MATCHING BPO DESIGN
   =================================== */
.search-header-section {
  background: linear-gradient(135deg, hsl(var(--base)) 0%, hsl(var(--base-d-100)) 100%);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.search-header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.3;
}

.advanced-search-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.search-header-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: #fff;
}

.search-header-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}

.advanced-search-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.search-main-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  margin-bottom: 20px;
}

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

.search-mode-toggle {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.search-mode-select {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  width: 120px;
  padding: 5px;
}

.search-input {
  width: 100%;
  border: 2px solid var(--bpo-gray-200);
  border-radius: var(--bpo-radius);
  padding: 15px 15px 15px 140px;
  font-size: 1rem;
  background: var(--bpo-gray-50);
  transition: var(--bpo-transition);
  min-height: 56px;
}

.search-input:focus {
  border-color: var(--bpo-primary);
  box-shadow: 0 0 0 3px rgba(var(--bpo-primary), 0.1);
  outline: none;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.suggestion-item:hover {
  background: var(--light-bg);
}

.suggestion-type {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--light-bg);
  border-radius: 0.25rem;
  color: var(--text-secondary);
}

.suggestion-text {
  color: var(--text-primary);
  font-weight: 500;
}

.search-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
}

.btn-search, .btn-filter-toggle {
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-search:hover {
  background: var(--bpo-primary-dark);
  transform: translateY(-2px);
}

.btn-filter-toggle {
  background: var(--bpo-gray-500);
  color: var(--bpo-gray-700);
  border: 1px solid var(--bpo-gray-200);
}

.btn-filter-toggle.active, .btn-filter-toggle:hover {
  background: var(--bpo-primary);
  color: white;
  border-color: var(--bpo-primary);
}

.filter-count {
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -8px;
}

/* Quick Filters */
.quick-filters {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.quick-filter-label {
  font-weight: 600;
  color: #495057;
}

.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 8px 15px;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pill-btn:hover, .pill-btn.active {
  background: var(--bpo-primary);
  color: white;
  border-color: var(--bpo-primary);
}

/* ===================================
   ADVANCED FILTERS PANEL
   =================================== */
.advanced-filters-panel {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 100%;
}

.filter-title {
  background: var(--light-bg);
  padding: 1rem;
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.filter-content {
  padding: 1rem;
}

.filter-select {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  transition: var(--transition);
  font-size: 0.875rem;
}

.filter-select:focus {
  border-color: var(--base-color);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.budget-range .row {
  gap: 0.5rem;
}

.budget-range .col-6 {
  flex: 1;
}

.payment-types .form-check {
  margin-bottom: 0.5rem;
}

.form-check-input:checked {
  background-color: var(--base-color);
  border-color: var(--base-color);
}

/* Skills Selector */
.skills-selector {
  position: relative;
}

.skills-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.skill-option {
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
}

.skill-option:hover {
  background: var(--light-bg);
}

.skill-option:last-child {
  border-bottom: none;
}

.skill-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.selected-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  min-height: 2rem;
}

.selected-skill-tag {
  background: var(--base-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-skill {
  cursor: pointer;
  font-weight: bold;
}

.custom-date-range .row {
  gap: 0.5rem;
}

.filters-actions {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1.5rem;
}

.filters-actions .btn {
  margin: 0 0.5rem;
}

/* ===================================
   JOBS LISTING SECTION
   =================================== */
.jobs-listing-section {
  padding: 2rem 0;
  min-height: 60vh;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.results-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.search-term {
  color: var(--base-color);
}

.results-count {
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.count-number {
  font-weight: 600;
  color: var(--text-primary);
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* View Mode Toggle */
.view-mode-toggle {
  display: flex;
  background: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 0.25rem;
  border: 1px solid var(--border-color);
}

.view-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--border-radius) - 0.25rem);
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.view-btn.active,
.view-btn:hover {
  background: white;
  color: var(--base-color);
  box-shadow: var(--shadow-sm);
}

.results-per-page select,
.sort-options select {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: white;
}

/* Active Filters */
.active-filters {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters-label {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.filter-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-filter {
  cursor: pointer;
  font-weight: bold;
}

.clear-all-filters {
  background: #dc3545;
  color: white;
  border: 1px solid #dc3545;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.clear-all-filters:hover {
  background: #c82333;
  border-color: #c82333;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.clear-all-filters:active {
  transform: translateY(0);
}

.clear-all-filters i {
  font-size: 1rem;
}

/* ===================================
   EMPTY STATE STYLES
   =================================== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.loading-state {
  display: none;
  text-align: center;
  padding: 2rem;
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--base-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===================================
   JOB CARDS
   =================================== */
.jobs-grid {
  display: grid;
  gap: 1.5rem;
}

.jobs-grid.card-view {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.jobs-grid.list-view {
  grid-template-columns: 1fr;
}

.jobs-grid.compact-view {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* Card View */
.job-card.card-view {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.job-card-header {
  padding: 1.5rem 1.5rem 1rem;
}

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

.job-type-badge {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-hourly {
  background: #e0f2fe;
  color: #0277bd;
}

.badge-fixed {
  background: #f3e5f5;
  color: #7b1fa2;
}

.badge-no-bids {
  background: #e8f5e8;
  color: #2e7d32;
}

.badge-low-competition {
  background: #fff3e0;
  color: #ef6c00;
}

.badge-medium-competition {
  background: #fce4ec;
  color: #c2185b;
}

.badge-high-competition {
  background: #ffebee;
  color: #d32f2f;
}

.badge-urgent {
  background: #ffebee;
  color: #d32f2f;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.job-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.btn-icon:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.1);
}

.job-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.job-title-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.job-title-link:hover {
  color: var(--base-color);
}

.job-client {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.client-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

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

.client-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.client-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rating-stars {
  display: flex;
  gap: 0.125rem;
}

.rating-value {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.no-rating {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.job-card-body {
  padding: 0 1.5rem 1rem;
}

.job-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.job-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.detail-value {
  font-weight: 500;
  color: var(--text-primary);
}

.budget-value {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hourly-rate,
.fixed-budget {
  font-weight: 600;
  color: var(--success-color);
}

.estimated-total {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.custom-badge {
  font-size: 0.7rem;
  background: var(--warning-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  align-self: flex-start;
}

.experience-level {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.level-pro {
  background: #f3e8ff;
  color: #7c3aed;
}

.level-expert {
  background: #fef3c7;
  color: #d97706;
}

.level-intermediate {
  background: #dbeafe;
  color: #1d4ed8;
}

.level-entry {
  background: #dcfce7;
  color: #16a34a;
}

.deadline-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.urgent-indicator {
  font-size: 1rem;
}

.category-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
}

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

.job-skills {
  margin-bottom: 1rem;
}

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

.skill-tag {
  background: var(--light-bg);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.skill-tag:hover {
  background: var(--base-color);
  color: white;
  border-color: var(--base-color);
}

.more-skills {
  background: var(--text-muted);
  color: white;
  border-color: var(--text-muted);
}

.job-languages {
  margin-bottom: 1rem;
}

.languages-label {
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

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

.language-tag {
  background: #e0f2fe;
  color: #0277bd;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
}

.job-card-footer {
  padding: 1rem 1.5rem;
  background: var(--light-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-stats {
  display: flex;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.btn-bid {
  background: var(--base-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-bid:hover {
  background: hsl(113, 100%, 28%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-header-title {
    font-size: 2rem;
  }
  
  .search-main-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-input-wrapper {
    flex-direction: column;
  }
  
  .search-mode-toggle {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .jobs-grid.card-view {
    grid-template-columns: 1fr;
  }
  
  .job-details-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ===================================
   LIST VIEW STYLES
   =================================== */
.job-list-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.job-list-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.job-list-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-main-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.job-title-section {
  flex: 1;
}

.job-title-section .job-title {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.job-title-section .job-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.job-title-section .job-title a:hover {
  color: var(--base-color);
}

.job-meta-inline {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.job-meta-inline span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.job-meta-inline i {
  font-size: 1rem;
}

.urgent-badge {
  background: var(--danger-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.job-actions-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.job-description-brief {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.job-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: var(--border-radius);
}

.job-client-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.job-client-info .client-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.job-client-info .client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-client-info .client-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.job-client-info .client-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.job-client-info .client-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.job-client-info .rating-value {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.job-requirements {
  display: flex;
  gap: 2rem;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.req-value {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.experience-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.job-tags-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skills-tags,
.languages-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tags-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 60px;
}

.job-tags-inline,
.language-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag-sm,
.language-tag-sm {
  background: var(--light-bg);
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.7rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.skill-tag-sm:hover {
  background: var(--base-color);
  color: white;
  border-color: var(--base-color);
}

.language-tag-sm {
  background: #e0f2fe;
  color: #0277bd;
  border-color: #b3e5fc;
}

.more-skills {
  background: var(--text-muted);
  color: white;
  border-color: var(--text-muted);
}

.job-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.indicator-success {
  background: #dcfce7;
  color: #16a34a;
}

.indicator-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.indicator-warning {
  background: #fef3c7;
  color: #d97706;
}

.indicator-danger {
  background: #fecaca;
  color: #dc2626;
}

.indicator-urgent {
  background: var(--danger-color);
  color: white;
  animation: pulse 2s infinite;
}

.indicator-hourly {
  background: #e0f2fe;
  color: #0277bd;
}

.indicator-fixed {
  background: #f3e5f5;
  color: #7b1fa2;
}

/* ===================================
   COMPACT VIEW STYLES
   =================================== */
.job-compact-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.job-compact-item:hover {
  border-color: var(--primary-color);
  background: #fefefe;
  box-shadow: var(--shadow-sm);
}

.job-compact-main {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.job-compact-left {
  flex: 2;
}

.job-title-compact {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.job-title-compact a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.job-title-compact a:hover {
  color: var(--base-color);
}

.job-compact-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.job-compact-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.job-compact-meta i {
  font-size: 0.9rem;
}

.job-compact-meta strong {
  color: var(--success-color);
  font-weight: 600;
}

.custom-indicator {
  background: var(--warning-color);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
}

.urgent-dot {
  width: 6px;
  height: 6px;
  background: var(--danger-color);
  border-radius: 50%;
  margin-left: 0.25rem;
  animation: pulse 2s infinite;
}

.job-compact-skills {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.skill-pill {
  background: var(--light-bg);
  color: var(--text-primary);
  padding: 0.125rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.skill-pill:hover {
  background: var(--base-color);
  color: white;
  border-color: var(--base-color);
}

.more-indicator {
  background: var(--text-muted);
  color: white;
  border-color: var(--text-muted);
}

.job-compact-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.client-compact-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.client-compact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.client-compact-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.client-compact-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.client-compact-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rating-stars-compact {
  color: #fbbf24;
  font-size: 0.7rem;
}

.rating-compact-value {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.no-rating-compact {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.job-compact-indicators {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.level-indicator {
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.level-indicator.level-pro {
  background: #f3e8ff;
  color: #7c3aed;
}

.level-indicator.level-expert {
  background: #fef3c7;
  color: #d97706;
}

.level-indicator.level-intermediate {
  background: #dbeafe;
  color: #1d4ed8;
}

.level-indicator.level-entry {
  background: #dcfce7;
  color: #16a34a;
}

.language-indicator {
  background: #e0f2fe;
  color: #0277bd;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.competition-indicator {
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.competition-indicator.comp-none {
  background: #dcfce7;
  color: #16a34a;
}

.competition-indicator.comp-low {
  background: #dbeafe;
  color: #1d4ed8;
}

.competition-indicator.comp-medium {
  background: #fef3c7;
  color: #d97706;
}

.competition-indicator.comp-high {
  background: #fecaca;
  color: #dc2626;
}

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

.btn-compact-save {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.btn-compact-save:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.1);
}

.job-compact-actions .btn {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===================================
   ADDITIONAL RESPONSIVE STYLES
   =================================== */
@media (max-width: 768px) {
  .job-main-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .job-details-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .job-requirements {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .job-compact-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .job-compact-center {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .job-compact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .job-compact-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 576px) {
  .job-meta-inline {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .job-compact-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .job-compact-indicators {
    justify-content: center;
  }
}
