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

/* Sidebar */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0056d2, #003d99);
  color: white;
  padding: 28px 22px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.75;
  margin-bottom: 30px;
}
.profile-block {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto 12px auto;
  border: 2px solid rgba(255,255,255,0.4);
}
.avatar-wrap {
  position: relative;
  display: block;
  width: 64px;
  margin: 0 auto 12px auto;
  cursor: pointer;
}
.avatar-wrap .avatar {
  margin: 0;
}
.avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
}
.avatar-edit {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.profile-block h2 {
  font-size: 1.15rem;
  margin: 0 0 6px 0;
  word-break: break-word;
}
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.verify-badge {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
}
.verify-badge.verified {
  background: rgba(46, 204, 113, 0.22);
  color: #d4f5df;
}
.verify-badge.pending {
  background: rgba(255, 193, 7, 0.22);
  color: #ffe9b0;
}
.pending-notice {
  background: #fff8e6;
  border: 1px solid #ffe0a3;
  color: #8a6100;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.83rem;
  margin-bottom: 16px;
  line-height: 1.4;
}
.profile-details p {
  margin: 12px 0;
  font-size: 0.87rem;
  line-height: 1.4;
  word-break: break-word;
}
.profile-details .label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.logout-btn {
  margin-top: auto;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 11px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.logout-btn:hover {
  background: rgba(255,255,255,0.25);
}

.edit-profile-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 11px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: background 0.2s ease;
}
.edit-profile-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* Edit Profile popup */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.popup-content {
  background: white;
  padding: 30px;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}
.popup-content h3 {
  color: #1a2b4c;
  margin-bottom: 18px;
}
.popup-content label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  margin-top: 10px;
}
.popup-content input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5dae3;
  border-radius: 7px;
  font-size: 0.9rem;
  font-family: inherit;
}
.popup-content input:focus {
  outline: none;
  border-color: #1a2b4c;
}
.popup-content .submit-btn {
  width: 100%;
  background: #1a2b4c;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 18px;
}
.popup-content .close-btn {
  width: 100%;
  background: none;
  border: none;
  color: #888;
  padding: 10px;
  cursor: pointer;
  font-weight: 600;
}

/* Main */
.main {
  flex: 1;
  padding: 36px 44px;
  max-width: 1200px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.topbar h1 {
  font-size: 1.6rem;
  margin: 0 0 4px 0;
}
.subtext {
  color: #667;
  margin: 0 0 26px 0;
}

.notif-wrap {
  position: relative;
}

.topbar-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.nav-menu-wrap {
  position: relative;
}
.nav-menu-btn {
  background: white;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  height: 44px;
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-menu-btn:hover {
  border-color: #0056d2;
  color: #0056d2;
}
.nav-menu-dropdown {
  position: absolute;
  right: 0;
  top: 52px;
  width: 220px;
  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.87rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
.nav-menu-dropdown a:hover {
  background: #f4f6fa;
  color: #0056d2;
}
.nav-menu-divider {
  height: 1px;
  background: #eef1f8;
  margin: 6px 0;
}
.notif-bell {
  background: white;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.notif-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #d9534f;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 6px;
  min-width: 16px;
}
.notif-dropdown {
  position: absolute;
  right: 0;
  top: 52px;
  width: 320px;
  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;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 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);
  display: flex;
  flex-direction: column;
  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 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0056d2;
}
.stat-label {
  font-size: 0.82rem;
  color: #667;
  margin-top: 4px;
}

/* Dashboard grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: white;
  padding: 26px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.card h3 {
  margin-top: 0;
  color: #0056d2;
  font-size: 1.1rem;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  margin-bottom: 14px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #444;
  font-size: 0.87rem;
}
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5dae3;
  border-radius: 7px;
  font-size: 0.93rem;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0056d2;
  box-shadow: 0 0 0 3px rgba(0,86,210,0.12);
}
.submit-btn {
  width: 100%;
  background: #0056d2;
  color: white;
  border: none;
  padding: 13px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 6px;
  transition: background 0.2s ease;
}
.submit-btn:hover {
  background: #003d99;
}

/* Job cards */
.empty-state {
  color: #778;
  text-align: center;
  padding: 30px 10px;
  font-size: 0.92rem;
}
.job-card {
  background: #f7f9fc;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #e5e9f0;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.job-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.job-card h4 {
  margin: 0 0 6px 0;
  color: #1a1a1a;
  font-size: 1.02rem;
}
.job-meta {
  color: #667;
  font-size: 0.85rem;
  margin: 4px 0;
}
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.tag-open {
  background: #e6f4ea;
  color: #1e7e34;
}
.tag-expired {
  background: #fdecea;
  color: #c0392b;
}
.danger-btn {
  background: #d9534f;
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  margin: 10px 0 6px 0;
  transition: background 0.2s ease;
}
.danger-btn:hover {
  background: #b52b27;
}
.job-card h5 {
  margin: 12px 0 8px 0;
  font-size: 0.85rem;
  color: #444;
}
.applicant-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.applicant-list li {
  background: #fff;
  padding: 9px 11px;
  margin-bottom: 6px;
  border-radius: 6px;
  border: 1px solid #e2e6ee;
  font-size: 0.85rem;
}
.applicant-list li.no-applicants {
  color: #889;
  border-style: dashed;
}
.applicant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.applicant-row > div {
  flex: 1;
  min-width: 200px;
}
.applicant-list a {
  color: #0056d2;
  font-weight: 600;
  text-decoration: none;
}
.applicant-list a:hover {
  text-decoration: underline;
}
.status-select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d5dae3;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0056d2;
}

/* 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;
}
