/* JobConnect theme — loaded after Bootstrap (and AdminLTE on portal pages). */
:root {
    --jc-primary: #0d4d8c;
    --jc-primary-dark: #093a6b;
    --jc-accent: #f59e0b;
    --jc-teal: #0f9d8a;
    --jc-purple: #6f42c1;
    --jc-ink: #13233a;
    --jc-muted: #64748b;
    --jc-surface: #f4f7fb;
    --bs-primary: var(--jc-primary);
    --bs-primary-rgb: 13, 77, 140;
    --bs-link-color: var(--jc-primary);
    --bs-link-color-rgb: 13, 77, 140;
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body { font-family: var(--bs-font-sans-serif); color: var(--jc-ink); }
.btn-primary { --bs-btn-bg: var(--jc-primary); --bs-btn-border-color: var(--jc-primary); --bs-btn-hover-bg: var(--jc-primary-dark); --bs-btn-hover-border-color: var(--jc-primary-dark); --bs-btn-active-bg: var(--jc-primary-dark); --bs-btn-disabled-bg: var(--jc-primary); --bs-btn-disabled-border-color: var(--jc-primary); }
.btn-outline-primary { --bs-btn-color: var(--jc-primary); --bs-btn-border-color: var(--jc-primary); --bs-btn-hover-bg: var(--jc-primary); --bs-btn-hover-border-color: var(--jc-primary); --bs-btn-active-bg: var(--jc-primary); }
.btn-accent { background: var(--jc-accent); border-color: var(--jc-accent); color: #1f1300; font-weight: 600; }
.btn-accent:hover { background: #d98a06; border-color: #d98a06; color: #1f1300; }
.text-primary { color: var(--jc-primary) !important; }
.bg-primary { background-color: var(--jc-primary) !important; }
.form-control:focus, .form-select:focus { border-color: #6c9ccc; box-shadow: 0 0 0 .2rem rgba(13, 77, 140, .15); }
.fw-600 { font-weight: 600; }

/* Type badges */
.badge.type-primary { background: rgba(13, 77, 140, .12); color: var(--jc-primary); }
.badge.type-teal    { background: rgba(15, 157, 138, .14); color: #0b7a6b; }
.badge.type-purple  { background: rgba(111, 66, 193, .13); color: var(--jc-purple); }
.badge.type-secondary { background: #e9ecef; color: #495057; }

/* ── Public site ─────────────────────────────────────────────── */
.jc-public { background: #fff; }
.jc-navbar { background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid #e8edf3; }
.jc-navbar .nav-link { font-weight: 500; color: #334155; }
.jc-navbar .nav-link.active, .jc-navbar .nav-link:hover { color: var(--jc-primary); }
.jc-brand { font-weight: 800; font-size: 1.25rem; color: var(--jc-primary); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.jc-logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--jc-primary), var(--jc-teal)); color: #fff; font-size: 1rem; }
.jc-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(15, 157, 138, .18), transparent), linear-gradient(160deg, #0b3f74 0%, #0d4d8c 55%, #12609f 100%); color: #fff; padding: 5rem 0 6rem; position: relative; overflow: hidden; }
.jc-hero h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.1; }
.jc-hero .lead { color: rgba(255, 255, 255, .82); }
.jc-hero .hero-search { background: #fff; border-radius: 14px; padding: .5rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.jc-hero .hero-search .form-control, .jc-hero .hero-search .form-select { border: 0; box-shadow: none; }
.hero-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; padding: 1.25rem; }
.hero-card .num { font-size: 1.8rem; font-weight: 800; }
.section-title { font-weight: 800; letter-spacing: -.02em; }
.section-kicker { text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; color: var(--jc-teal); font-weight: 700; }
.role-card { border: 1px solid #e6ecf2; border-radius: 16px; padding: 1.75rem; height: 100%; transition: transform .15s, box-shadow .15s; background: #fff; }
.role-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(13, 77, 140, .1); }
.role-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.role-icon.inst { background: rgba(13, 77, 140, .1); color: var(--jc-primary); }
.role-icon.ind  { background: rgba(245, 158, 11, .15); color: #b45309; }
.role-icon.tr   { background: rgba(15, 157, 138, .13); color: #0b7a6b; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--jc-primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex: 0 0 36px; }
.jc-footer { background: #0b1b2e; color: #cbd5e1; }
.jc-footer a { color: #cbd5e1; text-decoration: none; }
.jc-footer a:hover { color: #fff; }
.bg-surface { background: var(--jc-surface); }

/* Vacancy cards */
.vacancy-card { border: 1px solid #e6ecf2; border-radius: 14px; padding: 1.25rem; background: #fff; height: 100%; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.vacancy-card:hover { border-color: #b9cde3; box-shadow: 0 10px 30px rgba(13, 77, 140, .08); }
.vacancy-card .company { color: var(--jc-muted); font-size: .85rem; }
.vacancy-card h5 { font-weight: 700; font-size: 1.05rem; margin: .35rem 0; }
.vacancy-card h5 a { color: var(--jc-ink); text-decoration: none; }
.vacancy-card .meta { font-size: .8rem; color: var(--jc-muted); display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.org-avatar { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3b6ea5, #0f9d8a); flex: 0 0 44px; }
.deadline-soon { color: #b45309; font-weight: 600; }

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: linear-gradient(160deg, #0b3f74, #0d4d8c 60%, #0f7f86); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .quote { font-size: 1.6rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: #fff; }
.auth-box { width: 100%; max-width: 420px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* Registration */
.reg-section { border: 1px solid #e6ecf2; border-radius: 14px; padding: 1.5rem; margin-bottom: 1.25rem; background: #fff; }
.reg-section > h5 { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.reg-section > h5 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--jc-primary); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.reg-section .form-text { font-size: .76rem; }
.form-label .req { color: #dc3545; }
.choice-card { border: 2px solid #e6ecf2; border-radius: 16px; padding: 1.75rem; height: 100%; text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s, box-shadow .15s; background: #fff; }
.choice-card:hover { border-color: var(--jc-primary); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(13, 77, 140, .12); color: inherit; }
.pw-toggle { cursor: pointer; }
.dept-grid { columns: 2; }
@media (min-width: 768px) { .dept-grid { columns: 3; } }

/* ── Portal ──────────────────────────────────────────────────── */
.jc-portal .app-header .nav-link, .jc-portal .app-header .navbar-text { color: #fff; }
.jc-portal .brand-link { color: #fff; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: .55rem; }
.jc-portal .brand-link .jc-logo { width: 30px; height: 30px; font-size: .9rem; }
.jc-notes { width: 340px; max-height: 70vh; overflow-y: auto; }
.jc-notes .dropdown-item { white-space: normal; border-bottom: 1px solid #f1f3f5; }
.jc-bell { font-size: .6rem; }
.stat-card { background: #fff; border: 1px solid #e9ecef; border-radius: .75rem; padding: 1.1rem; height: 100%; display: block; color: inherit; text-decoration: none; transition: box-shadow .15s; }
a.stat-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .06); color: inherit; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.stat-card .stat-label { color: #6c757d; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat-card .stat-icon { font-size: 1.35rem; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-title { font-size: 1.3rem; font-weight: 700; margin: 0; }
.page-sub { color: #6c757d; font-size: .85rem; }
.card { border-radius: .75rem; border-color: #e9ecef; }
.card-header { background: #fff; font-weight: 600; }
.card-header.d-flex::after { content: none; } /* AdminLTE's clearfix would sit between flex items */
.table td, .table th { vertical-align: middle; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: #6c757d; font-weight: 600; background: #f8fafc; }
.dl-grid { display: grid; grid-template-columns: 180px 1fr; gap: .45rem 1rem; font-size: .9rem; margin: 0; }
.dl-grid dt { color: #6c757d; font-weight: 500; }
.dl-grid dd { margin: 0; }
@media (max-width: 575.98px) { .dl-grid { grid-template-columns: 1fr; } .dl-grid dt { margin-top: .4rem; } }
.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; border-left: 2px solid #e2e8f0; margin-left: .45rem; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--jc-primary); border: 2px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; }
.empty-state { text-align: center; padding: 3rem 1rem; color: #6c757d; }
.empty-state i { font-size: 2.4rem; opacity: .4; display: block; margin-bottom: .5rem; }
.prewrap { white-space: pre-line; }
.pagination { margin-bottom: 0; }

@media print {
    .app-header, .app-sidebar, .app-footer, .no-print { display: none !important; }
    .app-wrapper { display: block !important; min-height: 0 !important; }
    .app-main { margin: 0 !important; }
}
