/* ==========================================================================
   OOTHUB — Unified job experience
   Shared visual language for every jobs-related page (listing, detail,
   apply, saved/applied jobs and employer job management).
   Scoped with .jx- prefixes so it never fights the existing main.css.
   ========================================================================== */

:root {
    --jx-navy: #172554;
    --jx-blue: #2563eb;
    --jx-blue-dark: #1d4ed8;
    --jx-sky: #38bdf8;
    --jx-amber: #f59e0b;
    --jx-green: #059669;
    --jx-rose: #e11d48;
    --jx-ink: #0f172a;
    --jx-slate: #64748b;
    --jx-muted: #94a3b8;
    --jx-line: #e5eaf2;
    --jx-surface: #ffffff;
    --jx-canvas: #f4f7fc;
    --jx-radius: 16px;
    --jx-radius-sm: 10px;
    --jx-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    --jx-shadow-lg: 0 18px 40px rgba(15, 23, 42, .12);
    --jx-ring: 0 0 0 4px rgba(37, 99, 235, .14);
}

/* ------------------------------------------------------------------ Canvas */
body {
    background: var(--jx-canvas);
}

.jx-page { padding-bottom: 50px; }

.jx-container {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* -------------------------------------------------------------------- Hero */
.jx-hero {
    position: relative;
    overflow: hidden;
    margin: 26px 0 26px;
    padding: 38px 42px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(120deg, #172554 0%, #1d4ed8 55%, #38bdf8 100%);
    box-shadow: var(--jx-shadow-lg);
}

.jx-hero:before,
.jx-hero:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.jx-hero:before {
    width: 320px;
    height: 320px;
    right: -70px;
    top: -170px;
    border: 40px solid rgba(255, 255, 255, .10);
}

.jx-hero:after {
    width: 180px;
    height: 180px;
    right: 20%;
    bottom: -130px;
    background: rgba(255, 255, 255, .07);
}

.jx-hero--compact { margin: 20px 0 22px; padding: 28px 32px; }

.jx-hero-copy { position: relative; z-index: 1; max-width: 720px; }

.jx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.jx-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.jx-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 15px;
    line-height: 1.7;
}

.jx-hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.jx-stat {
    min-width: 132px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.jx-stat b {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.jx-stat span {
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.jx-hero-art {
    position: absolute;
    right: 48px;
    top: 50%;
    z-index: 1;
    display: flex;
    transform: translateY(-50%);
    gap: 16px;
    align-items: center;
    color: rgba(255, 255, 255, .9);
    font-size: 46px;
}

.jx-hero-art i:nth-child(2) { margin-top: -44px; color: #fbbf24; font-size: 22px; }
.jx-hero-art i:nth-child(3) { margin-top: 52px; color: #bae6fd; font-size: 24px; }

/* ------------------------------------------------------------------- Cards */
.jx-card {
    margin-bottom: 20px;
    padding: 24px 26px;
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius);
    background: var(--jx-surface);
    box-shadow: var(--jx-shadow);
}

.jx-card--flush { padding: 0; overflow: hidden; }

.jx-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--jx-line);
}

.jx-card-head--plain {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.jx-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--jx-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jx-title {
    margin: 0;
    color: var(--jx-navy);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.jx-title small {
    margin-left: 8px;
    color: var(--jx-slate);
    font-size: 13px;
    font-weight: 500;
}

.jx-subtitle {
    margin: 6px 0 0;
    color: var(--jx-slate);
    font-size: 14px;
    line-height: 1.7;
}

.jx-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--jx-navy);
    font-size: 17px;
    font-weight: 800;
}

.jx-section-title i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--jx-blue);
    background: #eff6ff;
    font-size: 14px;
}

/* ------------------------------------------------------------------- Pills */
.jx-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--jx-line);
    border-radius: 999px;
    color: var(--jx-slate);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
}

