/* ===== ALUMNI PORTAL - NAVY & GOLD THEME =====
   Fonts (Inter + Sora) are loaded via <link> tags in base.html's
   <head> rather than @import here — @import is render-blocking and
   delays the browser from discovering the font request. */

:root {
  --primary-dark:   #0F1B3D;
  --primary-main:   #1A3A6B;
  --primary-mid:    #2D5F9E;
  --primary-light:  #7BA7D9;
  --primary-pale:   #E1ECFA;
  --primary-faint:  #F4F8FD;
  --white:         #FFFFFF;
  --gray-50:       #F9FAFB;
  --gray-100:      #F3F4F6;
  --gray-200:      #E5E7EB;
  --gray-300:      #D1D5DB;
  --gray-400:      #9CA3AF;
  --gray-500:      #6B7280;
  --gray-600:      #4B5563;
  --gray-700:      #374151;
  --gray-800:      #1F2937;
  --gray-900:      #111827;
  --accent-gold:   #D4A843;
  --success:       #059669;
  --warning:       #D97706;
  --error:         #EF4444;
  --shadow-sm:     0 1px 3px rgba(26,58,107,0.08);
  --shadow-md:     0 4px 16px rgba(26,58,107,0.12);
  --shadow-lg:     0 8px 32px rgba(26,58,107,0.18);
  --shadow-xl:     0 20px 60px rgba(26,58,107,0.22);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:      0.15s;
  --dur:           0.25s;
  --dur-slow:      0.4s;
  --control-h:     48px;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Consistent, visible keyboard focus everywhere (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--primary-mid);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-main) !important;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.navbar-brand span {
  color: var(--primary-dark);
}

.nav-link {
  font-weight: 500;
  color: var(--gray-600) !important;
  transition: color 0.2s ease;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-main) !important;
  background: var(--primary-faint);
}

.btn-nav-login {
  background: var(--white);
  border: 1.5px solid var(--primary-main);
  color: var(--primary-main) !important;
  border-radius: var(--radius-sm);
  padding: 0.4rem 1rem !important;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-nav-login:hover {
  background: var(--primary-faint) !important;
}

.btn-nav-primary {
  background: var(--primary-main);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  padding: 0.4rem 1.1rem !important;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-nav-primary:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-faint) 0%, var(--primary-pale) 50%, var(--white) 100%);
  padding: 80px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,58,107,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(167,139,250,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-pale);
  color: var(--primary-dark);
  border: 1px solid rgba(26,58,107,0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  background: var(--primary-main);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(26,58,107,0.3);
}

.btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,58,107,0.4);
  color: var(--white);
  text-decoration: none;
}

.btn-hero-secondary {
  background: var(--white);
  color: var(--primary-main);
  border: 2px solid var(--primary-pale);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
}

.btn-hero-secondary:hover {
  border-color: var(--primary-main);
  background: var(--primary-faint);
  transform: translateY(-2px);
  color: var(--primary-main);
  text-decoration: none;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat-item .stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-main);
  line-height: 1;
}

.hero-stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 2px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-card-float {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  max-width: 320px;
  width: 100%;
  position: relative;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-card-icon {
  width: 48px; height: 48px;
  background: var(--primary-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.hero-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.hero-card-text {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.floating-tag {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  border: 1px solid var(--primary-pale);
  display: flex; align-items: center; gap: 6px;
  animation: float 3.5s ease-in-out infinite;
}

/* ===== CHECK LIST (benefit/feature bullet lists) ===== */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list .check-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--primary-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}
.check-list .check-text { color: var(--gray-700); line-height: 1.6; font-size: 0.95rem; }
.check-list .check-text strong { color: var(--gray-900); }

/* ===== SECTIONS ===== */
.section-pad { padding: 72px 0; }
.section-pad-sm { padding: 48px 0; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-mid);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
}

/* ===== CARDS ===== */
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px; height: 52px;
  background: var(--primary-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===== FORMS ===== */
.auth-page {
  background: var(--gray-50);
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px 44px;
  border: 1px solid var(--gray-200);
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.auth-card-wide {
  max-width: 640px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  text-decoration: none;
}

.auth-logo-icon {
  width: 40px; height: 40px;
  background: var(--primary-main);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #fff !important;
}
.auth-logo-icon i {
  color: #fff !important;
}

.auth-logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-main);
}

.auth-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.auth-subtitle {
  font-size: 0.92rem;
  color: var(--gray-400);
  margin-bottom: 1.8rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  display: block;
}

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .form-control {
  padding-right: 56px;
}
.input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}

.form-control {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-height: var(--control-h);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: all var(--dur) var(--ease);
  width: 100%;
}
textarea.form-control { min-height: 120px; height: auto; }

.form-control:focus {
  outline: none;
  border-color: var(--primary-main);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}

.form-control.is-invalid { border-color: var(--error); }

.invalid-feedback {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 4px;
}

.form-group { margin-bottom: 18px; }

.btn-primary-full {
  width: 100%;
  background: var(--primary-main);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 13px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(26,58,107,0.25);
  margin-top: 4px;
}

.btn-primary-full:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(26,58,107,0.35);
}

