/* Document & Header Height / Sticky Behavior */
html, body {
  min-height: 100vh;
  height: auto !important;
}

.hidden {
  display: none !important;
}

header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  background-color: #020617 !important;
  border-bottom: 1px solid #1e293b !important;
}

#header-find-jobs-bar {
  background-color: #020617 !important;
}

/* Custom styling & micro-animations */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Explicit High-Contrast Filter & Container Scrollbars */
.filter-scrollbar,
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #475569 rgba(15, 23, 42, 0.8);
}

.filter-scrollbar::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.filter-scrollbar::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 9999px;
}

.filter-scrollbar::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-scrollbar::-webkit-scrollbar-thumb:hover,
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

.fetched-pill,
.scraped-pill {
  cursor: pointer;
  transition: all 0.15s ease;
}

.fetched-pill.active,
.scraped-pill.active {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #6ee7b7 !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  font-weight: 600;
}

.tab-btn.active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.tab-btn:not(.active) {
  color: #94a3b8;
}

.tab-btn:not(.active):hover {
  color: #f1f5f9;
  background: rgba(30, 41, 59, 0.5);
}

.job-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.skill-tag {
  transition: background-color 0.15s ease;
}

.score-badge-high {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.25) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.score-badge-mid {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.25) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
}

.score-badge-low {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

/* ============================================================
   MULTI-THEME ENGINE
   1. Dark Slate (Default Tailwind Base)
   2. Midnight Obsidian (True OLED Pitch Black & Violet)
   3. Cyber Matrix (Deep Charcoal & Cyber Mint)
   4. Nordic Frost (Arctic Oceanic Navy & Ice Blue)
   5. Editorial Light (Refined Warm Paper & Crisp Typography)
   ============================================================ */

/* ----------------- 5. EDITORIAL LIGHT THEME ----------------- */
.theme-clear {
  color-scheme: light;
}

.theme-clear body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

.theme-clear header {
  background-color: #ffffff !important;
  border-bottom-color: #e2e8f0 !important;
}

.theme-clear header .border-b {
  border-color: #e2e8f0 !important;
}

.theme-clear .bg-slate-900,
.theme-clear .bg-slate-900\/70,
.theme-clear .bg-slate-900\/80,
.theme-clear .bg-slate-900\/60,
.theme-clear .bg-slate-900\/50,
.theme-clear .bg-slate-900\/95,
.theme-clear .bg-slate-950,
.theme-clear .bg-slate-950\/50,
.theme-clear .bg-slate-950\/60,
.theme-clear .bg-slate-950\/80 {
  background-color: #ffffff !important;
}

.theme-clear .border-slate-800,
.theme-clear .border-slate-800\/80,
.theme-clear .border-slate-800\/60,
.theme-clear .border-slate-800\/50,
.theme-clear .border-slate-700,
.theme-clear .border-slate-700\/80 {
  border-color: #e2e8f0 !important;
}

.theme-clear .text-white {
  color: #0f172a !important;
}

.theme-clear .text-slate-100,
.theme-clear .text-slate-200 {
  color: #1e293b !important;
}

.theme-clear .text-slate-300 {
  color: #334155 !important;
}

.theme-clear .text-slate-400 {
  color: #64748b !important;
}

.theme-clear .text-slate-500 {
  color: #94a3b8 !important;
}

.theme-clear input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.theme-clear select,
.theme-clear textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.theme-clear input:focus,
.theme-clear select:focus,
.theme-clear textarea:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 1px #10b981 !important;
}

.theme-clear .job-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

.theme-clear .job-card:hover {
  border-color: #94a3b8 !important;
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08) !important;
}

.theme-clear .tab-btn:not(.active) {
  color: #64748b !important;
}

.theme-clear .tab-btn:not(.active):hover {
  color: #0f172a !important;
  background-color: #f1f5f9 !important;
}

