* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
body {
  background: #eef1f8;
  color: #1a1a1a;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0056d2;
  letter-spacing: 0.5px;
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
#userDisplay {
  font-weight: 600;
  color: #333;
}
.logout-btn {
  background: #0056d2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.edit-profile-btn {
  background: #f4f6fa;
  color: #0056d2;
  border: 1px solid #0056d2;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.edit-profile-btn:hover {
  background: #e6edfb;
}

#editProfileForm label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  margin: 10px 0 4px;
}

.nav-avatar-wrap {
  cursor: pointer;
  display: block;
}
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef1f8;
  color: #0056d2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid #0056d2;
}
.nav-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0056d2;
}

.nav-menu-wrap {
  position: relative;
}
.nav-menu-btn {
  background: #f4f6fa;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}
.nav-menu-btn:hover {
  border-color: #0056d2;
  color: #0056d2;
}
.nav-menu-dropdown {
  position: absolute;
  right: 0;
  top: 46px;
  width: 210px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 50;
  padding: 8px 0;
}
.nav-menu-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
.nav-menu-dropdown a:hover {
  background: #f4f6fa;
  color: #0056d2;
}

.notif-wrap {
  position: relative;
}
.notif-bell {
  background: #f4f6fa;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
}
.notif-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #d9534f;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 6px;
  min-width: 16px;
}
.notif-dropdown {
  position: absolute;
  right: 0;
  top: 46px;
  width: 300px;
  max-height: 380px;
  overflow-y: auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 50;
}
.notif-header {
  padding: 14px 16px;
  font-weight: 700;
  border-bottom: 1px solid #eef1f8;
  color: #1a1a1a;
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f2f4f8;
  font-size: 0.85rem;
}
.notif-item.unread {
  background: #f0f5ff;
}
.notif-item p {
  margin: 0 0 4px 0;
  color: #333;
}
.notif-time {
  font-size: 0.72rem;
  color: #999;
}
.logout-btn:hover {
  background: #003d99;
}

.page-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 24px;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-left: 4px solid #0056d2;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.stat-icon {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0056d2;
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  color: #667;
  margin-top: 4px;
}

/* Section headers */
.section-header {
  margin-bottom: 16px;
}
.jobs h2, .applications h2 {
  color: #1a1a1a;
  font-size: 1.3rem;
  letter-spacing: 0.2px;
}
.section-sub {
  color: #667;
  font-size: 0.87rem;
  margin-top: 4px;
}

.jobs {
  margin-bottom: 40px;
}

.search-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search-bar input {
  flex: 1;
  min-width: 200px;
  padding: 11px 14px;
  border: 1px solid #d5dae3;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: white;
}
.search-bar input:focus {
  outline: none;
  border-color: #0056d2;
}

/* Job cards */
.empty-state {
  color: #778;
  text-align: center;
  padding: 30px 10px;
  background: white;
  border-radius: 12px;
}
.job-list {
  display: grid;
  gap: 16px;
}
.job-card {
  background: white;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.job-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.job-card h3 {
  color: #1a1a1a;
  font-size: 1.1rem;
}
.job-card p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #444;
}
.job-desc {
  color: #555;
  font-size: 0.88rem;
  line-height: 1.5;
  background: #f7f9fc;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 8px;
}

.matched-skills {
  color: #1e7e34;
  font-size: 0.83rem !important;
  font-weight: 600;
}

.match-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.match-high {
  background: #e6f4ea;
  color: #1e7e34;
}
.match-medium {
  background: #fff6e0;
  color: #a3760a;
}
.match-low {
  background: #eef1f8;
  color: #667;
}

.link-btn {
  background: none;
  border: none;
  color: #0056d2;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  font-size: 0.85rem;
  margin-top: 4px;
}
.link-btn:hover {
  text-decoration: underline;
}

.apply-btn {
  display: block;
  width: 100%;
  background: #0056d2;
  color: white;
  border: none;
  padding: 11px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 14px;
  transition: background 0.2s ease;
}
.apply-btn:hover {
  background: #003d99;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,86,210,0.25);
}

/* Applications */
.applications {
  background: white;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
#applicationsList {
  list-style: none;
  margin-top: 14px;
}
#applicationsList li {
  padding: 10px 14px;
  background: #f7f9fc;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  border: 1px solid #e5e9f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.status-received {
  background: #eef1f8;
  color: #556;
}
.status-reviewed {
  background: #e0ecff;
  color: #0056d2;
}
.status-shortlisted {
  background: #fff6e0;
  color: #a3760a;
}
.status-accepted {
  background: #e6f4ea;
  color: #1e7e34;
}
.status-rejected {
  background: #fdecea;
  color: #c0392b;
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.popup-content {
  background: white;
  padding: 30px;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}
.popup-content h3 {
  color: #0056d2;
  margin-bottom: 18px;
}
.popup-content input,
.popup-content select,
.popup-content textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #d5dae3;
  border-radius: 7px;
  font-size: 0.9rem;
  font-family: inherit;
}
.popup-content input:focus,
.popup-content select:focus,
.popup-content textarea:focus {
  outline: none;
  border-color: #0056d2;
}
.popup-content label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.submit-btn {
  width: 100%;
  background: #0056d2;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 6px;
}
.submit-btn:hover {
  background: #003d99;
}
.close-btn {
  width: 100%;
  background: transparent;
  color: #667;
  border: 1px solid #d5dae3;
  padding: 11px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
}
.close-btn:hover {
  background: #f4f6fa;
}

footer {
  text-align: center;
  padding: 24px;
  color: #778;
  font-size: 0.85rem;
}

/* Heading font — Poppins for visual hierarchy against Inter body text */
h1, h2, h3, .logo, .brand, .gate-box h2 {
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
}