.jx-chip i { color: var(--jx-blue); }
.jx-chip--blue { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff; }
.jx-chip--amber { border-color: #fde68a; color: #92400e; background: #fef3c7; }
.jx-chip--green { border-color: #a7f3d0; color: #065f46; background: #ecfdf5; }
.jx-chip--rose { border-color: #fecdd3; color: #9f1239; background: #fff1f2; }
.jx-chip--sky { border-color: #bae6fd; color: #075985; background: #f0f9ff; }

.jx-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ------------------------------------------------------------------ Buttons */
.jx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--jx-radius-sm);
    color: #fff;
    background: var(--jx-blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.jx-btn:hover { color: #fff; background: var(--jx-blue-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37, 99, 235, .22); }
.jx-btn:focus-visible { outline: 0; box-shadow: var(--jx-ring); }
.jx-btn--ghost { border-color: var(--jx-line); color: var(--jx-navy); background: #fff; }
.jx-btn--ghost:hover { color: var(--jx-blue); border-color: #bfdbfe; background: #f8fbff; }
.jx-btn--soft { color: #1d4ed8; background: #eff6ff; }
.jx-btn--soft:hover { color: #1e40af; background: #dbeafe; }
.jx-btn--amber { background: var(--jx-amber); }
.jx-btn--amber:hover { background: #d97706; box-shadow: 0 10px 22px rgba(217, 119, 6, .24); }
.jx-btn--danger { background: var(--jx-rose); }
.jx-btn--danger:hover { background: #be123c; box-shadow: 0 10px 22px rgba(190, 18, 60, .22); }
.jx-btn--success { background: var(--jx-green); }
.jx-btn--success:hover { background: #047857; box-shadow: 0 10px 22px rgba(4, 120, 87, .22); }
.jx-btn--icon { width: 42px; min-width: 42px; padding: 0; }
.jx-btn--block { width: 100%; }
.jx-btn[disabled], .jx-btn.is-disabled { opacity: .6; pointer-events: none; }

.jx-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jx-btn-row--end { justify-content: flex-end; }

/* ------------------------------------------------------------- Job card grid */
.jx-joblist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jx-jobcard {
    position: relative;
    margin-bottom: 16px;
    padding: 22px 24px;
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius);
    background: var(--jx-surface);
    box-shadow: var(--jx-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.jx-jobcard:hover,
.jx-jobcard:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 16px 34px rgba(37, 99, 235, .13);
    transform: translateY(-2px);
}

.jx-jobcard--featured { border-color: #fcd34d; }
.jx-jobcard--featured:before {
    content: 'FEATURED';
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 9px;
    border-radius: 6px;
    color: #92400e;
    background: #fef3c7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
}

.jx-jobcard--expired { background: #fbfcfe; }
.jx-jobcard--expired .jx-jobcard-title a { color: var(--jx-slate); }

.jx-jobcard-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.jx-jobcard-thumb {
    display: flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--jx-line);
    border-radius: 14px;
    background: #f8fafc;
}

.jx-jobcard-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.jx-jobcard-body { min-width: 0; flex: 1 1 auto; }

.jx-jobcard-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.35;
}

.jx-jobcard-title a { color: var(--jx-navy); text-decoration: none; }
.jx-jobcard-title a:hover { color: var(--jx-blue); }
.jx-jobcard-title .fa-bolt { color: var(--jx-amber); font-size: 13px; }

.jx-jobcard-company {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.jx-jobcard-company a { color: var(--jx-slate); }
.jx-jobcard-company a:hover { color: var(--jx-blue); }

.jx-jobcard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--jx-slate);
    font-size: 12.5px;
}

.jx-jobcard-meta li { display: inline-flex; align-items: center; gap: 6px; }
.jx-jobcard-meta i { color: var(--jx-blue); }
.jx-jobcard-meta .jx-salary { color: var(--jx-green); font-weight: 700; }
.jx-jobcard-meta .jx-salary i { color: var(--jx-green); }

.jx-jobcard-summary {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    color: var(--jx-slate);
    font-size: 13.5px;
    line-height: 1.7;
}

.jx-jobcard-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.jx-jobcard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

/* --------------------------------------------------------------- Toolbar row */
.jx-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px 20px;
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius);
    background: var(--jx-surface);
    box-shadow: var(--jx-shadow);
}

.jx-toolbar-info { color: var(--jx-slate); font-size: 13px; font-weight: 600; }
.jx-toolbar-info b { color: var(--jx-navy); font-weight: 800; }

/* ------------------------------------------------------------- Empty states */
.jx-empty {
    padding: 54px 26px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--jx-radius);
    background: var(--jx-surface);
    text-align: center;
}

.jx-empty-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    color: var(--jx-blue);
    background: #eff6ff;
    font-size: 22px;
}

.jx-empty h4 { margin: 0 0 8px; color: var(--jx-navy); font-size: 17px; font-weight: 800; }
.jx-empty p { margin: 0 auto 18px; max-width: 420px; color: var(--jx-slate); font-size: 13.5px; line-height: 1.7; }

/* -------------------------------------------------------------- Sidebar nav */
.jx-sidebar {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius);
    background: var(--jx-surface);
    box-shadow: var(--jx-shadow);
}

.jx-sidebar .widget { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #f1f5f9; }
.jx-sidebar .widget:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.jx-sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--jx-navy);
    font-size: 14px;
    font-weight: 800;
}
.jx-sidebar .widget-title:before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: var(--jx-blue);
}
.jx-sidebar .optionlist { margin: 0; padding: 0; list-style: none; }

/*
 * The filter rows rely on a hidden native checkbox plus an absolutely positioned
 * <label> as the visible box (see .optionlist in main.css). Setting display:flex
 * on the <li> broke that: an absolutely positioned child stops resolving against
 * the row and the box lands on top of the first characters of the title.
 * The row therefore stays a normal block with left padding reserved for the box.
 */
.jx-sidebar .optionlist li {
    position: relative;
    margin-bottom: 2px;
    padding: 6px 30px 6px 30px;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}
.jx-sidebar .optionlist li:hover { color: var(--jx-blue); background: #f8fbff; }

/* Keep the native control out of the layout but reachable by keyboard. */
.jx-sidebar .optionlist li input[type=checkbox] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.jx-sidebar .optionlist li input[type=checkbox] + label {
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.jx-sidebar .optionlist li input[type=checkbox] + label:hover { border-color: var(--jx-blue); }

.jx-sidebar .optionlist li input[type=checkbox]:checked + label {
    border-color: var(--jx-blue);
    background: var(--jx-blue);
}

.jx-sidebar .optionlist li input[type=checkbox]:checked + label:before {
    content: '\f00c';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'FontAwesome', 'Font Awesome 5 Free';
    font-size: 11px;
    font-weight: 900;
}

.jx-sidebar .optionlist li input[type=checkbox]:focus-visible + label { box-shadow: var(--jx-ring); }

/* Count badge sits at the end of the row, never over the title. */
.jx-sidebar .optionlist li span {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0 6px;
    border-radius: 999px;
    color: var(--jx-slate);
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
}
.jx-sidebar .view_more { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; }

/* --------------------------------------------------------- Detail page blocks */
.jx-detail-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 30px 32px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(120deg, #172554 0%, #1d4ed8 58%, #38bdf8 100%);
    box-shadow: var(--jx-shadow-lg);
}

.jx-detail-hero:after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    bottom: -160px;
    border: 34px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.jx-detail-hero-inner { position: relative; z-index: 1; }
.jx-detail-hero h1 { margin: 0 0 8px; color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.jx-detail-hero h1 span { color: rgba(255, 255, 255, .78); font-weight: 600; }
.jx-detail-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; color: rgba(255, 255, 255, .86); font-size: 13px; }
.jx-detail-hero-meta i { margin-right: 6px; color: #bae6fd; }
.jx-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.jx-detail-hero .jx-btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .14); }
.jx-detail-hero .jx-btn--ghost:hover { color: var(--jx-navy); background: #fff; }

.jx-salary-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    font-size: 14px;
    font-weight: 700;
}

.jx-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jx-facts li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.jx-facts li:last-child { border-bottom: 0; }
.jx-facts dt, .jx-facts .jx-facts-label { color: var(--jx-slate); font-size: 12.5px; font-weight: 600; }
.jx-facts dd, .jx-facts .jx-facts-value { margin: 0; color: var(--jx-ink); font-size: 13.5px; font-weight: 700; text-align: right; }
.jx-facts .jx-facts-value a { color: var(--jx-blue); }

.jx-prose { color: #334155; font-size: 14px; line-height: 1.85; word-break: break-word; }
.jx-prose p { margin-bottom: 14px; }
.jx-prose ul, .jx-prose ol { margin: 0 0 14px 20px; padding: 0; }
.jx-prose img { max-width: 100%; height: auto; border-radius: 12px; }

.jx-skill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jx-skill-row li {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #f0f7ff;
    font-size: 12.5px;
    font-weight: 700;
}

/* Company overview panel */
.jx-company-panel { text-align: center; }
.jx-company-panel .jx-company-logo {
    display: flex;
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--jx-line);
    border-radius: 18px;
    background: #f8fafc;
}
.jx-company-panel .jx-company-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.jx-company-panel .jx-company-name { margin: 0 0 6px; color: var(--jx-navy); font-size: 18px; font-weight: 800; }
.jx-company-panel .jx-company-name a { color: var(--jx-navy); }
.jx-company-panel .jx-company-location { color: var(--jx-slate); font-size: 13px; }
.jx-company-panel .jx-company-openings { margin-top: 14px; }

/* Related jobs mini list */
.jx-mini-list { margin: 0; padding: 0; list-style: none; }
.jx-mini-list li {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.jx-mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.jx-mini-list h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 750; line-height: 1.4; }
.jx-mini-list h4 a { color: var(--jx-navy); }
.jx-mini-list h4 a:hover { color: var(--jx-blue); }
.jx-mini-list .jx-mini-company { margin-bottom: 8px; color: var(--jx-slate); font-size: 12.5px; }
.jx-mini-list .jx-chip-row { gap: 6px; }
.jx-mini-list .jx-chip { padding: 4px 9px; font-size: 11px; }

/* ------------------------------------------------------------ Kanban board */
.jx-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 16px;
    align-items: start;
}

.jx-column {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius);
    background: #f8fafc;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.jx-column.is-over { border-color: var(--jx-blue); background: #eef5ff; box-shadow: var(--jx-ring); }

.jx-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid transparent;
}

.jx-column-head h2 {
    margin: 0;
    color: var(--jx-navy);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
}

.jx-column-head .jx-count {
    display: inline-flex;
    min-width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--jx-slate);
    font-size: 12px;
    font-weight: 800;
}

.jx-column[data-status="applied"] .jx-column-head { border-bottom-color: var(--jx-sky); }
.jx-column[data-status="shortlist"] .jx-column-head { border-bottom-color: var(--jx-amber); }
.jx-column[data-status="hired"] .jx-column-head { border-bottom-color: var(--jx-green); }
.jx-column[data-status="rejected"] .jx-column-head { border-bottom-color: var(--jx-rose); }

.jx-task {
    margin-bottom: 12px;
    padding: 15px;
    border: 1px solid var(--jx-line);
    border-left: 3px solid var(--jx-blue);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
    cursor: grab;
    transition: box-shadow .18s ease, transform .18s ease;
}

.jx-task:last-child { margin-bottom: 0; }
.jx-task:hover { box-shadow: 0 10px 22px rgba(15, 23, 42, .1); transform: translateY(-1px); }
.jx-task.dragging { opacity: .65; cursor: grabbing; }
.jx-task.is-moving { pointer-events: none; opacity: .5; }
.jx-column[data-status="shortlist"] .jx-task { border-left-color: var(--jx-amber); }
.jx-column[data-status="hired"] .jx-task { border-left-color: var(--jx-green); }
.jx-column[data-status="rejected"] .jx-task { border-left-color: var(--jx-rose); }

.jx-task-top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.jx-task-avatar {
    display: flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--jx-blue);
    font-size: 14px;
    font-weight: 800;
}
.jx-task-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jx-task-name { margin: 0 0 3px; color: var(--jx-ink); font-size: 14.5px; font-weight: 750; line-height: 1.3; }
.jx-task-loc { display: flex; align-items: center; gap: 5px; color: var(--jx-slate); font-size: 12px; }
.jx-task-loc i { color: var(--jx-blue); }

.jx-task-salary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #065f46;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 700;
}
.jx-task-salary span { color: #059669; font-weight: 600; }

.jx-task-actions { display: flex; align-items: center; gap: 8px; }
.jx-task-actions .jx-btn { min-height: 34px; padding: 0 12px; font-size: 12px; }
.jx-task-actions .jx-btn--move { width: 34px; min-width: 34px; padding: 0; }
.jx-task-actions .jx-btn-row { margin-left: auto; gap: 6px; }

/* ---------------------------------------------------------------- Applicants */
.jx-person {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.jx-person-avatar {
    display: flex;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--jx-line);
    border-radius: 14px;
    background: #f8fafc;
}

.jx-person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jx-person-name { margin: 0 0 5px; font-size: 16px; font-weight: 750; }
.jx-person-name a { color: var(--jx-navy); }
.jx-person-name a:hover { color: var(--jx-blue); }

/* -------------------------------------------------------------- Forms (apply) */
.jx-form-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 32px;
    border: 1px solid var(--jx-line);
    border-radius: 20px;
    background: var(--jx-surface);
    box-shadow: var(--jx-shadow-lg);
}

