body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #f5f7fa;
  color: #222;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar h1 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0d2240;
}
.navbar h1 span { color: #3B82F6; }
.navbar a { text-decoration: none; color: #555; font-weight: 500; margin: 0 0.75rem; transition: color 0.2s; }
.navbar a:hover, .navbar a.active { color: #3B82F6; }
.menu-btn, .logout-btn {
  background: none;
  border: none;
  color: #0d2240;
  font-size: 1.2rem;
  cursor: pointer;
}
.run-date {
  color: #999;
  font-size: 0.75rem;
}

/* SIDEBAR */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0; left: 0;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 100;
}
.sidebar a {
  display: block;
  padding: 12px 20px;
  color: #0d2240;
  font-weight: 500;
  text-decoration: none;
}
.sidebar a:hover { background: #f0f4ff; }
.close-btn {
  position: absolute; top: 10px; right: 15px;
  font-size: 1.5rem; background: none; border: none; cursor: pointer; color: #0d2240;
}
.control-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control {
  height: 40px;
  display: flex;
  align-items: center;
}

/* FILTERS */
.content {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-item select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
}

/* SWITCH */
.switch { position: relative; display: inline-block; width: 48px; height: 24px; }
.switch input { display:none; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute; content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white; transition: .4s;
  border-radius: 50%;
}
input:checked + .slider { background-color: #3B82F6; }
input:checked + .slider:before { transform: translateX(24px); }

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.job-card {
  background: white;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.job-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
.job-card input.job-select {
  transform: scale(1.2);
}
.job-card input.job-select:checked + .job-title {
  opacity: 0.6;
}
.job-title {
  font-weight: 600;
  color: #0d2240;
  text-decoration: none;
}
.job-meta {
  font-size: 0.85rem;
  color: #555;
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.job-summary {
  flex-grow: 1;
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.icon-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.icon-btn:hover { transform: scale(1.1); }
.icon-btn.danger { color: #e11d48; }
.icon-btn.success { color: #16a34a; }

.match-btn {
  align-self: flex-start;
  background: #3B82F6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.match-btn:hover { background: #2563eb; }

/* TITLES */
.section-title {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #0d2240;
}
.section-title span {
  color: #3B82F6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .filters { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-center { display: none; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in 0.25s ease-out; }

.analysis-block {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.analysis-block h3 {
  font-size: 14px;
  font-weight: 600;
  color: #212b46;
  margin-bottom: 4px;
}
.analysis-block p {
  font-size: 13px;
  color: #333;
  line-height: 1.45;
  white-space: pre-wrap;
}
/* Hide scrollbar but keep scroll */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