.theme-clear .tab-btn.active {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.theme-clear .bg-slate-800,
.theme-clear .bg-slate-800\/80 {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

.theme-clear .bg-slate-800:hover,
.theme-clear .bg-slate-800\/80:hover {
  background-color: #e2e8f0 !important;
}

.theme-clear #crawler-terminal {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

.theme-clear #crawler-terminal div {
  color: #cbd5e1 !important;
}

.theme-clear .filter-scrollbar::-webkit-scrollbar-track,
.theme-clear .custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
}

.theme-clear .filter-scrollbar::-webkit-scrollbar-thumb,
.theme-clear .custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
}

.theme-clear .filter-scrollbar::-webkit-scrollbar-thumb:hover,
.theme-clear .custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #10b981 !important;
}

.theme-clear .modal-box {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

.theme-clear th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

.theme-clear td {
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

.theme-clear #theme-dropdown-menu {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* ----------------- 2. MIDNIGHT OBSIDIAN THEME ----------------- */
.theme-midnight body {
  background-color: #000000 !important;
  color: #f4f4f5 !important;
}

.theme-midnight header {
  background-color: #050508 !important;
  border-bottom-color: #27272a !important;
}

.theme-midnight header .border-b {
  border-color: #18181b !important;
}

.theme-midnight .bg-slate-900,
.theme-midnight .bg-slate-900\/70,
.theme-midnight .bg-slate-900\/80,
.theme-midnight .bg-slate-900\/60,
.theme-midnight .bg-slate-900\/50,
.theme-midnight .bg-slate-900\/95,
.theme-midnight .bg-slate-950,
.theme-midnight .bg-slate-950\/50,
.theme-midnight .bg-slate-950\/60,
.theme-midnight .bg-slate-950\/80 {
  background-color: #09090b !important;
}

.theme-midnight .border-slate-800,
.theme-midnight .border-slate-800\/80,
.theme-midnight .border-slate-800\/60,
.theme-midnight .border-slate-800\/50,
.theme-midnight .border-slate-700,
.theme-midnight .border-slate-700\/80 {
  border-color: #27272a !important;
}

.theme-midnight .job-card {
  background-color: #09090b !important;
  border-color: #27272a !important;
}

.theme-midnight .job-card:hover {
  border-color: #8b5cf6 !important;
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.25) !important;
}

.theme-midnight .text-emerald-400 {
  color: #a78bfa !important;
}

.theme-midnight .text-emerald-300 {
  color: #c4b5fd !important;
}

.theme-midnight .bg-emerald-500\/10,
.theme-midnight .bg-emerald-500\/15,
.theme-midnight .bg-emerald-500\/20 {
  background-color: rgba(139, 92, 246, 0.15) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
}

.theme-midnight .tab-btn.active {
  background: rgba(139, 92, 246, 0.15) !important;
  color: #c4b5fd !important;
  border-color: rgba(139, 92, 246, 0.35) !important;
}

.theme-midnight .score-badge-high {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.3) 100%) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  color: #c4b5fd !important;
}

/* ----------------- 3. CYBER MATRIX THEME ----------------- */
.theme-cyber body {
  background-color: #01110c !important;
  color: #e6fff7 !important;
}

.theme-cyber header {
  background-color: #031710 !important;
  border-bottom-color: #0d382b !important;
}

.theme-cyber header .border-b {
  border-color: #072a20 !important;
}

.theme-cyber .bg-slate-900,
.theme-cyber .bg-slate-900\/70,
.theme-cyber .bg-slate-900\/80,
.theme-cyber .bg-slate-900\/60,
.theme-cyber .bg-slate-900\/50,
.theme-cyber .bg-slate-900\/95,
.theme-cyber .bg-slate-950,
.theme-cyber .bg-slate-950\/50,
.theme-cyber .bg-slate-950\/60,
.theme-cyber .bg-slate-950\/80 {
  background-color: #041f17 !important;
}

.theme-cyber .border-slate-800,
.theme-cyber .border-slate-800\/80,
.theme-cyber .border-slate-800\/60,
.theme-cyber .border-slate-800\/50,
.theme-cyber .border-slate-700,
.theme-cyber .border-slate-700\/80 {
  border-color: #0d382b !important;
}