.jx-form-card .formrow { margin-bottom: 18px; }
.jx-form-card label { display: block; margin-bottom: 7px; color: var(--jx-ink); font-size: 13px; font-weight: 700; }
.jx-form-card .form-control {
    height: 46px;
    border: 1px solid #dbe3ee;
    border-radius: var(--jx-radius-sm);
    color: var(--jx-ink);
    background: #fbfdff;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.jx-form-card select.form-control { height: 46px; }
.jx-form-card .form-control:focus {
    border-color: var(--jx-blue);
    background: #fff;
    box-shadow: var(--jx-ring);
}
.jx-form-card .help-block { margin-top: 6px; color: var(--jx-rose); font-size: 12.5px; font-weight: 600; }
.jx-form-card .has-error .form-control { border-color: var(--jx-rose); background: #fff5f6; }

.jx-apply-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: -6px 0 24px;
    padding: 18px 20px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f5faff;
}
.jx-apply-summary .jx-apply-logo {
    display: flex;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--jx-line);
    border-radius: 12px;
    background: #fff;
}
.jx-apply-summary .jx-apply-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.jx-apply-summary h2 { margin: 0 0 4px; color: var(--jx-navy); font-size: 18px; font-weight: 800; }
.jx-apply-summary .jx-apply-company { color: var(--jx-slate); font-size: 13px; }