.auth-divider {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  margin: 20px 0;
  position: relative;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%; width: 40%;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-link {
  color: var(--primary-main);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-link:hover { text-decoration: underline; color: var(--primary-dark); }

.auth-switch {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.back-link:hover {
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.topbar-back-link {
  background: var(--primary-main);
  color: var(--white);
}
.topbar-back-link:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* ===== DASHBOARD ===== */
.dashboard-page {
  background: var(--gray-50);
  min-height: calc(100vh - 70px);
  padding: 32px 0;
}

.dash-header {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-dark));
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  color: var(--white);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.dash-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.dash-welcome {
  font-family: 'Sora', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.dash-subtitle { font-size: 0.9rem; opacity: 0.8; }

.admin-navbar {
  display: flex;
  gap: 4px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-200);
  overflow-x: auto;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.admin-nav-link:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}
.admin-nav-link.active {
  background: var(--primary-main);
  color: var(--white);
}



.dash-btn {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--gray-900);
  display: block;
  height: 100%;
}

.dash-btn:hover {
  border-color: var(--primary-main);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: var(--gray-900);
  text-decoration: none;
}

.dash-btn-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.dash-btn-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--gray-900);
}

.dash-btn-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-faint), var(--primary-pale));
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
}

.page-header-title {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.page-header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-400);
}

.page-header-breadcrumb a {
  color: var(--primary-main);
  text-decoration: none;
  font-weight: 500;
}

/* ===== ADMIN TABLE ===== */
.admin-table-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table thead {
  background: var(--primary-main);
  color: var(--white);
}

.admin-table th {
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.3px;
}

.admin-table td {
  padding: 13px 18px;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td { background: var(--primary-faint); }

/* ===== BADGES ===== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-brand { background: var(--primary-pale); color: var(--primary-dark); }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-gold { background: #FEF3C7; color: #92400E; }

/* ===== ALERTS ===== */
.alert {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success { background: #D1FAE5; color: #065F46; }
.alert-danger  { background: #FEE2E2; color: #991B1B; }
.alert-info    { background: var(--primary-pale); color: var(--primary-dark); }

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 56px 0 28px;
}

.footer-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand span { color: var(--primary-light); }

.footer-desc { font-size: 0.88rem; line-height: 1.7; color: var(--gray-400); }

.footer-heading {
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-link {
  display: block;
  color: var(--gray-400);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--primary-light); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 28px 0 20px;
}

.footer-bottom {
  font-size: 0.82rem;
  color: var(--gray-400);
  text-align: center;
}

/* ===== MISC ===== */
.text-brand { color: var(--primary-main); }
.bg-brand-faint { background: var(--primary-faint); }
.divider-brand { height: 3px; width: 48px; background: var(--primary-main); border-radius: 2px; margin-bottom: 16px; }

.info-block {
  background: var(--primary-faint);
  border-left: 4px solid var(--primary-main);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.user-avatar {
  width: 38px; height: 38px;
  background: var(--primary-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
  border: 2px solid var(--primary-light);
}

/* =========================================================
   APP SHELL — SIDEBAR LAYOUT (Dashboard / Job Board / etc.)
   ========================================================= */
.app-shell-body {
  background: var(--gray-50);
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.app-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 264px;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px 18px;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 36px; height: 36px;
  background: var(--primary-main);
  color: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(26,58,107,0.3);
}

.sidebar-brand-text {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gray-900);
}

.sidebar-brand-text span { color: var(--primary-main); }

.sidebar-close {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.1rem;
  cursor: pointer;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
}

.sidebar-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 0 12px;
  margin: 18px 0 8px;
}

.sidebar-nav-label:first-child { margin-top: 0; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  margin-bottom: 3px;
  transition: all 0.18s ease;
}

.sidebar-link i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: var(--gray-400);
  transition: color 0.18s ease;
}

.sidebar-link:hover {
  background: var(--primary-faint);
  color: var(--primary-main);
  text-decoration: none;
}

.sidebar-link:hover i { color: var(--primary-main); }

.sidebar-link.active {
  background: var(--primary-main);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26,58,107,0.28);
}

.sidebar-link.active i { color: var(--white); }

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--gray-100);
}

.sidebar-logout { color: var(--error); }
.sidebar-logout i { color: var(--error); }
.sidebar-logout:hover { background: #FEE2E2; color: #991B1B; }
.sidebar-logout:hover i { color: #991B1B; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.5);
  z-index: 1030;
}

.sidebar-overlay.show { display: block; }

/* ---- Main area ---- */
.app-main {
  margin-left: 264px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  height: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.app-topbar-left {
  position: absolute;
  left: 28px;
  display: flex;
}

.app-topbar-right {
  position: absolute;
  right: 28px;
  display: flex;
}

.sidebar-toggle {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  font-size: 1.2rem;
  color: var(--gray-700);
  flex-shrink: 0;
}

.app-topbar-search {
  flex: 0 1 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  padding: 6px 6px 6px 6px;
  color: var(--gray-400);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.app-topbar-search:focus-within {
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.08);
}
.app-topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  color: var(--gray-800);
  padding: 4px 0;
}
.search-brand-icon {
  width: 32px; height: 32px;
  background: var(--primary-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,58,107,0.25);
}

.admin-stat-box {
  background: var(--primary-main);
  color: white;
  border-radius: 10px;
  padding: 10px 20px;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 4px 14px rgba(26,58,107,0.3);
}
.admin-stat-box .stat-label {
  font-size: 0.7rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-stat-box .stat-count {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
}

.app-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.18s;
}

.topbar-icon-btn:hover { background: var(--primary-faint); color: var(--primary-main); }

.topbar-dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.topbar-divider {
  width: 1px;
  height: 30px;
  background: var(--gray-200);
  margin: 0 6px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-user-name {
  font-weight: 700;
  font-size: 0.87rem;
  color: var(--gray-900);
  line-height: 1.2;
}

.topbar-user-role {
  font-size: 0.76rem;
  color: var(--gray-400);
}

.app-content {
  padding: 26px 28px 48px;
  flex: 1;
  width: 100%;
}

/* ---- Stat cards ---- */
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  transition: all 0.2s;
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-card-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
}

.stat-card-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ---- Profile completeness card ---- */
.profile-card {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.profile-card-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem; }
.profile-card-role { font-size: 0.82rem; opacity: 0.85; margin-bottom: 14px; font-weight: 500; }

.profile-progress {
  height: 7px;
  background: rgba(255,255,255,0.25);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 6px;
}

.profile-progress-bar {
  height: 100%;
  background: #34D399;
  border-radius: 50px;
}

.profile-progress-label { font-size: 0.78rem; opacity: 0.85; }

.profile-detail-item { font-size: 0.9rem; color: var(--gray-800); font-weight: 500; }
.profile-detail-item strong { font-size: 0.8rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; display: block; margin-bottom: 2px; }

/* ---- Company chip ---- */
.company-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all 0.2s;
  height: 100%;
}

