/* ═══════════════════════════════════════════════════════════
   jobs.css — Shared styles for job postings module
   ═══════════════════════════════════════════════════════════ */

:root {
    --purple: #d2aaf3;
    --purple-dark: #b47ee8;
    --purple-soft: rgba(210, 170, 243, .13);
    --text-main: #1e1535;
    --text-sub: #6b5f88;
    --text-muted: #a99fc0;
    --border: rgba(210, 170, 243, .28);
    --radius: 16px;
    --shadow: 0 4px 24px rgba(180, 126, 232, .10);
}

/* ── Shared Background ── */
.jp-wrapper,
.jp-form-wrapper,
.jobs-wrapper {
    min-height: 100vh;
    background: #fff;
    /* direction: rtl; */
    position: relative;
    overflow: hidden;
}

.jp-wrapper         { padding: 6rem 0 80px; }
.jp-form-wrapper    { padding: 6rem 0 80px; }
.jobs-wrapper       { padding: 80px 0; }

.jp-wrapper::before,
.jp-form-wrapper::before,
.jobs-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(210, 170, 243, .15) 0%, transparent 38%),
        radial-gradient(circle at 90% 85%, rgba(210, 170, 243, .10) 0%, transparent 38%);
    pointer-events: none;
    z-index: 0;
}

.jp-wrapper > .container,
.jp-form-wrapper > .container,
.jobs-wrapper > .container {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════
   HR Dashboard (index page)
══════════════════════════════════════ */

.jp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.jp-eyebrow {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--purple-dark);
    display: flex;
    align-items: center;
    gap: 7px;
}

.jp-eyebrow::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--purple-dark);
    border-radius: 2px;
}

.jp-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.jp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #041530;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(4, 21, 48, .35);
    transition: background .22s, transform .22s;
}

.jp-btn:hover { background: #011f6a; transform: translateY(-2px); }

.jp-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
}

/* ── Tabs ── */
.jp-tabs {
    display: flex;
    gap: 6px;
    background: var(--purple-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 5px;
    width: fit-content;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.jp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 9px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all .22s ease;
}

.jp-tab:hover { color: var(--purple-dark); background: rgba(210, 170, 243, .18); }

.jp-tab.active {
    background: #fff;
    color: var(--purple-dark);
    box-shadow: 0 2px 12px rgba(180, 126, 232, .15);
    font-weight: 700;
}

.jp-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 700;
    background: var(--purple-dark);
    color: #fff;
}

.jp-tab:not(.active) .jp-tab-badge {
    background: rgba(180, 126, 232, .22);
    color: var(--purple-dark);
}

/* ── Panels ── */
.jp-panel { display: none; animation: fadeUp .3s ease both; }
.jp-panel.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── HR Card ── */
.jp-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: box-shadow .2s, border-color .2s;
}

.jp-card:hover {
    box-shadow: 0 8px 32px rgba(180, 126, 232, .16);
    border-color: var(--purple);
}

.jp-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--purple-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jp-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--purple-dark);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.jp-card-body { flex: 1; min-width: 0; }

.jp-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px;
}

.jp-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .78rem;
    color: var(--text-muted);
}

.jp-card-meta span { display: flex; align-items: center; gap: 4px; }

.jp-card-meta svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.jp-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ── Badges ── */
.jp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.jp-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
    flex-shrink: 0;
}