.jx-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--jx-line);
}

/* Form grid used inside add/edit job */
.jx-form-grid .formrow { margin-bottom: 16px; }
.jx-form-grid label { display: block; margin-bottom: 7px; color: var(--jx-ink); font-size: 13px; font-weight: 700; }
.jx-form-grid .form-control {
    height: 46px;
    border: 1px solid #dbe3ee;
    border-radius: var(--jx-radius-sm);
    background: #fbfdff;
    font-size: 14px;
    box-shadow: none;
}
.jx-form-grid textarea.form-control { height: auto; min-height: 130px; }
.jx-form-grid .form-control:focus { border-color: var(--jx-blue); background: #fff; box-shadow: var(--jx-ring); }
.jx-form-grid .radio-list { display: flex; gap: 18px; padding-top: 8px; }
.jx-form-grid .radio-inline { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.jx-form-grid .formrow.has-error .form-control { border-color: var(--jx-rose); background: #fff5f6; }

/* ------------------------------------------------------------------- Filter bar */
.jx-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

/* ---------------------------------------------------------------- Pagination */
.jx-page .pagiWrap { margin-top: 22px; }
.jx-page .pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin: 0; }
.jx-page .pagination > li > a,
.jx-page .pagination > li > span {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius-sm);
    color: var(--jx-navy);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}
.jx-page .pagination > .active > span,
.jx-page .pagination > .active > a { border-color: var(--jx-blue); background: var(--jx-blue); color: #fff; }
.jx-page .pagination > li > a:hover { border-color: var(--jx-blue); color: var(--jx-blue); }

/* --------------------------------------------------------------------- Stats */
.jx-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.jx-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius);
    background: var(--jx-surface);
    box-shadow: var(--jx-shadow);
}

