/*
 * GamaJobs Components v2.0
 * Employer-specific dashboard · Table · Applicant cards · Package cards · QnA
 */

/* ════════════════════════════════════════════════
   DATA TABLE
════════════════════════════════════════════════ */
.gj-table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--gj-border);
  border-radius: var(--gj-r4);
  box-shadow: var(--gj-s0);
}
.gj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--gj-bg);
}
.gj-table thead th {
  padding: 13px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gj-tx-3);
  background: var(--gj-bg-1);
  border-bottom: 1.5px solid var(--gj-border);
  white-space: nowrap;
}
.gj-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gj-border);
  color: var(--gj-tx-2);
  vertical-align: middle;
}
.gj-table tbody tr:last-child td { border-bottom: none; }
.gj-table tbody tr:hover td { background: var(--gj-bg-1); }
.gj-table td.strong { font-weight: 700; color: var(--gj-tx-1); }

/* ════════════════════════════════════════════════
   EMPLOYER JOBS PAGE
════════════════════════════════════════════════ */
.gj-emp-job-card {
  background: var(--gj-bg);
  border: 1.5px solid var(--gj-border);
  border-radius: var(--gj-r4);
  padding: 20px 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: var(--gj-t);
  box-shadow: var(--gj-s0);
}
.gj-emp-job-card:hover { border-color: var(--gj-brand); box-shadow: var(--gj-s1); }
.gj-emp-job-card__title { font-family: var(--gj-font-head); font-size: 15px; font-weight: 700; color: var(--gj-tx-1); margin: 0 0 4px; }
.gj-emp-job-card__meta { font-size: 12px; color: var(--gj-tx-3); display: flex; gap: 12px; flex-wrap: wrap; }
.gj-emp-job-card__actions { display: flex; gap: 8px; align-items: center; }

/* ════════════════════════════════════════════════
   APPLICANT CARD
════════════════════════════════════════════════ */
.gj-applicant-card {
  background: var(--gj-bg);
  border: 1.5px solid var(--gj-border);
  border-radius: var(--gj-r4);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: var(--gj-t);
  box-shadow: var(--gj-s0);
}
.gj-applicant-card:hover { border-color: var(--gj-brand); box-shadow: var(--gj-s1); }
.gj-applicant-card__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gj-border);
  flex-shrink: 0;
  background: var(--gj-bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--gj-brand);
}
.gj-applicant-card__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.gj-applicant-card__info { flex: 1; min-width: 0; }
.gj-applicant-card__name { font-family: var(--gj-font-head); font-size: 15px; font-weight: 700; color: var(--gj-tx-1); margin: 0 0 4px; }
.gj-applicant-card__detail { font-size: 12px; color: var(--gj-tx-3); margin: 0; }
.gj-applicant-card__actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* ════════════════════════════════════════════════
   PACKAGE CARD