.theme-cyber .job-card {
  background-color: #041f17 !important;
  border-color: #0d382b !important;
}

.theme-cyber .job-card:hover {
  border-color: #00ffaa !important;
  box-shadow: 0 10px 25px -5px rgba(0, 255, 170, 0.2) !important;
}

.theme-cyber .text-emerald-400 {
  color: #00ffaa !important;
}

.theme-cyber .text-emerald-300 {
  color: #6ee7b7 !important;
}

.theme-cyber .bg-emerald-500\/10,
.theme-cyber .bg-emerald-500\/15,
.theme-cyber .bg-emerald-500\/20 {
  background-color: rgba(0, 255, 170, 0.12) !important;
  border-color: rgba(0, 255, 170, 0.3) !important;
}

.theme-cyber .tab-btn.active {
  background: rgba(0, 255, 170, 0.12) !important;
  color: #00ffaa !important;
  border-color: rgba(0, 255, 170, 0.35) !important;
}

.theme-cyber .score-badge-high {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.15) 0%, rgba(16, 185, 129, 0.25) 100%) !important;
  border-color: rgba(0, 255, 170, 0.35) !important;
  color: #00ffaa !important;
}

/* ----------------- 4. NORDIC FROST THEME ----------------- */
.theme-nordic body {
  background-color: #070e1b !important;
  color: #e2e8f0 !important;
}

.theme-nordic header {
  background-color: #0a1424 !important;
  border-bottom-color: #1e3a5f !important;
}

.theme-nordic header .border-b {
  border-color: #12233c !important;
}

.theme-nordic .bg-slate-900,
.theme-nordic .bg-slate-900\/70,
.theme-nordic .bg-slate-900\/80,
.theme-nordic .bg-slate-900\/60,
.theme-nordic .bg-slate-900\/50,
.theme-nordic .bg-slate-900\/95,
.theme-nordic .bg-slate-950,
.theme-nordic .bg-slate-950\/50,
.theme-nordic .bg-slate-950\/60,
.theme-nordic .bg-slate-950\/80 {
  background-color: #0d1b2e !important;
}

.theme-nordic .border-slate-800,
.theme-nordic .border-slate-800\/80,
.theme-nordic .border-slate-800\/60,
.theme-nordic .border-slate-800\/50,
.theme-nordic .border-slate-700,
.theme-nordic .border-slate-700\/80 {
  border-color: #1a3252 !important;
}

.theme-nordic .job-card {
  background-color: #0d1b2e !important;
  border-color: #1a3252 !important;
}

.theme-nordic .job-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.25) !important;
}

.theme-nordic .text-emerald-400 {
  color: #38bdf8 !important;
}

.theme-nordic .text-emerald-300 {
  color: #7dd3fc !important;
}

.theme-nordic .bg-emerald-500\/10,
.theme-nordic .bg-emerald-500\/15,
.theme-nordic .bg-emerald-500\/20 {
  background-color: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

.theme-nordic .tab-btn.active {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

.theme-nordic .score-badge-high {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.3) 100%) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #7dd3fc !important;
}

/* -------------------------------------------------------------------------
   STICKY JOBS FEED HEADER IN HEADER (Tracks, Scope Banner, Filter Count & Sort Bar)
   Row 3 inside <header>: permanently docked and constant at the top while scrolling
------------------------------------------------------------------------- */
#header-find-jobs-bar {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Theme-Specific Adaptations for Sticky Jobs Row 3 */
.theme-clear #header-find-jobs-bar {
  background-color: #ffffff !important;
  border-top-color: #e2e8f0 !important;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
}
.theme-clear #header-find-jobs-bar .bg-slate-900 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

.theme-midnight #header-find-jobs-bar {
  background-color: #050508 !important;
  border-top-color: #18181b !important;
}

.theme-cyber #header-find-jobs-bar {
  background-color: #031710 !important;
  border-top-color: #072a20 !important;
}

.theme-nordic #header-find-jobs-bar {
  background-color: #0a1424 !important;
  border-top-color: #12233c !important;
}
