/**
 * JSAID Enterprise - front-end design system.
 * Repalette (this session): the brand colors were the navy/gold read off
 * jsaid.com.ng's live Settings defaults. The approved Claude Design
 * mockups (33 .dc.html screens covering every dashboard) use a different,
 * deliberately-chosen brown/terracotta/oxblood palette instead - the user
 * confirmed the design files are the source of truth for color, not the
 * old site defaults. Variable NAMES are kept as-is (--jsaid-navy,
 * --jsaid-gold, ...) so every template/widget that already reads them
 * repaints automatically; only the hex values below changed. Renaming
 * "navy" to something that still means "the same color role" is future
 * cleanup, not required for this repalette to be correct.
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --jsaid-navy: #6b2f2f;        /* was #0F2942 - primary/oxblood, from the design files */
  --jsaid-navy-soft: #5a2626;   /* was #16324d - hover state for the primary color */
  --jsaid-gold: #c9a35c;        /* was #C9A227 - Job Portal accent, from the design files */
  --jsaid-gold-soft: #d8c9a3;   /* was #f3e6c8 - LMS accent / secondary dot color */
  --jsaid-ink: #2a2320;         /* was #1c2126 - body text + dark banner background */
  --jsaid-text-soft: #857a6f;   /* was #5b6470 - secondary text */
  --jsaid-text-muted: #a89b8c;  /* new - nav section labels, faint captions */
  --jsaid-nav-text: #4a3f37;    /* new - sidebar nav item text (not muted, not ink) */
  --jsaid-line: #e8e1d6;        /* was #e2e5e9 */
  --jsaid-surface: #ffffff;
  --jsaid-page: #fbf9f6;        /* was #f7f8fa */
  --jsaid-radius: 10px;
  --jsaid-radius-sm: 8px;
  --jsaid-radius-lg: 14px;
  --jsaid-radius-xl: 16px;
  --jsaid-shadow: 0 1px 2px rgba(42,35,32,.04), 0 1px 3px rgba(42,35,32,.06);
  --jsaid-font: 'Manrope', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --jsaid-font-display: 'Space Grotesk', var(--jsaid-font);
  --jsaid-sidebar-width: 264px;
}

/* Base */
.jsaid-el-grid, .jsaid-el-dashboard, .jsaid-el-form, .jsaid-course-catalog,
.jsaid-el-search, .jsaid-el-filters, .jsaid-verify-email, .jsaid-login-form-wrap {
  font-family: var(--jsaid-font);
  color: var(--jsaid-ink);
}

/* Buttons - every submit/primary button in this plugin uses the real
   brand gold, not a generic blue or the browser default gray. */
.jsaid-el-form button[type="submit"],
.jsaid-el-search button[type="submit"],
.jsaid-btn-primary {
  background: var(--jsaid-gold);
  color: var(--jsaid-navy);
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
}
.jsaid-el-form button[type="submit"]:hover,
.jsaid-el-search button[type="submit"]:hover,
.jsaid-btn-primary:hover {
  filter: brightness(0.94);
}
.jsaid-el-form button[type="submit"]:active,
.jsaid-btn-primary:active {
  transform: scale(0.98);
}

/* Cards */
.jsaid-el-card, .jsaid-course-card, .jsaid-el-row {
  background: var(--jsaid-surface);
  border: 1px solid var(--jsaid-line);
  border-radius: var(--jsaid-radius);
  box-shadow: var(--jsaid-shadow);
  padding: 18px 20px;
  transition: box-shadow .15s ease, transform .1s ease;
}
.jsaid-el-card:hover, .jsaid-course-card:hover {
  box-shadow: 0 4px 14px rgba(16,24,40,.08);
  transform: translateY(-1px);
}
.jsaid-el-card h4, .jsaid-course-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--jsaid-navy);
}
.jsaid-course-card .price {
  color: var(--jsaid-gold);
  font-weight: 700;
  font-size: 15px;
}