════════════════════════════════════════════════ */
.gj-packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gj-package-card {
  background: var(--gj-bg);
  border: 1.5px solid var(--gj-border);
  border-radius: var(--gj-r4);
  padding: 28px 22px;
  text-align: center;
  transition: var(--gj-t);
  position: relative;
  box-shadow: var(--gj-s0);
}
.gj-package-card:hover { border-color: var(--gj-brand); box-shadow: var(--gj-s2); transform: translateY(-4px); }
.gj-package-card.featured {
  border-color: var(--gj-brand);
  background: var(--gj-brand-xlight);
  box-shadow: var(--gj-s2);
}
.gj-package-card__badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--gj-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: var(--gj-rpill);
  white-space: nowrap;
}
.gj-package-card__name { font-family: var(--gj-font-head); font-size: 18px; font-weight: 700; color: var(--gj-tx-1); margin: 8px 0 6px; }
.gj-package-card__price { font-family: var(--gj-font-head); font-size: 36px; font-weight: 700; color: var(--gj-brand); line-height: 1; margin: 12px 0 4px; }
.gj-package-card__price sup { font-size: 18px; vertical-align: top; margin-top: 6px; display: inline-block; }
.gj-package-card__period { font-size: 12px; color: var(--gj-tx-3); margin: 0 0 20px; }
.gj-package-card__features { list-style: none; margin: 0 0 22px; padding: 0; text-align: left; }
.gj-package-card__features li {
  font-size: 13px;
  color: var(--gj-tx-2);
  padding: 7px 0;
  border-bottom: 1px solid var(--gj-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gj-package-card__features li:last-child { border-bottom: none; }
.gj-package-card__features li i { color: var(--gj-green); font-size: 12px; flex-shrink: 0; }

/* ════════════════════════════════════════════════
   PROFILE COMPLETION WIDGET
════════════════════════════════════════════════ */
.gj-profile-score {
  padding: 20px;
  background: var(--gj-bg-1);
  border-bottom: 1px solid var(--gj-border);
}
.gj-profile-score__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gj-profile-score__label { font-size: 12px; font-weight: 700; color: var(--gj-tx-2); text-transform: uppercase; letter-spacing: .05em; }
.gj-profile-score__pct { font-family: var(--gj-font-head); font-size: 20px; font-weight: 700; color: var(--gj-brand); }

/* ════════════════════════════════════════════════
   EXAM / ASSESSMENT CARD
════════════════════════════════════════════════ */
.gj-exam-card {
  background: var(--gj-bg);
  border: 1.5px solid var(--gj-border);
  border-radius: var(--gj-r4);
  padding: 22px;
  transition: var(--gj-t);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gj-exam-card:hover { border-color: var(--gj-brand); box-shadow: var(--gj-s2); }
.gj-exam-card__title { font-family: var(--gj-font-head); font-size: 16px; font-weight: 700; color: var(--gj-tx-1); margin: 0; }
.gj-exam-card__meta { font-size: 12px; color: var(--gj-tx-3); }

/* ════════════════════════════════════════════════
   QNA DETAIL
════════════════════════════════════════════════ */
.gj-qna-item {
  background: var(--gj-bg);
  border: 1.5px solid var(--gj-border);
  border-radius: var(--gj-r4);
  margin-bottom: 12px;
  overflow: hidden;
}
.gj-qna-q {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gj-tx-1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  background: var(--gj-bg);
  transition: var(--gj-t-s);
}
.gj-qna-q:hover { background: var(--gj-bg-1); }
.gj-qna-a {
  padding: 0 20px;
  font-size: 13px;
  color: var(--gj-tx-2);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.gj-qna-a.open { max-height: 600px; padding: 4px 20px 18px; }

/* ════════════════════════════════════════════════
   BLOG / SINGLE POST
════════════════════════════════════════════════ */
.gj-blog-single { max-width: 800px; margin: 0 auto; }
.gj-blog-single__hero { border-radius: var(--gj-r4); overflow: hidden; margin-bottom: 32px; }
.gj-blog-single__hero img { width: 100%; height: 420px; object-fit: cover; }
.gj-blog-single h1 { font-family: var(--gj-font-head); font-size: clamp(22px, 3vw, 34px); font-weight: 700; line-height: 1.2; margin: 0 0 16px; }
.gj-blog-single__content { font-size: 15px; line-height: 1.8; color: var(--gj-tx-2); }
.gj-blog-single__content h2, .gj-blog-single__content h3 { color: var(--gj-tx-1); margin: 28px 0 12px; }
.gj-blog-single__content p { margin-bottom: 18px; }
.gj-blog-single__content ul, .gj-blog-single__content ol { padding-left: 22px; margin-bottom: 18px; }
.gj-blog-single__content li { margin-bottom: 8px; }

/* ════════════════════════════════════════════════
   MAINDASHBOARD (employer landing inside panel)
════════════════════════════════════════════════ */
.gj-emp-main-hero {
  background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
  border-radius: var(--gj-r4);
  padding: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}
.gj-emp-main-hero::before {
  content: '';
  position: absolute;
  right: -50px; top: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.gj-emp-main-hero h2 { font-family: var(--gj-font-head); font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.gj-emp-main-hero p  { font-size: 13px; color: rgba(255,255,255,.65); margin: 0; }

/* ════════════════════════════════════════════════
   FIND CANDIDATE / RESUME CARDS
════════════════════════════════════════════════ */
.gj-candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gj-candidate-card {
  background: var(--gj-bg);
  border: 1.5px solid var(--gj-border);
  border-radius: var(--gj-r4);
  padding: 22px;
  transition: var(--gj-t);
  box-shadow: var(--gj-s0);
}
.gj-candidate-card:hover { border-color: var(--gj-brand); box-shadow: var(--gj-s2); transform: translateY(-2px); }
.gj-candidate-card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.gj-candidate-card__name { font-family: var(--gj-font-head); font-size: 15px; font-weight: 700; color: var(--gj-tx-1); margin: 0 0 3px; }
.gj-candidate-card__exp  { font-size: 12px; color: var(--gj-tx-3); margin: 0; }

/* ════════════════════════════════════════════════
   EMPLOYER SIDEBAR NAV
════════════════════════════════════════════════ */
.gj-emp-sidebar-profile {
  text-align: center;
  padding: 24px 16px 16px;
  background: linear-gradient(180deg, var(--gj-brand-xlight) 0%, var(--gj-bg) 100%);
  border-bottom: 1.5px solid var(--gj-border);
}
.gj-emp-sidebar-profile__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--gj-brand);
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
}
.gj-emp-sidebar-profile__avatar-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--gj-brand);
  background: var(--gj-brand-light);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--gj-brand);
}
.gj-emp-sidebar-profile h4 { font-size: 15px; font-weight: 700; color: var(--gj-tx-1); margin: 0 0 3px; }
.gj-emp-sidebar-profile p  { font-size: 12px; color: var(--gj-tx-3); margin: 0; }

/* ════════════════════════════════════════════════
   JOBSEEKER profile avatar in sidebar
════════════════════════════════════════════════ */
.gj-js-sidebar-profile {
  text-align: center;
  padding: 28px 20px 20px;
  position: relative;
}
.gj-js-sidebar-profile .avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.gj-js-sidebar-profile img.avatar-img {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gj-brand);
}
.gj-js-sidebar-profile .avatar-edit-btn {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gj-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid #fff;
}
.gj-js-sidebar-profile h4 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.gj-js-sidebar-profile .email { font-size: 12px; color: var(--gj-tx-3); }
.gj-js-sidebar-profile .verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--gj-green); font-weight: 600;
}