.jx-stat-card i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--jx-blue);
    background: #eff6ff;
    font-size: 16px;
}
.jx-stat-card b { display: block; color: var(--jx-navy); font-size: 20px; font-weight: 800; line-height: 1.2; }
.jx-stat-card span { color: var(--jx-slate); font-size: 12px; font-weight: 600; }

/* ------------------------------------------------------ Legacy overrides ---- */
/* Blend the pre-existing markup (.searchList, .job-header, ...) into the new
   design so untouched templates still look consistent. */

.jx-page .searchList { margin: 0; padding: 0; list-style: none; }
.jx-page .searchList > li {
    margin-bottom: 16px;
    padding: 22px 24px;
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius);
    background: var(--jx-surface);
    box-shadow: var(--jx-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.jx-page .searchList > li:hover { border-color: #93c5fd; box-shadow: 0 14px 30px rgba(37, 99, 235, .12); transform: translateY(-2px); }
.jx-page .searchList .jobimg {
    display: flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--jx-line);
    border-radius: 14px;
    background: #f8fafc;
}
.jx-page .searchList .jobimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.jx-page .searchList .jobinfo { margin-left: 16px; }
.jx-page .searchList .jobinfo h3 { margin: 2px 0 7px; color: var(--jx-navy); font-size: 18px; font-weight: 750; }
.jx-page .searchList .jobinfo h3 a { color: var(--jx-navy); }
.jx-page .searchList .companyName a { color: var(--jx-slate); font-size: 13px; }
.jx-page .searchList .location { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 12px; color: var(--jx-slate); font-size: 12.5px; }
.jx-page .searchList .location i { margin-right: 4px; color: var(--jx-blue); }
.jx-page .searchList .location label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 5px 11px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 11.5px;
    font-weight: 700;
}
.jx-page .searchList > li > p {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    color: var(--jx-slate);
    font-size: 13.5px;
    line-height: 1.7;
}
.jx-page .searchList .listbtn { display: flex; justify-content: flex-end; gap: 8px; }
.jx-page .searchList .listbtn a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 16px;
    border-radius: var(--jx-radius-sm);
    color: #fff;
    background: var(--jx-blue);
    font-size: 12.5px;
    font-weight: 700;
}
.jx-page .searchList .listbtn a:hover { background: var(--jx-blue-dark); color: #fff; }
.jx-page .searchList .listbtn a.btn,
.jx-page .searchList .listbtn a.favbtn {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
    border: 1px solid var(--jx-line);
    color: var(--jx-slate);
    background: #fff;
}
.jx-page .searchList .listbtn a.btn:hover,
.jx-page .searchList .listbtn a.favbtn:hover { border-color: #bfdbfe; color: var(--jx-blue); background: #f8fbff; }

.jx-page .job-header,
.jx-page .companyinfo {
    margin-bottom: 20px;
    padding: 24px 26px;
    border: 1px solid var(--jx-line);
    border-radius: var(--jx-radius);
    background: var(--jx-surface);
    box-shadow: var(--jx-shadow);
}
.jx-page .job-header h3,
.jx-page .companyinfo h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--jx-navy);
    font-size: 17px;
    font-weight: 800;
}
.jx-page .job-header h3 i,
.jx-page .companyinfo h3 i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--jx-blue);
    background: #eff6ff;
    font-size: 14px;
}
.jx-page .jbdetail { margin: 0; padding: 0; list-style: none; }
.jx-page .jbdetail > li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed #e2e8f0;
    color: var(--jx-slate);
    font-size: 13px;
}
.jx-page .jbdetail > li:last-child { border-bottom: 0; }
.jx-page .jbdetail > li > div:first-child { font-weight: 600; }
.jx-page .jbdetail > li > div:last-child { margin-left: auto; color: var(--jx-ink); font-weight: 700; text-align: right; }
.jx-page .jbdetail > li a { color: var(--jx-blue); }
.jx-page .userccount {
    border: 0;
    background: transparent;
    box-shadow: none;
}
.jx-page .userccount .formpanel { padding: 0; background: transparent; }
.jx-page .myads > h3 { margin: 0 0 18px; color: var(--jx-navy); font-size: 22px; font-weight: 800; }