/* Forms */
.jsaid-el-form input[type="text"],
.jsaid-el-form input[type="email"],
.jsaid-el-form input[type="password"],
.jsaid-el-form input[type="tel"],
.jsaid-el-form input[type="url"],
.jsaid-el-form input[type="file"],
.jsaid-el-form select,
.jsaid-el-form textarea,
.jsaid-el-search input[type="search"] {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--jsaid-line);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--jsaid-font);
  background: var(--jsaid-surface);
  color: var(--jsaid-ink);
  margin-top: 4px;
}
.jsaid-el-form input:focus,
.jsaid-el-form select:focus,
.jsaid-el-form textarea:focus {
  outline: none;
  border-color: var(--jsaid-gold);
  box-shadow: 0 0 0 3px var(--jsaid-gold-soft);
}
.jsaid-el-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--jsaid-navy);
  margin-bottom: 12px;
}
.jsaid-el-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 8px;
}
.jsaid-el-form legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--jsaid-text-soft);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 10px;
}

/* Verify-email / status pages */
.jsaid-verify-email {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 24px;
}
.jsaid-verify-email .icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 24px;
}
.jsaid-verify-email.status-pending .icon { background: var(--jsaid-gold-soft); color: #8a5a1f; }
.jsaid-verify-email.status-success .icon { background: #e3efe6; color: #2f6b46; }
.jsaid-verify-email.status-error .icon { background: #f6e6e2; color: #9a3a30; }
.jsaid-verify-email h2 { color: var(--jsaid-navy); margin: 0 0 8px; }
.jsaid-verify-email p { color: var(--jsaid-text-soft); margin: 0 0 20px; }

/* Login card wrapper */
.jsaid-login-form-wrap {
  max-width: 380px;
  margin: 0 auto;
  background: var(--jsaid-surface);
  border: 1px solid var(--jsaid-line);
  border-radius: var(--jsaid-radius);
  box-shadow: var(--jsaid-shadow);
  padding: 32px;
}
.jsaid-login-form-wrap .login-username-field,
.jsaid-login-form-wrap .login-password-field {
  margin-bottom: 16px;
}
.jsaid-login-form-wrap input[type="text"],
.jsaid-login-form-wrap input[type="password"] {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--jsaid-line);
  border-radius: 8px;
  font-size: 14px;
  margin-top: 4px;
}
.jsaid-login-form-wrap input[type="submit"] {
  background: var(--jsaid-gold);
  color: var(--jsaid-navy);
  border: none;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

/* Grids */
.jsaid-el-grid { display: grid; gap: 20px; }

@media (max-width: 640px) {
  .jsaid-el-grid { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   Job Portal - visually inspired by a modern recruitment-platform layout
   (hero + search band + category grid + job listing), rebuilt with the
   JSAID navy/gold palette instead of the reference's green, and running
   entirely on --jsaid-* vars so it can never drift from the rest of the
   plugin's design system.
   ========================================================================== */
.jsaid-jobportal {
  font-family: var(--jsaid-font);
  color: var(--jsaid-ink);
  max-width: 1100px;
  margin: 0 auto;
}

.jsaid-jp-hero {
  background: linear-gradient(135deg, var(--jsaid-navy), var(--jsaid-navy-soft));
  border-radius: var(--jsaid-radius);
  padding: 56px 32px 72px;
  text-align: center;
  color: #fff;
}
.jsaid-jp-hero-inner { max-width: 640px; margin: 0 auto; }
.jsaid-jp-hero h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
.jsaid-jp-hero p { color: rgba(255,255,255,.78); font-size: 15px; margin: 0; }

.jsaid-jp-search {
  margin: -40px 20px 0;
  background: var(--jsaid-surface);
  border-radius: var(--jsaid-radius);
  box-shadow: 0 8px 24px rgba(16,24,40,.12);
  padding: 16px;
  position: relative;
  z-index: 1;
}
.jsaid-jp-search-form { display: grid; grid-template-columns: 2fr 1.4fr 1.4fr auto; gap: 10px; }
.jsaid-jp-search-form input,
.jsaid-jp-search-form select {
  padding: 11px 13px;
  border: 1px solid var(--jsaid-line);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--jsaid-font);
}
.jsaid-jp-search-form button {
  background: var(--jsaid-gold);
  color: var(--jsaid-navy);
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0 24px;
  cursor: pointer;
}
@media (max-width: 780px) {
  .jsaid-jp-search-form { grid-template-columns: 1fr; }
  .jsaid-jp-search { margin-top: -24px; }
}

.jsaid-jp-categories, .jsaid-jp-featured, .jsaid-jp-listing, .jsaid-jp-two-col, .jsaid-jp-cta, .jsaid-jp-similar {
  padding: 48px 20px 0;
}
.jsaid-jp-categories h2, .jsaid-jp-featured h2, .jsaid-jp-listing h2, .jsaid-jp-cta h2 {
  text-align: center;
  font-size: 24px;
  color: var(--jsaid-navy);
  margin: 0 0 28px;
}
.jsaid-jp-listing-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.jsaid-jp-listing-head h2 { margin: 0; text-align: left; }
.jsaid-jp-sort select { padding: 8px 10px; border: 1px solid var(--jsaid-line); border-radius: 8px; margin-left: 6px; }

.jsaid-jp-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.jsaid-jp-category-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--jsaid-surface); border: 1px solid var(--jsaid-line); border-radius: var(--jsaid-radius);
  padding: 22px 12px; text-align: center; text-decoration: none; color: var(--jsaid-ink);
  transition: box-shadow .15s ease, transform .1s ease;
}
.jsaid-jp-category-card:hover { box-shadow: 0 4px 14px rgba(16,24,40,.08); transform: translateY(-2px); }
.jsaid-jp-category-card .icon { font-size: 26px; }
.jsaid-jp-category-card .name { font-weight: 600; color: var(--jsaid-navy); font-size: 14px; }
.jsaid-jp-category-card .count { font-size: 12.5px; color: var(--jsaid-gold); font-weight: 600; }
@media (max-width: 780px) { .jsaid-jp-category-grid { grid-template-columns: repeat(2, 1fr); } }

.jsaid-jp-featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jsaid-jp-featured-card {
  display: block; background: var(--jsaid-surface); border: 1px solid var(--jsaid-line); border-radius: var(--jsaid-radius);
  padding: 18px; text-decoration: none; color: var(--jsaid-ink); position: relative;
  transition: box-shadow .15s ease, transform .1s ease;
}
.jsaid-jp-featured-card:hover { box-shadow: 0 4px 14px rgba(16,24,40,.08); transform: translateY(-2px); }
.jsaid-jp-featured-card .badge {
  display: inline-block; background: var(--jsaid-gold-soft); color: #8a5a1f; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; border-radius: 4px; padding: 3px 8px; margin-bottom: 10px;
}
.jsaid-jp-featured-card h4 { margin: 0 0 6px; color: var(--jsaid-navy); font-size: 15px; }
.jsaid-jp-featured-card span { color: var(--jsaid-text-soft); font-size: 13px; }
@media (max-width: 780px) { .jsaid-jp-featured-grid { grid-template-columns: 1fr; } }

.jsaid-jp-joblist { display: flex; flex-direction: column; gap: 12px; }
.jsaid-jobrow {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--jsaid-surface); border: 1px solid var(--jsaid-line); border-radius: var(--jsaid-radius);
  padding: 16px 20px; transition: box-shadow .15s ease;
}
.jsaid-jobrow:hover { box-shadow: var(--jsaid-shadow); }
.jsaid-jobrow-main { display: flex; align-items: center; gap: 14px; }
.jsaid-jobrow-logo {
  width: 44px; height: 44px; border-radius: 10px; background: var(--jsaid-navy); color: var(--jsaid-gold);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.jsaid-jobrow h3 { margin: 0 0 4px; font-size: 15.5px; }
.jsaid-jobrow h3 a { color: var(--jsaid-navy); text-decoration: none; }
.jsaid-jobrow h3 a:hover { text-decoration: underline; }
.jsaid-jobrow-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--jsaid-text-soft); font-size: 12.5px; }
.jsaid-jobrow-actions { display: flex; align-items: center; gap: 12px; }
.jsaid-jobrow-deadline { font-size: 12px; color: var(--jsaid-text-soft); white-space: nowrap; }
.jsaid-save-job-btn {
  background: none; border: 1px solid var(--jsaid-line); border-radius: 8px; width: 38px; height: 38px;
  font-size: 16px; cursor: pointer; color: var(--jsaid-text-soft); line-height: 1;
}
.jsaid-save-job-btn.is-saved { color: #c0392b; border-color: #f0c4bd; }

.jsaid-jp-empty { text-align: center; color: var(--jsaid-text-soft); padding: 40px 0; }

.jsaid-jp-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.jsaid-jp-pagination a {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--jsaid-line); color: var(--jsaid-navy); text-decoration: none; font-size: 13px;
}
.jsaid-jp-pagination a.is-active { background: var(--jsaid-gold); color: var(--jsaid-navy); border-color: var(--jsaid-gold); font-weight: 700; }