/* ════════════════════════════════════════════════
   MINI STAT BOXES (sidebar)
════════════════════════════════════════════════ */
.gj-mini-stats { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.gj-mini-stat {
  background: var(--gj-bg);
  border: 1.5px solid var(--gj-border);
  border-radius: var(--gj-r3);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--gj-t-s);
}
.gj-mini-stat:hover { border-color: var(--gj-brand); background: var(--gj-brand-xlight); }
.gj-mini-stat__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.gj-mini-stat__num { font-family: var(--gj-font-head); font-size: 20px; font-weight: 700; color: var(--gj-tx-1); margin: 0; line-height: 1; }
.gj-mini-stat__lbl { font-size: 11px; color: var(--gj-tx-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ════════════════════════════════════════════════
   CV / RESUME CARD
════════════════════════════════════════════════ */
.gj-cv-card {
  background: var(--gj-bg);
  border: 1.5px solid var(--gj-border);
  border-radius: var(--gj-r3);
  padding: 14px;
  margin-bottom: 10px;
}
.gj-cv-card__row { display: flex; align-items: center; gap: 10px; }
.gj-cv-card img.cv-icon { width: 36px; flex-shrink: 0; }
.gj-cv-card__name { font-size: 13px; font-weight: 600; color: var(--gj-tx-1); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gj-cv-card__date { font-size: 11px; color: var(--gj-tx-3); margin: 0; }
.gj-cv-card__actions { display: flex; justify-content: space-between; margin-top: 10px; }
.gj-cv-card__actions a { font-size: 12px; color: var(--gj-brand); font-weight: 600; }
.gj-cv-card__del { font-size: 12px; color: var(--gj-red); font-weight: 600; cursor: pointer; }

/* ════════════════════════════════════════════════
   SECTION-LEVEL CARD (reusable inside dash)
════════════════════════════════════════════════ */
.gj-profile-section {
  background: var(--gj-bg);
  border: 1.5px solid var(--gj-border);
  border-radius: var(--gj-r4);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--gj-s0);
}
.gj-profile-section__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gj-border);
}
.gj-profile-section__hd h3 { font-size: 14px; font-weight: 700; margin: 0; color: var(--gj-tx-1); }
.gj-profile-section__hd h3 i { color: var(--gj-brand); margin-right: 7px; }