/* Job alert ribbon */
.jx-alert-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px 20px;
    border: 1px solid #fde68a;
    border-radius: var(--jx-radius);
    background: linear-gradient(100deg, #fffbeb, #fff);
}
.jx-alert-strip p { margin: 0; color: #92400e; font-size: 13px; font-weight: 600; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1199px) {
    .jx-board { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}

@media (max-width: 991px) {
    .jx-hero { padding: 30px 26px; }
    .jx-hero h1 { font-size: 28px; }
    .jx-hero-art { display: none; }
    .jx-detail-hero { padding: 26px 24px; }
    .jx-detail-hero h1 { font-size: 24px; }
    .jx-sidebar { padding: 16px; }
}

@media (max-width: 767px) {
    .jx-container { padding: 0 12px; }
    .jx-hero { padding: 24px 20px; border-radius: 18px; }
    .jx-hero h1 { font-size: 23px; }
    .jx-hero p { font-size: 14px; }
    .jx-stat { min-width: calc(50% - 6px); }
    .jx-board { grid-template-columns: 1fr; }
    .jx-jobcard { padding: 18px; }
    .jx-jobcard-main { flex-direction: column; gap: 12px; }
    .jx-jobcard-actions { justify-content: flex-start; }
    .jx-jobcard-foot { flex-direction: column; align-items: flex-start; }
    .jx-form-card { padding: 22px 18px; border-radius: 16px; }
    .jx-facts li { flex-direction: column; align-items: flex-start; gap: 4px; }
    .jx-facts dd, .jx-facts .jx-facts-value { text-align: left; }
    .jx-page .jbdetail > li { flex-direction: column; gap: 4px; }
    .jx-page .jbdetail > li > div:last-child { margin-left: 0; text-align: left; }
    .jx-page .searchList .jobinfo { margin-left: 0; }
    .jx-page .searchList .listbtn { justify-content: flex-start; margin-top: 12px; }
}

@media (max-width: 575px) {
    .jx-hero h1 { font-size: 21px; }
    .jx-card { padding: 18px; }
    .jx-title { font-size: 20px; }
    .jx-btn { width: 100%; }
    .jx-btn--icon { width: 42px; }
    .jx-btn-row { flex-direction: column; }
    .jx-btn-row .jx-btn { width: 100%; }
}