.jsaid-jp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.jsaid-jp-two-col h3 { color: var(--jsaid-navy); font-size: 16px; margin: 0 0 12px; }
@media (max-width: 780px) { .jsaid-jp-two-col { grid-template-columns: 1fr; } }

.jsaid-jp-cta {
  text-align: center; background: var(--jsaid-navy); color: #fff; border-radius: var(--jsaid-radius);
  padding: 48px 24px; margin: 48px 20px 0;
}
.jsaid-jp-cta h2 { color: #fff; }
.jsaid-jp-cta p { color: rgba(255,255,255,.75); margin: 0 0 20px; }

.jsaid-jp-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jsaid-jp-testimonial-card {
  background: var(--jsaid-surface); border: 1px solid var(--jsaid-line); border-radius: var(--jsaid-radius);
  padding: 22px; margin: 0;
}
.jsaid-jp-testimonial-card .quote-mark { font-size: 32px; color: var(--jsaid-gold); line-height: 1; }
.jsaid-jp-testimonial-card p { color: var(--jsaid-ink); font-size: 14px; line-height: 1.6; margin: 8px 0 14px; }
.jsaid-jp-testimonial-card footer strong { display: block; color: var(--jsaid-navy); font-size: 13.5px; }
.jsaid-jp-testimonial-card footer span { color: var(--jsaid-text-soft); font-size: 12.5px; }
@media (max-width: 780px) { .jsaid-jp-testimonial-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Global Application Shell - the sidebar+topbar chrome every front-end
   dashboard (Student/Instructor/Employer/Moderator) is wrapped in.
   Ported from the approved Claude Design mockups' shell structure
   (264px sidebar, sticky topbar, section-grouped nav with dot indicators).
   ========================================================================== */
.jsaid-shell {
  display: flex;
  min-height: 70vh;
  font-family: var(--jsaid-font);
  color: var(--jsaid-ink);
  background: var(--jsaid-page);
  margin: -1px 0 0; /* pulls flush against most themes' content padding without fighting it */
}
.jsaid-shell h1, .jsaid-shell h2, .jsaid-shell h3, .jsaid-shell h4 { font-family: var(--jsaid-font-display); }

.jsaid-sidebar {
  width: var(--jsaid-sidebar-width);
  flex-shrink: 0;
  background: var(--jsaid-surface);
  border-right: 1px solid var(--jsaid-line);
  display: flex;
  flex-direction: column;
}
.jsaid-sidebar-head { padding: 24px 24px 20px; display: flex; align-items: center; justify-content: space-between; }
.jsaid-sidebar-brand { font-family: var(--jsaid-font-display); font-weight: 700; font-size: 20px; letter-spacing: .5px; color: var(--jsaid-navy); }
.jsaid-sidebar-portal { font-size: 11px; color: var(--jsaid-text-soft); letter-spacing: .6px; text-transform: uppercase; margin-top: 2px; }
.jsaid-sidebar-close { display: none; border: none; background: none; font-size: 20px; color: var(--jsaid-text-soft); cursor: pointer; line-height: 1; }

.jsaid-sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 16px 24px; }
.jsaid-nav-section-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--jsaid-text-muted); padding: 16px 12px 8px; }
.jsaid-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--jsaid-radius-sm);
  color: var(--jsaid-nav-text); font-weight: 500; font-size: 14px; margin-bottom: 2px; text-decoration: none;
}
a.jsaid-nav-item:hover { background: var(--jsaid-page); text-decoration: none; }
.jsaid-nav-item.is-active { background: color-mix(in srgb, var(--jsaid-navy) 8%, transparent); color: var(--jsaid-navy); font-weight: 600; }
.jsaid-nav-item.is-disabled { cursor: default; color: var(--jsaid-text-muted); justify-content: space-between; }
.jsaid-nav-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; background: var(--jsaid-gold-soft); }
.jsaid-nav-dot-primary { background: var(--jsaid-navy); }
.jsaid-nav-dot-job { background: var(--jsaid-gold); }
.jsaid-nav-soon { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; background: var(--jsaid-page); border: 1px solid var(--jsaid-line); border-radius: 999px; padding: 1px 7px; }

