/* jobs/static/jobs/css/jobs_futuristic.css */
:root {
  /* Color palette */
  --primary-color: #010080;
  --primary-color-rgb: 1, 0, 128;
  --secondary-color: #212121;
  --light-color: #ffffff;
  --light-gray-bg: #f4f7fc;
  --border-color: #dbe3f0;
  --text-color: #1a1a2e;
  --text-muted: #6c7a8f;
  --success-color: #00b894;

  /* Sizing & Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;

  /* Spacing */
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;

  /* Shadows & Glow */
  --shadow-sm: 0 4px 10px rgba(var(--primary-color-rgb), 0.05);
  --shadow-md: 0 8px 25px rgba(var(--primary-color-rgb), 0.1);
  --glow-focus: 0 0 10px rgba(var(--primary-color-rgb), 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-smooth: 0.3s ease-in-out;
}

/* Base Styles */
body {
  background-color: var(--light-gray-bg);
  color: var(--text-color);
}
.mt-3 { margin-top: var(--space-3) !important; }

/* Main Search Container */
.search-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-4);
}

.search-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-4);
  align-items: flex-start;
}

/* =================================== */
/* Sidebar Filters (Desktop)         */
/* =================================== */
.sidebar-filters {
  background: var(--light-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--space-4);
  max-height: calc(100vh - 2 * var(--space-4)); /* Don't exceed viewport */
}

.sidebar-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.sidebar-close-btn { display: none; } /* Hidden on desktop */

.sidebar-content {
  padding: var(--space-4);
  overflow-y: auto;
  flex-grow: 1;
}

.filter-pod {
  margin-bottom: var(--space-4);
}
.filter-pod:last-child { margin-bottom: 0; }

.pod-title {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 var(--space-3) 0;
}
.pod-title .bi {
  margin-right: var(--space-2);
  color: var(--primary-color);
  font-size: 1.3rem;
}

.sidebar-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: var(--space-2);
}

/* =================================== */
/* Form Elements within Sidebar      */
/* =================================== */
.form-label-futuristic {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.form-control-futuristic,
.form-select-futuristic {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: #fff;
  font-size: 1rem;
  color: var(--text-color);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control-futuristic:focus,
.form-select-futuristic:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--glow-focus);
}

/* --- Salary Slider --- */
.salary-slider-wrapper { margin-top: var(--space-2); }
.salary-value-display {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: var(--space-3);
  text-align: center;
}
.salary-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border-color);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
}
.salary-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--light-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}
.salary-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--light-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}
.salary-slider:active::-webkit-slider-thumb { transform: scale(1.15); }
.salary-slider:active::-moz-range-thumb { transform: scale(1.15); }

/* --- Checkbox & Radio Groups --- */
.checkbox-group, .radio-group { display: flex; flex-direction: column; gap: 12px; }
.checkbox-item, .radio-item { display: flex; align-items: center; }
.checkbox-item input, .radio-item input {
  margin-right: 10px;
  accent-color: var(--primary-color);
  width: 18px; height: 18px;
}
.checkbox-item label, .radio-item label {
  font-size: 0.95rem;
  cursor: pointer;
}

/* --- Sidebar Buttons --- */
.btn-reset, .btn-apply {
  flex-grow: 1;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-reset .bi, .btn-apply .bi { margin-right: var(--space-2); }
.btn-reset {
  background-color: var(--light-gray-bg);
  color: var(--text-muted);
  border-color: var(--border-color);
}
.btn-reset:hover { background-color: #e9eef5; color: var(--text-color); }
.btn-apply {
  background-color: var(--primary-color);
  color: var(--light-color);
}
.btn-apply:hover {
    background-color: #01006D; /* Slightly darker */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =================================== */
/* Main Content Area                 */
/* =================================== */
.core-search-bar {
    display: flex;
    gap: var(--space-3);
    background-color: var(--light-color);
    padding: var(--space-3);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-4);
}
.input-field-futuristic {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.input-field-futuristic .bi {
    position: absolute;
    left: 15px;
    font-size: 1.3rem;
    color: var(--text-muted);
    pointer-events: none;
}
.input-field-futuristic input[type="text"] {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    color: var(--text-color);
    transition: var(--transition-smooth);
}
.input-field-futuristic input[type="text"]::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}
.input-field-futuristic input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--glow-focus);
}
.btn-launch-search {
    background-image: linear-gradient(45deg, var(--primary-color), #003f9e);
    color: var(--light-color);
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-launch-search .bi { margin-right: 8px; font-size: 1.3rem; }
.btn-launch-search:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3); }

/* Placeholder results styles */
.hero-subtitle-futuristic { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-4);}
.highlight-count { color: var(--primary-color); font-weight: 700; }
.placeholder-card {
    background: var(--light-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    height: 120px;
    margin-bottom: var(--space-3);
    border: 1px solid var(--border-color);
}

/* =================================== */
/* Mobile & Responsive Design        */
/* =================================== */
.mobile-header { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 992px) {
  .search-grid {
    grid-template-columns: 1fr;
  }

  /* --- Mobile Header --- */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
  }
  .mobile-header-title {
      font-size: 1.5rem;
      margin: 0;
      color: var(--text-color);
  }
  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }
  .filter-count-badge {
      background-color: var(--primary-color);
      color: var(--light-color);
      width: 24px;
      height: 24px;
      border-radius: 50%;
      font-size: 0.8rem;
      font-weight: 700;
      display: none; /* Hidden by default */
      align-items: center;
      justify-content: center;
  }

  /* --- Mobile Sidebar (Slide-in Panel) --- */
  .sidebar-filters {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    box-shadow: 0 0 40px rgba(0,0,0,0.2);
    border-radius: 0;
    max-height: 100%;
  }
  .sidebar-filters.is-open {
    transform: translateX(0);
  }
  .sidebar-header {
      border-radius: 0;
  }
  .sidebar-close-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
  }

  /* --- Backdrop --- */
  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
  }
  .sidebar-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* --- Main content adjustments on mobile --- */
  .core-search-bar { flex-direction: column; }
  .btn-launch-search span { display: inline; }
}