:root { --bg:#0b0f14; --panel:#111823; --muted:#6b7a90; --text:#e6eef8; --brand:#4cc8ff; --brand-2:#8bffb1; --accent:#ffd166; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: radial-gradient(1200px 800px at 10% -10%, #0f1724 0, #0b0f14 60%), var(--bg);
  color: var(--text); font: 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
}
header { padding: 24px; text-align: center; }
header h1 { margin: 0 0 6px; font-weight: 700; letter-spacing: 0.2px; }
header p { margin: 0; color: var(--muted); }

main { max-width: 1100px; margin: 0 auto; padding: 16px 24px 40px; }
.controls { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 16px; backdrop-filter: blur(6px); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
input { background: var(--panel); border: 1px solid rgba(255,255,255,0.08); color: var(--text); padding: 10px 12px; border-radius: 8px; outline: none; }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(76,200,255,0.15); }

.actions { display: flex; gap: 10px; }
button { appearance: none; border: none; padding: 10px 14px; border-radius: 10px; font-weight: 600; letter-spacing: 0.2px; cursor: pointer; color: #05121a; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
button.secondary { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.12); }
button:hover { filter: brightness(1.05); }

.status { min-height: 24px; padding: 10px 0; color: var(--muted); }

.layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; margin-top: 8px; }
.sidebar { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px; height: max-content; position: sticky; top: 12px; }
.sidebar h2 { font-size: 14px; margin: 0 0 8px; color: var(--muted); }
.title-filters { display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.title-filters label { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text); }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.card { background: rgba(14,20,31,0.9); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.card h3 { margin: 0; font-size: 16px; }
.card h3 a { color: #a7d8ff; text-decoration: none; }
.card h3 a:hover { color: #d6f0ff; text-decoration: underline; }
.meta { color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; color: var(--text); border: 1px solid rgba(255,255,255,0.12); padding: 2px 8px; border-radius: 999px; }
.score { color: var(--accent); font-weight: 700; }
.keyword-matches { color: var(--brand); font-weight: 600; }

.merged-indicator {
  color: #4CAF50;
  font-weight: 600;
  background: rgba(76, 175, 80, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}
.card.no-description { border-color: rgba(255,255,255,0.03); opacity: 0.8; }
.card.no-description .desc { color: var(--muted); font-style: italic; }

/* Job Description Styles */
.desc {
  color: #cfe1f1;
  font-size: 13px;
  max-height: 7.5rem;
  overflow: auto;
  margin-top: 1rem;
  line-height: 1.5;
}


/* Location styling */
.meta .location {
  font-weight: 600;
  color: var(--brand);
}

/* Card header with save button */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-header h3 {
  flex: 1;
  margin: 0;
}

.save-job-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 1rem;
  flex-shrink: 0;
}

.save-job-btn:hover {
  border-color: var(--brand);
  background: rgba(255,255,255,0.05);
}

.save-job-btn.saved {
  border-color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
}

.save-icon {
  font-size: 1.2rem;
  display: block;
}

/* Main Layout and Tab Styling */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.tab-container {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: rgba(255,255,255,0.05);
}

.tab-content {
  padding: 2rem;
}

.tab-panel {
  display: none;
}

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

/* Filters Container */
.filters-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-height: 400px;
}

.filters-sidebar {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.5rem;
}

.filters-sidebar h3 {
  color: var(--brand);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.filters-content {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.5rem;
}

/* Location Filter */
.location-filter {
  margin-bottom: 2rem;
}

.state-search {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text);
  margin-bottom: 1rem;
}

.state-search:focus {
  outline: none;
  border-color: var(--brand);
}

.state-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}

.state-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.state-item:hover {
  background: rgba(255,255,255,0.05);
}

.state-item.selected {
  background: var(--brand);
  color: var(--bg);
  font-weight: 600;
}

/* Bucket Filter */
.bucket-filter {
  margin-bottom: 1rem;
}

.bucket-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.bucket-option {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bucket-option:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--brand);
}

.bucket-option.selected {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}

.bucket-option input[type="checkbox"] {
  margin-right: 0.75rem;
}

/* Active Filters */
.active-filters {
  min-height: 100px;
  margin-bottom: 1.5rem;
}

.filter-tag {
  display: inline-block;
  background: var(--brand);
  color: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin: 0.25rem;
  position: relative;
}

.filter-tag .remove {
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: bold;
}

.no-filters {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  gap: 1rem;
}

.filter-actions button {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-actions .primary {
  background: var(--brand);
  color: var(--bg);
  border: none;
}

.filter-actions .primary:hover {
  filter: brightness(1.1);
}

.filter-actions .secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}

.filter-actions .secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--brand);
}

footer { text-align: center; color: var(--muted); padding: 20px; }