.jsaid-sidebar-foot { padding: 16px 24px 24px; border-top: 1px solid var(--jsaid-line); display: flex; align-items: center; gap: 10px; }
.jsaid-sidebar-user-name { font-size: 13px; font-weight: 600; }
.jsaid-sidebar-user-role { font-size: 11px; color: var(--jsaid-text-soft); }

.jsaid-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--jsaid-navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.jsaid-avatar-sm { width: 34px; height: 34px; font-size: 12px; }

.jsaid-shell-main { flex: 1; display: flex; flex-direction: column; min-width: 0; transition: margin-left .2s ease; }

.jsaid-topbar {
  position: sticky; top: 32px; z-index: 20; background: var(--jsaid-surface); border-bottom: 1px solid var(--jsaid-line);
  display: flex; align-items: center; gap: 16px; padding: 14px 32px; flex-wrap: wrap;
}
/* The nav toggle is visible at every width now, not just mobile - on
   desktop it collapses the always-on sidebar instead of opening an
   off-canvas one, so there's one control that always does something
   useful regardless of viewport. */
.jsaid-mobile-toggle {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--jsaid-line); background: var(--jsaid-surface); border-radius: var(--jsaid-radius-sm);
  width: 38px; height: 38px; font-size: 16px; cursor: pointer; flex-shrink: 0;
}
.jsaid-mobile-overlay { display: none; }