.company-chip:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-light); }

.company-chip-logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

.company-chip-name { font-weight: 600; font-size: 0.87rem; color: var(--gray-800); }

/* ---- Job recommendation / listing card ---- */
.job-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  height: 100%;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-sm);
}

.job-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  color: inherit;
  text-decoration: none;
}
.job-card-top { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.job-card-top-link { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 200px; }
.interest-btn { flex-shrink: 0; }
.job-card a, .job-card a:hover { color: inherit; text-decoration: none !important; }
.job-card-top-link, .job-card-body-link { color: inherit; text-decoration: none; }
.job-card-top-link:hover, .job-card-body-link:hover { color: inherit; }
.interest-btn { white-space: nowrap; font-size: 0.78rem; }
.job-card-interested {
  border-color: var(--primary-main);
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-faint) 100%);
}

.job-card-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--primary-faint);
  color: var(--primary-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.job-card-title { font-weight: 700; font-size: 1.05rem; color: var(--primary-dark); letter-spacing: -0.01em; }

.job-card-meta { font-size: 0.75rem; color: var(--gray-400); margin-top: 1px; }

.job-card-info { font-size: 0.88rem; line-height: 1.9; }
.job-card-info .detail-label { font-weight: 600; color: var(--gray-500); min-width: 85px; display: inline-block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
.job-card-info > div { color: var(--gray-800); font-weight: 500; font-size: 0.9rem; }

.job-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }

.tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--gray-100);
  color: var(--gray-700);
}