.jp-badge-pending   { background: rgba(251, 191, 36, .12); color: #b45309; }
.jp-badge-published { background: rgba(34, 197, 94, .11);  color: #15803d; }
.jp-badge-draft     { background: rgba(100, 100, 120, .10); color: #6b7280; }
.jp-badge-expired   { background: rgba(239, 68, 68, .10);  color: #b91c1c; }
.jp-badge-closed    { background: rgba(100, 100, 120, .10); color: #6b7280; }

/* ── Action Buttons ── */
.jp-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none !important;
    background: none;
}

.jp-action svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.jp-action-approve { background: rgba(34, 197, 94, .10); color: #15803d; border-color: rgba(34, 197, 94, .25); }
.jp-action-approve:hover { background: rgba(34, 197, 94, .20); border-color: rgba(34, 197, 94, .45); color: #15803d; }

.jp-action-reject  { background: rgba(239, 68, 68, .09); color: #b91c1c; border-color: rgba(239, 68, 68, .22); }
.jp-action-reject:hover { background: rgba(239, 68, 68, .18); border-color: rgba(239, 68, 68, .40); color: #b91c1c; }

.jp-action-edit    { background: var(--purple-soft); color: var(--purple-dark); border-color: var(--border); }
.jp-action-edit:hover { background: rgba(210, 170, 243, .25); border-color: var(--purple-dark); }

.jp-action-close   { background: rgba(100, 100, 120, .08); color: #6b7280; border-color: rgba(100, 100, 120, .2); }
.jp-action-close:hover { background: rgba(100, 100, 120, .15); color: #374151; }

.jp-action-note    { background: rgba(239, 68, 68, .08); color: #b91c1c; border-color: rgba(239, 68, 68, .2); }
.jp-action-note:hover { background: rgba(239, 68, 68, .16); border-color: rgba(239, 68, 68, .35); color: #b91c1c; }

/* ── Empty State ── */
.jp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    gap: 12px;
    text-align: center;
}

.jp-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--purple-soft);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jp-empty-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--purple-dark);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.jp-empty p { font-size: .9rem; color: var(--text-muted); margin: 0; font-weight: 500; }

/* ── Form wrapper (create/edit) ── */
.jp-section-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--purple-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jp-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ══════════════════════════════════════
   Public Jobs Page (careers)
══════════════════════════════════════ */

.jobs-hero {
    text-align: center;
    margin-bottom: 56px;
}

.jobs-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--purple-dark);
    background: rgba(210, 170, 243, .12);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.jobs-hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-dark);
}

.jobs-hero h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-main);
    margin: 0 0 10px;
    line-height: 1.2;
}

.jobs-hero p { font-size: 1rem; color: var(--text-muted); margin: 0; }

/* ── Public Job Card ── */
.job-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(180, 126, 232, .08);
    padding: 28px 32px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    transition: box-shadow .25s, border-color .25s, transform .25s;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--purple);
    border-radius: 0 18px 18px 0;
    opacity: 0;
    transition: opacity .25s;
}

.job-card:hover {
    box-shadow: 0 12px 40px rgba(180, 126, 232, .18);
    border-color: rgba(210, 170, 243, .55);
    transform: translateY(-3px);
}

.job-card:hover::before { opacity: 1; }

.job-card-body { flex: 1; min-width: 0; }

.job-card-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.job-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--text-sub);
    background: rgba(210, 170, 243, .10);
    border: 1px solid rgba(210, 170, 243, .22);
    padding: 3px 10px;
    border-radius: 20px;
}

.job-meta-chip svg {
    width: 11px;
    height: 11px;
    stroke: var(--purple-dark);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.job-card-desc {
    font-size: .88rem;
    color: var(--text-sub);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.job-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: #041530;
    color: #fff !important;
    border-radius: 11px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(4, 21, 48, .3);
    transition: background .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}

.job-btn svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    transition: transform .2s;
}

.job-btn:hover {
    background: #011f6a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 21, 48, .35);
}

.job-btn:hover svg { transform: translateX(3px); }

.job-posted { font-size: .72rem; color: var(--text-muted); font-weight: 500; }

/* ── Public Empty State ── */
.jobs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 24px;
    gap: 16px;
    text-align: center;
}

.jobs-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(210, 170, 243, .10);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jobs-empty-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--purple-dark);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.jobs-empty h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin: 0; }
.jobs-empty p  { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ══════════════════════════════════════
   Modal (shared)
══════════════════════════════════════ */

.lv-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(30, 21, 53, .45);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.lv-modal-overlay.open { display: flex; }

.lv-modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 28px 32px 32px;
    width: 100%;
    max-width: 460px;
    margin: 16px;
    box-shadow: 0 20px 60px rgba(180, 126, 232, .25);
    /* direction: rtl; */
    animation: fadeUp .25s ease both;
}

.lv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.lv-modal-title  { margin: 0; font-weight: 800; color: var(--text-main); font-size: 1.05rem; }

.lv-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    padding: 0;
    transition: color .2s;
}

.lv-modal-close:hover { color: var(--text-main); }

.lv-modal-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: .85rem;
    color: var(--text-sub);
}

.lv-modal-textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .88rem;
    color: var(--text-main);
    resize: none;
    outline: none;
    font-family: inherit;
    transition: border-color .2s;
    background: #faf8ff;
    box-sizing: border-box;
}

.lv-modal-textarea:focus { border-color: var(--purple-dark); }

.lv-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.lv-modal-cancel {
    padding: 9px 20px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-sub);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
}

/* ══════════════════════════════════════
   Open Apply Section
══════════════════════════════════════ */

.open-apply-section {
    /* margin-top: 48px; */
    padding: 48px 32px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);

    text-align: center;
    /* direction: rtl; */
    backdrop-filter: blur(8px);
}

.open-apply-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.open-apply-icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.open-apply-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.open-apply-desc {
    font-size: .92rem;
    color: rgba(255, 255, 255, .65);
    margin: 0 0 28px;
    line-height: 1.8;
}

.open-apply-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.open-apply-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: #fff;
    color: #041530 !important;
    border-radius: 11px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    transition: background .2s, transform .2s;
}

.open-apply-btn-primary:hover {
    background: #f0ebff;
    transform: translateY(-2px);
}

.open-apply-btn-primary svg {
    width: 15px;
    height: 15px;
    stroke: #041530;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.open-apply-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .85) !important;
    border: 1.5px solid rgba(255, 255, 255, .2);
    border-radius: 11px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s, border-color .2s, transform .2s;
}

.open-apply-btn-secondary:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .35);
    transform: translateY(-2px);
}

.open-apply-btn-secondary svg {
    width: 15px;
    height: 15px;
    stroke: rgba(255, 255, 255, .75);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}