/* Desktop sidebar collapse - width animates to 0 rather than an
   off-canvas transform, since above the mobile breakpoint the sidebar
   sits inline in the flex row, not fixed/overlaid. */
.jsaid-sidebar { transition: width .2s ease, opacity .15s ease; overflow: hidden; }
.jsaid-shell.is-nav-collapsed .jsaid-sidebar { width: 0; opacity: 0; border-right: none; }
.jsaid-topbar-search {
  flex: 1; min-width: 160px; max-width: 420px; padding: 10px 14px; border-radius: var(--jsaid-radius);
  border: 1px solid var(--jsaid-line); background: var(--jsaid-page); font-size: 14px; font-family: inherit; color: var(--jsaid-ink);
}
.jsaid-topbar-spacer { flex: 1; }

.jsaid-notif-wrap { position: relative; }
.jsaid-notif-btn {
  position: relative; border: 1px solid var(--jsaid-line); background: var(--jsaid-surface); border-radius: var(--jsaid-radius);
  width: 40px; height: 40px; cursor: pointer; font-size: 16px;
}
.jsaid-notif-badge {
  position: absolute; top: -4px; right: -4px; background: #a23b3b; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.jsaid-notif-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 320px; max-height: 400px; overflow-y: auto;
  background: var(--jsaid-surface); border: 1px solid var(--jsaid-line); border-radius: var(--jsaid-radius-lg);
  box-shadow: 0 8px 24px rgba(42,35,32,.14); z-index: 30;
}
.jsaid-notif-dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--jsaid-line); }
.jsaid-notif-dropdown-head button { background: none; border: none; color: var(--jsaid-navy); font-size: 12px; cursor: pointer; }
.jsaid-notif-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--jsaid-line); font-size: 13px; text-decoration: none; color: var(--jsaid-ink); }
.jsaid-notif-item:last-child { border-bottom: none; }
.jsaid-notif-item.is-unread { background: color-mix(in srgb, var(--jsaid-gold) 10%, transparent); }
.jsaid-notif-item time { display: block; color: var(--jsaid-text-soft); font-size: 11px; margin-top: 4px; }
.jsaid-notif-empty { padding: 24px 16px; text-align: center; color: var(--jsaid-text-soft); font-size: 13px; margin: 0; }