.gj-exp-item, .gj-edu-item {
  padding: 13px 14px;
  background: var(--gj-bg-1);
  border-radius: var(--gj-r3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid var(--gj-border);
}
.gj-exp-item:last-child, .gj-edu-item:last-child { margin-bottom: 0; }
.gj-exp-item__title { font-size: 14px; font-weight: 700; color: var(--gj-tx-1); margin: 0 0 3px; }
.gj-exp-item__sub   { font-size: 12px; color: var(--gj-tx-3); margin: 0; }
.gj-item-actions    { display: flex; gap: 8px; flex-shrink: 0; }
.gj-item-actions a  { font-size: 15px; color: var(--gj-tx-3); transition: var(--gj-t-s); }
.gj-item-actions a:hover { color: var(--gj-brand); }
.gj-item-actions .del:hover { color: var(--gj-red); }

/* ════════════════════════════════════════════════
   EMPLOYER PROFILE / COMPANY FORM
════════════════════════════════════════════════ */
.gj-emp-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--gj-border);
  flex-wrap: wrap;
}
.gj-emp-profile-header__logo {
  width: 80px; height: 80px;
  border-radius: var(--gj-r3);
  border: 2px solid var(--gj-border);
  overflow: hidden;
  background: var(--gj-bg-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--gj-brand);
  flex-shrink: 0;
}
.gj-emp-profile-header__logo img { width: 100%; height: 100%; object-fit: cover; }
.gj-emp-profile-header h3 { font-family: var(--gj-font-head); font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.gj-emp-profile-header p  { font-size: 13px; color: var(--gj-tx-3); margin: 0; }

/* ════════════════════════════════════════════════
   SELECT2 / JQUERY MULTI-SELECT overrides
════════════════════════════════════════════════ */
.select2-container--default .select2-selection--multiple {
  border: 1.5px solid var(--gj-border) !important;
  border-radius: var(--gj-r3) !important;
  background: var(--gj-bg-1) !important;
  min-height: 44px !important;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--gj-brand) !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,.1) !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--gj-brand-light) !important;
  border-color: var(--gj-border-2) !important;
  color: var(--gj-brand) !important;
  border-radius: var(--gj-rpill) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.select2-dropdown { border: 1.5px solid var(--gj-border) !important; border-radius: var(--gj-r3) !important; box-shadow: var(--gj-s2) !important; }
.select2-results__option--highlighted { background: var(--gj-brand) !important; }

/* ════════════════════════════════════════════════
   FILTER-MULTI-SELECT (jobseeker selectjquery)
════════════════════════════════════════════════ */
.filter-multi-select { border: 1.5px solid var(--gj-border) !important; border-radius: var(--gj-r3) !important; }

/* ════════════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════════════ */
.gj-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.gj-breadcrumb a { color: rgba(255,255,255,.55); transition: var(--gj-t-s); }
.gj-breadcrumb a:hover { color: #fff; }
.gj-breadcrumb i { font-size: 9px; }
.gj-breadcrumb span { color: rgba(255,255,255,.85); font-weight: 600; }
.gj-breadcrumb span[aria-hidden] { color: rgba(255,255,255,.35); font-weight: 400; }

/* ════════════════════════════════════════════════
   NOTICE / INFO BOX
════════════════════════════════════════════════ */
.gj-notice {
  padding: 14px 18px;
  border-radius: var(--gj-r3);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.gj-notice i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.gj-notice p  { margin: 0; line-height: 1.55; }
.gj-notice-info   { background: var(--gj-brand-light);  color: var(--gj-brand);  border: 1px solid var(--gj-border-2); }
.gj-notice-warn   { background: var(--gj-amber-light);  color: var(--gj-amber);  border: 1px solid #FCD34D; }
.gj-notice-success { background: var(--gj-green-light); color: var(--gj-green);  border: 1px solid #6EE7B7; }
.gj-notice-error  { background: var(--gj-red-light);    color: var(--gj-red);    border: 1px solid #FECACA; }

/* ════════════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════════════ */
.gj-empty {
  text-align: center;
  padding: 56px 24px;
}
.gj-empty__icon { font-size: 56px; color: var(--gj-border-2); margin-bottom: 20px; }
.gj-empty h4 { font-size: 17px; font-weight: 700; color: var(--gj-tx-2); margin: 0 0 8px; }
.gj-empty p  { font-size: 13px; color: var(--gj-tx-3); margin: 0 0 20px; }

/* ════════════════════════════════════════════════
   APPLIED JOBS / SAVED JOBS LIST
════════════════════════════════════════════════ */
.gj-applied-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1.5px solid var(--gj-border);
  flex-wrap: wrap;
  transition: var(--gj-t-s);
}
.gj-applied-row:last-child { border-bottom: none; }
.gj-applied-row:hover { background: var(--gj-bg-1); }
.gj-applied-row__icon {
  width: 44px; height: 44px;
  border-radius: var(--gj-r3);
  background: var(--gj-brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gj-brand);
  flex-shrink: 0;
}
.gj-applied-row__title { font-size: 14px; font-weight: 700; color: var(--gj-tx-1); margin: 0 0 3px; }
.gj-applied-row__meta  { font-size: 12px; color: var(--gj-tx-3); margin: 0; }