.tag-pill-brand { background: var(--primary-faint); color: var(--primary-dark); }
.tag-pill-green  { background: #D1FAE5; color: #065F46; }
.tag-pill-gold   { background: #FEF3C7; color: #92400E; }

.skill-tag {
  display: inline-block;
  padding: 4px 12px;
  margin: 2px 4px 2px 0;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: default;
  letter-spacing: 0.01em;
}

.job-card-info .skill-tag {
  font-size: 0.8rem;
  padding: 3px 11px;
}
.skill-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.skill-tag button {
  background: none;
  border: none;
  margin-left: 5px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 2px;
  color: inherit;
  font-weight: 700;
  transition: opacity 0.15s;
}
.skill-tag button:hover {
  opacity: 1;
}
.skill-tag-blue  { background: #EEF2FF; color: #4338CA; }
.skill-tag-green { background: #D1FAE5; color: #065F46; }
.skill-tag-purple{ background: #F5F3FF; color: #6D28D9; }
.skill-tag-orange{ background: #FFFBEB; color: #B45309; }
.skill-tag-teal  { background: #F0FDFA; color: #0F766E; }
.skill-tag-rose  { background: #FFF1F2; color: #BE123C; }

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
  margin-top: 4px;
}



.job-card-applicants { font-size: 0.8rem; color: #EA580C; font-weight: 600; }
.job-posted-date { color: #16A34A; font-weight: 600; }

.btn-know-more {
  background: var(--primary-main);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-know-more:hover { background: var(--primary-dark); color: var(--white); }

/* ---- Section header (Job recommendations, etc.) ---- */
.section-flex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.section-flex-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gray-900);
}

.section-see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-main);
  text-decoration: none;
}

.section-see-all:hover { color: var(--primary-dark); }

/* ---- App card (generic white panel used throughout dashboard pages) ---- */
.app-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.app-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-row {
  display: block;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.list-row:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
}

.list-row-title { font-weight: 700; color: var(--primary-dark); font-size: 0.98rem; letter-spacing: -0.01em; }

/* ---- Responsive sidebar ---- */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .app-sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .app-topbar-search { max-width: 220px; }
}

@media (max-width: 575.98px) {
  .app-topbar { padding: 0 16px; gap: 10px; }
  .app-content { padding: 18px 16px 36px; }
  .app-topbar-search { display: none; }
}

/* ===== RESPONSIVE ===== */
#labelLastDate { margin-bottom: 0; }
#id_last_date_to_apply { margin-top: 0; padding-top: 8px; }

@media (min-width: 992px) {
  #labelLastDate { margin-bottom: 6px; }
  #id_last_date_to_apply { padding-top: 11px; }
  .section-pad { padding: 56px 0; }
  .section-pad-sm { padding: 36px 0; }
}

@media (max-width: 767.98px) and (min-width: 576px) {
  /* Covers large phones / small tablets in landscape — previously
     jumped straight from the 768px tablet rules to full desktop,
     leaving multi-column forms (post_opening, edit_profile) cramped. */
  .form-row, .row.g-3, .row.g-4 { row-gap: 16px; }
  .card-body { padding: 20px; }
}

@media (max-width: 768px) {
  .auth-card { padding: 28px 20px; }
  .dash-header { padding: 24px 20px; }
  .hero-section { padding: 48px 0; }
  .hero-stats { gap: 20px; }
  .hero-card-float { display: none; }
  .card-body { padding: 18px; }
  .card-header { padding: 14px 18px; }
}

@media (max-width: 575.98px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .btn { padding: 9px 16px; font-size: 0.86rem; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .form-control, select, .form-select, input[type="date"] { font-size: 16px; } /* prevents iOS zoom-on-focus */
  .applicant-box { padding: 12px; }
  .stat-card { padding: 14px 16px; gap: 12px; }
  .stat-card-icon { width: 38px; height: 38px; font-size: 1.1rem; }
  .stat-card-value { font-size: 1.15rem; }
}

/* ---- Navbar user bar (avatar / name / dashboard / logout) ---- */
@media (max-width: 991.98px) {
  .nav-user-actions {
    flex-wrap: wrap;
    width: 100%;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
  }
}
@media (max-width: 399.98px) {
  .nav-user-actions { gap: 8px !important; }
  .nav-user-actions .user-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
  .nav-user-actions span { font-size: 0.85rem; }
  .btn-nav-primary, .btn-nav-login { padding: 0.35rem 0.75rem !important; font-size: 0.85rem; }
}

/* =========================================================
   BOOTSTRAP OVERRIDES — keep everything on‑theme
   ========================================================= */

/* ---- Buttons ---- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--primary-main);
  border-color: var(--primary-main);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(26,58,107,0.25);
}
.btn-outline-primary {
  color: var(--primary-main);
  border-color: var(--primary-main);
}
.btn-outline-primary:hover {
  background: var(--primary-main);
  border-color: var(--primary-main);
  color: var(--white);
}
.btn-outline-secondary {
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn-outline-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-800);
}
.btn-success {
  background: #059669;
  border-color: #059669;
}
.btn-success:hover {
  background: #047857;
  border-color: #047857;
}
.btn-danger {
  background: #EF4444;
  border-color: #EF4444;
}
.btn-danger:hover {
  background: #DC2626;
  border-color: #DC2626;
}
.btn-secondary {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-700);
}
.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
  color: var(--gray-900);
}
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ---- Cards ---- */
.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.user-detail-row {
  display: flex;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.user-detail-row:last-child { border-bottom: none; }
.user-detail-label {
  min-width: 120px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.user-detail-value {
  font-size: 0.92rem;
  color: var(--gray-800);
  font-weight: 500;
}

.card-header {
  padding: 16px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body { padding: 24px; }
.card-footer {
  padding: 14px 24px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

/* ---- Badges (also used as .badge) ---- */
.badge {
  font-weight: 600;
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 0.75rem;
  vertical-align: middle;
}
.badge.bg-primary { background: var(--primary-pale) !important; color: var(--primary-dark) !important; }
.badge.bg-success { background: #D1FAE5 !important; color: #065F46 !important; }
.badge.bg-warning { background: #FEF3C7 !important; color: #92400E !important; }
.badge.bg-danger  { background: #FEE2E2 !important; color: #991B1B !important; }
.badge.bg-info    { background: #DBEAFE !important; color: #1E40AF !important; }
.badge.bg-secondary { background: var(--gray-100) !important; color: var(--gray-600) !important; }
.badge.bg-light   { background: var(--gray-50) !important; color: var(--gray-600) !important; border: 1px solid var(--gray-200) !important; }

/* ===== THEME UTILITY CLASSES ===== */

.quick-action-bar {
  background: linear-gradient(90deg, var(--primary-main), var(--primary-dark));
  padding: 10px 0;
}
.back-link {
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.back-link:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
  transform: translateX(-2px);
}

/* ===== PAGE-LOAD / SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.app-content > *,
main > .container > * {
  animation: fadeInUp var(--dur-slow) var(--ease) both;
}
/* Stagger direct children so page-load reads as a considered
   entrance rather than one flat blink. Capped at 5 steps — anything
   deeper just inherits the last delay. */
.app-content > *:nth-child(1), main > .container > *:nth-child(1) { animation-delay: 0s; }
.app-content > *:nth-child(2), main > .container > *:nth-child(2) { animation-delay: 0.06s; }
.app-content > *:nth-child(3), main > .container > *:nth-child(3) { animation-delay: 0.12s; }
.app-content > *:nth-child(4), main > .container > *:nth-child(4) { animation-delay: 0.18s; }
.app-content > *:nth-child(n+5), main > .container > *:nth-child(n+5) { animation-delay: 0.24s; }
.row.g-4 > div:nth-child(1) .feature-card { animation-delay: 0s; }
.row.g-4 > div:nth-child(2) .feature-card { animation-delay: 0.05s; }
.row.g-4 > div:nth-child(3) .feature-card { animation-delay: 0.1s; }
.row.g-4 > div:nth-child(4) .feature-card { animation-delay: 0.15s; }
.row.g-4 > div:nth-child(5) .feature-card { animation-delay: 0.2s; }
.row.g-4 > div:nth-child(6) .feature-card { animation-delay: 0.25s; }
.feature-card {
  animation: fadeInUp var(--dur-slow) var(--ease) both;
}
.card, .job-card, .list-row, .stat-card, .auth-card {
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Lift is reserved for cards that are actually clickable/interactive
   units (job listings, stat tiles, linked cards) — not static content
   or form wrappers, where a bounce on hover reads as accidental motion. */
.job-card, .stat-card, a.card {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.job-card:hover, .stat-card:hover, a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.dropdown-menu {
  animation: fadeInUp var(--dur-fast) var(--ease) both;
}

.quick-link {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}
.quick-link:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
}

.applicant-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
}

.detail-label {
  font-weight: 600;
  color: var(--gray-700);
}

.avatar-lg {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.form-section-title {
  font-weight: 700;
  color: var(--primary-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-state {
  text-align: center;
  padding: 48px 0;
}
.empty-state-icon {
  font-size: 2.6rem;
  color: var(--primary-main);
  opacity: 0.3;
  margin-bottom: 8px;
}
.empty-state-title {
  font-weight: 700;
  margin-top: 8px;
  color: var(--gray-900);
}
.empty-state-desc {
  font-size: 0.88rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.interest-avatar {
  width: 42px; height: 42px;
  background: var(--primary-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-sm {
  width: 24px; height: 24px;
  background: var(--primary-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-md {
  width: 38px; height: 38px;
  background: var(--primary-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Description Box ---- */
.desc-box {
  background: linear-gradient(135deg, var(--primary-faint) 0%, #FFFFFF 100%);
  border: 1px solid var(--primary-pale);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 8px;
  color: var(--gray-800);
  line-height: 1.7;
  font-size: 0.92rem;
}
.desc-box ul { padding-left: 20px; margin-bottom: 8px; }
.desc-box li { margin-bottom: 4px; }
.desc-box p { margin-bottom: 8px; }
.desc-box p:last-child { margin-bottom: 0; }
.desc-box strong { color: var(--primary-main); }

/* ---- Description Toggle Button ---- */
.desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1.5px solid var(--primary-pale);
  background: var(--white);
  color: var(--primary-main);
  cursor: pointer;
  transition: all 0.25s ease;
}
.desc-toggle:hover {
  background: var(--primary-main);
  border-color: var(--primary-main);
  color: var(--white);
}
.desc-toggle:hover i {
  color: var(--white);
}
.desc-toggle i {
  font-size: 1rem;
  color: var(--primary-main);
  transition: color 0.25s ease;
}
.desc-toggle.active {
  background: var(--primary-main);
  border-color: var(--primary-main);
  color: var(--white);
}
.desc-toggle.active i {
  color: var(--white);
}

/* ===== DROPDOWNS ===== */
.dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
  min-width: 160px;
}
.dropdown-item {
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.15s;
}
.dropdown-item:hover {
  background: var(--primary-faint);
  color: var(--primary-main);
}
.dropdown-item.active {
  background: var(--primary-main) !important;
  color: var(--white) !important;
}
.dropdown-item.active:hover {
  background: var(--primary-dark) !important;
}
.dropdown-toggle {
  font-weight: 600;
}

/* ===== FORM SELECTS ===== */
select,
select.form-control,
.form-select {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 11px 40px 11px 14px;
  min-height: var(--control-h);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background-color: var(--gray-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='%231A3A6B' d='M213.66 101.66l-80 80a8 8 0 01-11.32 0l-80-80a8 8 0 0111.32-11.32L128 164.69l74.34-74.35a8 8 0 0111.32 11.32z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-shadow: none;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: auto;
  width: 100%;
}
select:hover,
select.form-control:hover,
.form-select:hover {
  border-color: var(--primary-light);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}
select:focus,
select.form-control:focus,
.form-select:focus {
  border-color: var(--primary-main);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.12);
  outline: none;
}
select:disabled,
select.form-control:disabled,
.form-select:disabled {
  background-color: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  box-shadow: none;
}
select.form-select-sm,
.form-select-sm {
  padding: 8px 32px 8px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
select option,
select.form-control option,
.form-select option {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  border-radius: 6px;
}
select option:hover,
select.form-control option:hover,
.form-select option:hover {
  background: var(--primary-faint);
  color: var(--primary-main);
}
select option:checked,
select.form-control option:checked,
.form-select option:checked {
  background: var(--primary-main) !important;
  color: var(--white) !important;
}

/* ===== FORM DATE INPUTS =====
   Matches select/.form-select 1:1: same height, radius, weight,
   background states and a custom calendar glyph in the same slot
   the select's chevron occupies — consistent on every browser. */
input[type="date"],
input[type="date"].form-control {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 11px 40px 11px 14px;
  min-height: var(--control-h);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background-color: var(--gray-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256'%3E%3Cpath fill='%231A3A6B' d='M208 32h-24v-8a8 8 0 00-16 0v8H88v-8a8 8 0 00-16 0v8H48a16 16 0 00-16 16v160a16 16 0 0016 16h160a16 16 0 0016-16V48a16 16 0 00-16-16zM72 48v8a8 8 0 0016 0v-8h80v8a8 8 0 0016 0v-8h24v32H48V48zm136 160H48V96h160v112z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  box-shadow: none;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: relative;
}
input[type="date"]:hover,
input[type="date"].form-control:hover {
  border-color: var(--primary-light);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}
input[type="date"]:focus,
input[type="date"].form-control:focus {
  outline: none;
  border-color: var(--primary-main);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.12);
}
input[type="date"]:disabled,
input[type="date"].form-control:disabled {
  background-color: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  box-shadow: none;
}
@media (min-width: 768px) {
  #id_last_date_to_apply { margin-top: -48px; }
}

/* Hide the native glyph but keep its click/tap target so the
   picker still opens exactly where our custom icon is drawn. */
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  width: 40px;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
input[type="date"]::-webkit-datetime-edit {
  color: var(--gray-800);
  font-weight: 600;
}
input[type="date"]:invalid::-webkit-datetime-edit,
input[type="date"]:not(:valid)::-webkit-datetime-edit {
  color: var(--gray-400);
}
input[type="date"]::-webkit-inner-spin-button {
  display: none;
}
/* Firefox has no pseudo-element hook for the glyph, so its native
   icon is simply suppressed via color-scheme; our SVG glyph above
   already renders identically for it. */
@supports (-moz-appearance: none) {
  input[type="date"] { color-scheme: light; }
}

/* ===== CHECKBOXES & RADIOS ===== */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: auto;
  padding-left: 0;
}
.form-check-input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  border: 1.5px solid var(--gray-300);
  background-color: var(--gray-50);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}
.form-check-input[type="checkbox"] { border-radius: 6px; }
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input:hover {
  border-color: var(--primary-light);
}
.form-check-input:checked {
  background-color: var(--primary-main);
  border-color: var(--primary-main);
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(26,58,107,0.15);
  border-color: var(--primary-main);
}
.form-check-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
}

/* ===== CUSTOM DATE PICKER ===== */
.date-field {
  position: relative;
}
.date-native-input {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  border: none;
  background: none;
}
.date-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  min-height: var(--control-h);
  cursor: pointer;
}
.date-display-text.is-placeholder {
  color: var(--gray-400);
  font-weight: 500;
}
.date-display-icon {
  color: var(--primary-main);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.date-display.is-invalid {
  border-color: var(--error) !important;
}
.date-display:disabled {
  background-color: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
}

.date-panel {
  position: absolute;
  top: calc(100% + 8px);
  width: 300px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  /* No overflow:hidden here on purpose: it clips the browser's
     top-layer select popup (used to round the header's corners),
     which broke anchored positioning for the month/year selects.
     Corners are rounded on the header/footer directly instead. */
  z-index: 1050;
  animation: fadeInUp var(--dur-fast) var(--ease) both;
}

.date-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 10px;
  background: linear-gradient(135deg, var(--primary-main), var(--primary-dark));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.date-nav-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.date-nav-btn:hover { background: rgba(255,255,255,0.25); }

.date-header-selects {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
/* Same closed-box treatment as .form-control select (Experience
   dropdown etc): bordered light box, navy text, chevron glyph —
   just sized down to fit the calendar header. */
.date-month-select,
.date-year-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1.5px solid transparent;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 256 256'%3E%3Cpath fill='%231A3A6B' d='M213.66 101.66l-80 80a8 8 0 01-11.32 0l-80-80a8 8 0 0111.32-11.32L128 164.69l74.34-74.35a8 8 0 0111.32 11.32z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  color: var(--gray-800);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 24px 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: auto;
  box-shadow: none;
  transition: all var(--dur-fast) var(--ease);
}
.date-month-select:hover, .date-year-select:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.date-month-select:focus, .date-year-select:focus {
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.15);
  outline: none;
}
.date-month-select option, .date-year-select option {
  color: var(--gray-700);
  font-weight: 500;
  background: var(--white);
}

.date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px 8px 0;
  gap: 2px;
}
.date-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 6px 8px 10px;
}
.date-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.date-cell:hover:not(.is-disabled) {
  background: var(--primary-faint);
  color: var(--primary-main);
}
.date-cell.is-outside {
  color: var(--gray-300);
}
.date-cell.is-today {
  box-shadow: inset 0 0 0 1.5px var(--primary-main);
  color: var(--primary-main);
  font-weight: 700;
}
.date-cell.is-selected {
  background: var(--primary-main) !important;
  color: var(--white) !important;
  font-weight: 700;
  box-shadow: none;
}
.date-cell.is-disabled {
  color: var(--gray-200);
  cursor: not-allowed;
}

.date-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 12px;
  border-top: 1px solid var(--gray-100);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.date-footer-btn {
  border: none;
  background: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-main);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background var(--dur-fast) var(--ease);
}
.date-footer-btn:hover { background: var(--primary-faint); }
.date-footer-btn-clear { color: var(--gray-500); }
.date-footer-btn-clear:hover { background: var(--gray-100); color: var(--gray-700); }

@media (max-width: 575.98px) {
  .date-panel { width: 100%; left: 0 !important; right: 0 !important; }
}

/* ===== CUSTOM OPEN DROPDOWN PANEL (progressive enhancement) =====
   Styles the actual open list of every <select> to match the closed
   box, using the appearance: base-select API. Browsers that don't
   support it (Firefox/Safari) simply keep the styling already
   applied above and are completely unaffected. */
@supports (appearance: base-select) {
  select,
  select.form-control,
  .form-select,
  .form-select-sm,
  select::picker(select),
  select.form-control::picker(select),
  .form-select::picker(select),
  .form-select-sm::picker(select) {
    appearance: base-select;
  }

  /* base-select resets the closed box to a plain default look, so
     re-apply the same styling used for the non-base-select box */
  select,
  select.form-control,
  .form-select,
  .form-select-sm {
    background-image: none;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-50);
    box-shadow: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .form-select-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  select::picker-icon,
  select.form-control::picker-icon,
  .form-select::picker-icon,
  .form-select-sm::picker-icon {
    flex-shrink: 0;
    margin-left: auto;
  }
  select:hover,
  select.form-control:hover,
  .form-select:hover,
  .form-select-sm:hover {
    border-color: var(--primary-light);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
  }
  select:focus,
  select.form-control:focus,
  .form-select:focus,
  .form-select-sm:focus,
  select:open,
  select.form-control:open,
  .form-select:open,
  .form-select-sm:open {
    border-color: var(--primary-main);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.12);
    outline: none;
  }

  select::picker(select),
  select.form-control::picker(select),
  .form-select::picker(select),
  .form-select-sm::picker(select) {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 6px;
    margin-top: 6px;
    max-height: 280px;
  }

  select option,
  select.form-control option,
  .form-select option,
  .form-select-sm option {
    border-radius: 8px;
    padding: 10px 14px;
    margin: 2px 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  select option:hover,
  select.form-control option:hover,
  .form-select option:hover,
  .form-select-sm option:hover {
    background: var(--primary-faint);
    color: var(--primary-main);
  }

  select option:checked,
  select.form-control option:checked,
  .form-select option:checked,
  .form-select-sm option:checked {
    background: var(--primary-main);
    color: var(--white);
    font-weight: 700;
  }

  select::picker-icon,
  select.form-control::picker-icon,
  .form-select::picker-icon,
  .form-select-sm::picker-icon {
    color: var(--primary-main);
    transition: transform 0.2s ease;
  }

  select:open::picker-icon,
  select.form-control:open::picker-icon,
  .form-select:open::picker-icon,
  .form-select-sm:open::picker-icon {
    transform: rotate(180deg);
  }

  /* Give the calendar's month/year selects the exact same base-select
     treatment (and open-list styling below) as the Experience dropdown.
     Their own .date-month-select/.date-year-select rules above still
     win on specificity for the compact closed-box size. */
  .date-month-select,
  .date-year-select,
  .date-month-select::picker(select),
  .date-year-select::picker(select) {
    appearance: base-select;
  }
  /* In base-select browsers the picker supplies its own arrow via
     ::picker-icon below — drop the manual background-image chevron
     from the non-supports rule above so there's only one arrow. */
  .date-month-select,
  .date-year-select {
    background-image: none;
    padding-right: 20px;
  }
  .date-month-select::picker-icon,
  .date-year-select::picker-icon {
    color: var(--gray-800);
    width: 10px;
    height: 10px;
  }
  .date-month-select::picker(select),
  .date-year-select::picker(select) {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 6px;
    margin-top: 6px;
    max-height: 240px;
    min-width: 120px;
  }
  .date-month-select option,
  .date-year-select option {
    border-radius: 8px;
    padding: 8px 12px;
    margin: 2px 0;
  }
  .date-month-select option:hover,
  .date-year-select option:hover {
    background: var(--primary-faint);
    color: var(--primary-main);
  }
  .date-month-select option:checked,
  .date-year-select option:checked {
    background: var(--primary-main);
    color: var(--white);
    font-weight: 700;
  }
}

/* ================================================================
   CUSTOM JOB PREVIEW POPUP (matches site theme tokens)
   ================================================================ */
.job-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 61, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1080;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.job-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.job-popup {
  background: var(--white);
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--primary-pale);
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.job-popup-overlay.is-open .job-popup {
  transform: translateY(0) scale(1);
}
.job-popup-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-main) 60%, var(--primary-mid) 100%);
  color: var(--white);
  padding: 22px 26px;
  position: relative;
  flex-shrink: 0;
}
.job-popup-header::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: var(--accent-gold);
}
.job-popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.job-popup-close:hover {
  background: rgba(255,255,255,0.28);
  transform: rotate(90deg);
}
.job-popup-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 40px 4px 0;
  line-height: 1.3;
}
.job-popup-domain {
  color: var(--primary-light);
  font-size: 0.88rem;
  font-weight: 500;
}
.job-popup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.job-popup-badge {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.job-popup-body {
  padding: 22px 26px;
  overflow-y: auto;
  flex: 1;
}
.job-popup-body .desc-box {
  margin-top: 0;
}
.job-popup-skills {
  margin-bottom: 18px;
}
.job-popup-skills .detail-label {
  display: block;
  margin-bottom: 8px;
}
.job-popup-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--gray-500);
  gap: 12px;
}
.job-popup-spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--primary-pale);
  border-top-color: var(--primary-main);
  border-radius: 50%;
  animation: job-popup-spin 0.7s linear infinite;
}
@keyframes job-popup-spin {
  to { transform: rotate(360deg); }
}
.job-popup-footer {
  padding: 16px 26px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  background: var(--gray-50);
}
.job-popup-footer-meta {
  font-size: 0.82rem;
  color: var(--gray-500);
}
@media (max-width: 768px) {
  .job-popup { max-width: 100%; border-radius: var(--radius-lg); }
  .job-popup-header { padding: 18px 20px; }
  .job-popup-title { font-size: 1.1rem; }
  .job-popup-domain { font-size: 0.82rem; }
  .job-popup-body { padding: 18px 20px; }
  .job-popup-footer { padding: 14px 20px; }
}
@media (max-width: 576px) {
  .job-popup-overlay { padding: 0; align-items: stretch; }
  .job-popup { max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .job-popup-header { padding: 14px 16px; }
  .job-popup-title { font-size: 1rem; }
  .job-popup-domain { font-size: 0.78rem; }
  .job-popup-close { top: 10px; right: 10px; width: 28px; height: 28px; font-size: 1rem; }
  .job-popup-badges { gap: 4px; margin-top: 10px; }
  .job-popup-badge { font-size: 0.7rem; padding: 3px 8px; }
  .job-popup-body { padding: 14px 16px; }
  .job-popup-footer { padding: 12px 16px; flex-direction: column; align-items: stretch; }
  .job-popup-footer > div { width: 100%; }
  .job-popup-footer-meta { font-size: 0.75rem; }
  .job-popup-skills .detail-label { font-size: 0.82rem; }
}
@media (max-width: 400px) {
  .job-popup-header { padding: 12px 12px; }
  .job-popup-title { font-size: 0.92rem; margin-right: 30px; }
  .job-popup-body { padding: 12px; }
  .job-popup-footer { padding: 10px 12px; gap: 6px; }
  .job-popup-close { top: 8px; right: 8px; width: 24px; height: 24px; font-size: 0.85rem; }
  .job-popup-badge { font-size: 0.65rem; padding: 2px 6px; }
}

/* ================================================================
   CUSTOM ALERT / CONFIRM DIALOGS (replaces native browser popups)
   ================================================================ */
.cdlg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 61, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
}
.cdlg-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.cdlg-box {
  background: var(--white);
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--primary-pale);
  padding: 28px 26px 22px;
  text-align: center;
  transform: translateY(-12px) scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cdlg-overlay.is-open .cdlg-box {
  transform: translateY(0) scale(1);
}
.cdlg-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
}
.cdlg-icon-info    { background: var(--primary-pale); color: var(--primary-main); }
.cdlg-icon-question{ background: var(--primary-pale); color: var(--primary-mid); }
.cdlg-icon-success { background: rgba(5,150,105,0.12); color: var(--success); }
.cdlg-icon-warning  { background: rgba(217,119,6,0.12); color: var(--warning); }
.cdlg-icon-danger  { background: rgba(220,38,38,0.12); color: #DC2626; }
.cdlg-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.cdlg-message {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
  white-space: pre-line;
}
.cdlg-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.cdlg-footer .btn {
  min-width: 96px;
}
@media (max-width: 420px) {
  .cdlg-footer { flex-direction: column-reverse; }
  .cdlg-footer .btn { width: 100%; }
}

/* =========================================================
   LARGE SCREENS / TV — scale the UI up on big monitors and
   TVs so the navbar, search bar, and cards don't stay tiny
   in the middle of a huge display. Content width is already
   capped elsewhere (.container / .app-content) to keep line
   lengths readable — this section only grows component and
   type sizes, it doesn't stretch content edge-to-edge.
   ========================================================= */
@media (min-width: 1600px) {
  body { font-size: 1.05rem; }

  /* Public navbar */
  .navbar-brand { font-size: 1.7rem; }
  .nav-link { font-size: 1.02rem; padding: 0.6rem 1.05rem !important; }
  .nav-user-actions .user-avatar,
  .user-avatar { width: 42px; height: 42px; font-size: 1rem; }
  .btn-nav-primary, .btn-nav-login { padding: 0.55rem 1.3rem !important; font-size: 1rem; }

  /* Dashboard shell (sidebar + topbar + search) */
  .app-sidebar { width: 288px; }
  .app-main { margin-left: 288px; }
  .app-topbar { height: 80px; padding: 0 36px; }
  .app-topbar-left { left: 36px; }
  .app-topbar-right { right: 36px; }
  .app-topbar-search { flex: 0 1 560px; padding: 8px 8px 8px 10px; }
  .app-topbar-search input { font-size: 1rem; }
  .search-brand-icon { width: 36px; height: 36px; font-size: 0.95rem; }
  .sidebar-toggle { width: 44px; height: 44px; font-size: 1.3rem; }
  .sidebar-link { font-size: 0.98rem; padding: 13px 16px; }
  .sidebar-brand-text { font-size: 1.25rem; }

  /* Buttons & form controls */
  .btn { font-size: 1rem; padding: 11px 22px; }
  .btn-sm { font-size: 0.92rem; padding: 8px 16px; }
  .form-control, .form-select, select { font-size: 1rem; padding: 12px 16px; }

  /* Job board / cards */
  .job-card { padding: 22px 24px; }
  .job-card-title { font-size: 1.15rem; }
  .stat-card { padding: 24px 26px; }
  .tag-pill, .skill-tag { font-size: 0.85rem; }
}

@media (min-width: 2200px) {
  body { font-size: 1.15rem; }

  .navbar-brand { font-size: 1.9rem; }
  .nav-user-actions .user-avatar,
  .user-avatar { width: 46px; height: 46px; font-size: 1.1rem; }

  .app-sidebar { width: 320px; }
  .app-main { margin-left: 320px; }
  .app-topbar { height: 88px; }
  .app-topbar-search { flex: 0 1 640px; }

  .btn { font-size: 1.05rem; padding: 12px 24px; }
  .job-card-title { font-size: 1.25rem; }
}