.jsaid-shell-content { padding: 32px; max-width: 1320px; width: 100%; margin: 0 auto; }
.jsaid-page-head { margin-bottom: 24px; }
.jsaid-page-head h1 { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.jsaid-page-head p { margin: 0; color: var(--jsaid-text-soft); font-size: 15px; }

.jsaid-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 20px; }
.jsaid-kpi-card { background: var(--jsaid-surface); border: 1px solid var(--jsaid-line); border-radius: var(--jsaid-radius-lg); padding: 18px; }
.jsaid-kpi-card .value { font-family: var(--jsaid-font-display); font-size: 24px; font-weight: 700; }
.jsaid-kpi-card .label { font-size: 12px; color: var(--jsaid-text-soft); margin-top: 4px; }

.jsaid-dark-banner { background: var(--jsaid-ink); border-radius: var(--jsaid-radius-xl); padding: 20px 24px; margin-bottom: 28px; color: #fff; }

@media (max-width: 900px) {
  .jsaid-sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; z-index: 50; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  .jsaid-shell.is-nav-open .jsaid-sidebar { transform: translateX(0); box-shadow: 0 0 32px rgba(42,35,32,.24); }
  .jsaid-sidebar-close { display: block; }
  .jsaid-mobile-toggle {
    display: block; border: 1px solid var(--jsaid-line); background: var(--jsaid-surface); border-radius: var(--jsaid-radius-sm);
    width: 38px; height: 38px; font-size: 16px; cursor: pointer;
  }
  .jsaid-mobile-overlay {
    display: none; position: fixed; inset: 0; background: rgba(42,35,32,.4); z-index: 45;
  }
  .jsaid-shell.is-nav-open .jsaid-mobile-overlay { display: block; }
  .jsaid-topbar { top: 0; }
  .jsaid-shell-content { padding: 20px; }
}
@media (max-width: 480px) {
  .jsaid-notif-dropdown { width: calc(100vw - 32px); right: -8px; }
  .jsaid-topbar-search { display: none; }
}

/* Candidate pipeline board */
.jsaid-pipeline-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.jsaid-pipeline-column { flex: 0 0 220px; background: var(--jsaid-page); border-radius: var(--jsaid-radius); padding: 12px; }
.jsaid-pipeline-column h3 { font-size: 13px; margin: 0 0 10px; display: flex; justify-content: space-between; color: var(--jsaid-navy); }
.jsaid-pipeline-count { background: var(--jsaid-gold-soft); color: var(--jsaid-navy); border-radius: 999px; font-size: 11px; padding: 1px 8px; }
.jsaid-pipeline-card { background: var(--jsaid-surface); border: 1px solid var(--jsaid-line); border-radius: 8px; padding: 10px; margin-bottom: 8px; font-size: 13px; }
.jsaid-pipeline-card a { color: var(--jsaid-navy); }
.jsaid-pipeline-card select { width: 100%; margin-top: 6px; font-size: 12px; padding: 4px; border-radius: 6px; border: 1px solid var(--jsaid-line); }
.jsaid-pipeline-empty { color: var(--jsaid-text-muted); font-size: 12px; margin: 0; }

/* Quiz timer */
.jsaid-quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.jsaid-quiz-timer {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; color: var(--jsaid-navy);
  background: var(--jsaid-gold-soft); border-radius: 8px; padding: 6px 14px;
}

/* Job single/detail page */
.jsaid-jp-single { padding: 24px 20px 48px; }
.jsaid-jp-back { display: inline-block; margin-bottom: 20px; color: var(--jsaid-text-soft); text-decoration: none; font-size: 13.5px; }
.jsaid-jp-back:hover { color: var(--jsaid-navy); }
.jsaid-jp-single-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.jsaid-jp-single-logo { width: 64px; height: 64px; font-size: 24px; border-radius: 14px; }
.jsaid-jp-single-head h1 { margin: 0 0 4px; font-size: 24px; color: var(--jsaid-navy); }
.jsaid-jp-single-company { margin: 0 0 8px; color: var(--jsaid-text-soft); display: flex; align-items: center; gap: 8px; }
.jsaid-verified-badge {
  display: inline-flex; align-items: center; gap: 3px; background: #e3efe6; color: #2f6b46;
  font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.jsaid-jp-single-actions { display: flex; gap: 12px; margin-bottom: 32px; }
.jsaid-jp-single-body { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.jsaid-jp-single-main section { margin-bottom: 28px; }
.jsaid-jp-single-main h3 { color: var(--jsaid-navy); font-size: 16px; margin: 0 0 10px; }
.jsaid-jp-single-main p { line-height: 1.7; color: var(--jsaid-ink); }
.jsaid-jp-single-aside { display: flex; flex-direction: column; gap: 16px; }
.jsaid-jp-overview-list { list-style: none; margin: 0; padding: 0; }
.jsaid-jp-overview-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--jsaid-line); font-size: 13.5px; }
.jsaid-jp-overview-list li:last-child { border-bottom: none; }
.jsaid-jp-overview-list span { color: var(--jsaid-text-soft); }
.jsaid-jp-overview-list strong { color: var(--jsaid-navy); }
@media (max-width: 780px) { .jsaid-jp-single-body { grid-template-columns: 1fr; } }

/* Certificates */
.jsaid-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.jsaid-cert-card { background: var(--jsaid-surface); border: 1px solid var(--jsaid-line); border-radius: 14px; padding: 22px; text-align: center; }
.jsaid-cert-card-badge { font-size: 34px; margin-bottom: 8px; }
.jsaid-cert-card h3 { margin: 4px 0; font-size: 16px; color: var(--jsaid-navy); }
.jsaid-cert-card-meta { color: var(--jsaid-text-soft); font-size: 12.5px; margin: 4px 0; }
.jsaid-cert-card-code { font-family: monospace; font-size: 12px; letter-spacing: 0.5px; background: var(--jsaid-bg); border-radius: 6px; padding: 4px 8px; display: inline-block; margin: 8px 0; }
.jsaid-cert-card-actions { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }

.jsaid-verify-cert { max-width: 560px; margin: 40px auto; padding: 0 20px; }
.jsaid-verify-cert-form { display: flex; gap: 10px; }
.jsaid-verify-cert-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--jsaid-line); border-radius: 8px; }
.jsaid-verify-cert-result { margin-top: 20px; padding: 18px; border-radius: 10px; }
.jsaid-verify-cert-valid { background: #eef7ee; border: 1px solid #bfe3bf; color: #1f5c1f; }
.jsaid-verify-cert-invalid { background: #fbeaea; border: 1px solid #f0bcbc; color: #7a1f1f; }

/* My Applications */
.jsaid-app-stage-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--jsaid-bg); color: var(--jsaid-text-soft); }
.jsaid-app-stage-pill.is-hired { background: #eef7ee; color: #1f5c1f; }
.jsaid-app-stage-pill.is-rejected { background: #fbeaea; color: #7a1f1f; }
.jsaid-app-stage-pill.is-offer { background: #fdf3e3; color: #8a5a10; }
.jsaid-app-track { display: flex; gap: 4px; margin-top: 6px; }
.jsaid-app-track span { flex: 1; height: 4px; border-radius: 2px; background: var(--jsaid-line); }
.jsaid-app-track span.is-done { background: var(--jsaid-gold); }

/* Grades */
.jsaid-grades-table { width: 100%; border-collapse: collapse; }
.jsaid-grades-table th, .jsaid-grades-table td { padding: 10px 12px; border-bottom: 1px solid var(--jsaid-line); text-align: left; font-size: 13.5px; }
.jsaid-grades-table th { color: var(--jsaid-text-soft); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.jsaid-grade-score { font-weight: 700; color: var(--jsaid-navy); }

/* Messages */
.jsaid-msg-shell { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--jsaid-line); border-radius: 14px; overflow: hidden; min-height: 520px; background: var(--jsaid-surface); }
.jsaid-msg-list { border-right: 1px solid var(--jsaid-line); overflow-y: auto; max-height: 640px; }
.jsaid-msg-list-item { display: block; padding: 14px 16px; border-bottom: 1px solid var(--jsaid-line); text-decoration: none; color: inherit; }
.jsaid-msg-list-item:hover, .jsaid-msg-list-item.is-active { background: var(--jsaid-bg); }
.jsaid-msg-list-item strong { display: block; font-size: 13.5px; color: var(--jsaid-navy); }
.jsaid-msg-list-item span { font-size: 12px; color: var(--jsaid-text-soft); display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jsaid-msg-thread { display: flex; flex-direction: column; height: 100%; }
.jsaid-msg-thread-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 560px; }
.jsaid-msg-bubble { max-width: 70%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; background: var(--jsaid-bg); }
.jsaid-msg-bubble.is-mine { align-self: flex-end; background: var(--jsaid-navy); color: #fff; }
.jsaid-msg-thread-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--jsaid-line); }
.jsaid-msg-thread-form textarea { flex: 1; resize: none; border: 1px solid var(--jsaid-line); border-radius: 8px; padding: 8px 12px; font-family: inherit; }
.jsaid-msg-empty { padding: 40px; text-align: center; color: var(--jsaid-text-soft); }
@media (max-width: 780px) { .jsaid-msg-shell { grid-template-columns: 1fr; } .jsaid-msg-list { max-height: 200px; } }

/* Assignments */
.jsaid-assignment-instructions { margin: 14px 0; color: var(--jsaid-text-soft); }
#jsaid-assignment-form label { font-weight: 600; font-size: 13px; color: var(--jsaid-navy); }

/* Job Posting Wizard */
.jsaid-wizard-steps { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.jsaid-wizard-steps span { flex: 1; text-align: center; padding: 8px 6px; font-size: 12px; border-radius: 8px; background: var(--jsaid-bg); color: var(--jsaid-text-soft); min-width: 90px; }
.jsaid-wizard-steps span.is-active { background: var(--jsaid-navy); color: #fff; font-weight: 600; }
.jsaid-wizard section p { margin: 0 0 14px; }
.jsaid-wizard section label { display: block; font-weight: 600; font-size: 13px; color: var(--jsaid-navy); margin-bottom: 6px; }
.jsaid-wizard-nav { display: flex; justify-content: space-between; margin-top: 18px; }
.jsaid-wizard-preview { background: var(--jsaid-bg); border-radius: 10px; padding: 20px; }

/* Moderator Reports & Complaints */
.jsaid-report-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.jsaid-report-filters a { padding: 6px 14px; border-radius: 999px; background: var(--jsaid-bg); color: var(--jsaid-text-soft); text-decoration: none; font-size: 12.5px; }
.jsaid-report-filters a.is-active { background: var(--jsaid-navy); color: #fff; }
.jsaid-report-card { background: var(--jsaid-surface); border: 1px solid var(--jsaid-line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.jsaid-report-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.jsaid-report-card-actions { display: flex; gap: 8px; margin-top: 10px; }

/* Registration pages - space the form off the page header above it and
   the site footer below it, independent of whatever spacing the active
   theme gives its own title/footer regions. */
.jsaid-registration-wrap { margin-top: 40px; margin-bottom: 64px; }

/* Sidebar avatar photo upload - every role gets this via the shared
   dashboard shell (see AvatarUploadController). */
.jsaid-avatar-upload {
  position: relative; border: none; padding: 0; cursor: pointer;
  background-size: cover; background-position: center;
}
.jsaid-avatar-upload-badge {
  position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px;
  background: var(--jsaid-surface); border: 1px solid var(--jsaid-line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 8px;
}
.jsaid-avatar-upload-form { display: none; }
