/* JejakLamar — gaya halaman (daftar, detail, form, Recycle Bin, notifikasi) */

/* Tautan yang tampil seperti tombol */
a.btn-primary-action,
a.btn-primary-action:hover,
a.btn-primary-action:focus { color: #fff; text-decoration: none; }
a.btn-form-cancel,
a.btn-form-cancel:hover { display: inline-flex; align-items: center; justify-content: center; color: #697780; text-decoration: none; }
a.jl-btn-secondary,
a.jl-btn-secondary:hover { text-decoration: none; }
a.stat-card,
a.stat-card:hover { display: block; color: inherit; text-decoration: none; }

.jl-muted { color: #929da4; }
.jl-sub { display: block; margin-top: 2px; color: #87939a; font-size: 11px; font-weight: 400; }
.jl-prewrap { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.jl-helper { color: #929da4; font-size: 10px; font-weight: 400; line-height: 1.5; }

/* Tombol */
.jl-btn-secondary,
.jl-btn-danger,
.jl-btn-danger-solid {
  display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px;
  padding: 0 17px; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.jl-btn-secondary { border: 1px solid var(--border); background: #fff; color: #46545b; }
.jl-btn-secondary:hover { background: #f5f7f8; color: #46545b; }
.jl-btn-danger { border: 1px solid #efd3d6; background: #fff; color: #b9444e; }
.jl-btn-danger:hover { background: #fff6f6; color: #b9444e; }
.jl-btn-danger-solid { border: 0; background: #c0444f; color: #fff; }
.jl-btn-danger-solid:hover { background: #a93842; }
.jl-btn-small { min-height: 34px; padding: 0 12px; font-size: 11px; }
.jl-btn-block { width: 100%; }
.jl-btn-secondary:disabled,
.jl-btn-danger:disabled,
.btn-primary-action:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.jl-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jl-empty-action { margin-top: 16px; }

/* Lencana status */
.jl-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.jl-badge-saved { background: #f0f2f3; color: #5f6c74; }
.jl-badge-applied { background: #eaf3ff; color: #2f6fba; }
.jl-badge-interview { background: #f2edff; color: #7450c0; }
.jl-badge-assessment { background: #fff3e7; color: #b8721d; }
.jl-badge-offer { background: #e9f8f0; color: #1f8a5e; }
.jl-badge-rejected { background: #fdeeee; color: #b9444e; }
.jl-badge-withdrawn { background: #e4e7e9; color: #4a565d; }
.jl-badge-no-response { background: #e8eef3; color: #51697d; }

/* Status memuat / kosong / error */
.jl-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 190px; padding: 26px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--muted); text-align: center; box-shadow: var(--shadow);
}
.jl-state strong { color: #46545b; font-size: 12px; }
.jl-state p { max-width: 390px; margin: 0; font-size: 11px; line-height: 1.7; }
.jl-error strong { color: #b9444e; }
.activity-panel .jl-state { min-height: 0; border: 0; box-shadow: none; padding: 0; }

/* Filter */
.jl-filters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  padding: 18px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow);
}
.jl-filter-search { grid-column: span 2; }
.jl-filter-actions { display: flex; align-items: flex-end; }

/* Daftar lowongan */
.jl-list { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.jl-row {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) 160px 150px; align-items: center; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 12px; text-decoration: none;
}
.jl-row:last-child { border-bottom: 0; }
a.jl-row:hover { background: #f8fbfb; color: var(--text); text-decoration: none; }
.jl-row-head { padding-top: 11px; padding-bottom: 11px; background: #f8fafb; color: #87939a; font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.jl-cell { min-width: 0; overflow-wrap: anywhere; }
.jl-cell-title strong { display: block; color: #26343b; font-size: 13px; }

/* Pagination */
.jl-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 0; }
.jl-pager-info { color: #87939a; font-size: 11px; }
.jl-pager-buttons { display: flex; align-items: center; gap: 10px; }
.jl-pager-page { color: #46545b; font-size: 11px; font-weight: 700; }

/* Halaman detail */
.jl-back { display: inline-block; margin-bottom: 16px; color: #697780; font-size: 12px; font-weight: 600; text-decoration: none; }
.jl-back:hover { color: var(--primary); text-decoration: none; }
.jl-detail-header { margin-bottom: 22px; }
.jl-detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.jl-detail-title h1 { margin: 0 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.8px; overflow-wrap: anywhere; }
.jl-detail-title p { margin: 0; color: var(--muted); font-size: 13px; }
.jl-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 20px; }
.jl-card { margin-bottom: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.jl-card h2 { margin: 0 0 14px; color: #303b43; font-size: 14px; font-weight: 800; }
.jl-dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 14px; margin: 0; font-size: 12px; }
.jl-dl dt { color: #87939a; font-weight: 600; }
.jl-dl dd { margin: 0; color: #26343b; overflow-wrap: anywhere; }
.jl-detail-side .jl-dl { grid-template-columns: 110px minmax(0, 1fr); }
.jl-stack { display: grid; gap: 10px; }
.jl-stack select,
.jl-date-edit input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dfe6e9; border-radius: 8px; background: #fff; font-size: 12px; }
.jl-date-edit { display: grid; gap: 10px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); }

/* Riwayat status */
.jl-timeline { position: relative; margin: 0; padding: 0 0 0 18px; list-style: none; }
.jl-timeline::before { position: absolute; top: 6px; bottom: 6px; left: 4px; width: 2px; background: #e1ebec; content: ""; }
.jl-timeline li { position: relative; padding-bottom: 14px; font-size: 12px; }
.jl-timeline li:last-child { padding-bottom: 0; }
.jl-timeline li::before { position: absolute; top: 4px; left: -18px; width: 10px; height: 10px; border: 2px solid var(--primary); border-radius: 50%; background: #fff; content: ""; }
.jl-timeline strong { display: block; color: #303b43; }

/* Aktivitas Dashboard */
.jl-panel { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.jl-activity-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.jl-activity-item:last-child { border-bottom: 0; }
a.jl-activity-item:hover { background: #f8fbfb; color: var(--text); text-decoration: none; }
.jl-activity-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; }
.jl-activity-dot.is-created { background: #9bd0d0; }
.jl-activity-dot.is-status { background: var(--primary); }
.jl-activity-main { min-width: 0; flex: 1; }
.jl-activity-main strong { display: block; overflow: hidden; color: #26343b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.jl-activity-time { flex: 0 0 auto; color: #929da4; font-size: 11px; }

/* Recycle Bin */
.jl-trash-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 12px; }
.jl-trash-row:last-child { border-bottom: 0; }
.jl-trash-meta { color: #46545b; }
.jl-trash-row .jl-cell-title strong { display: block; color: #26343b; font-size: 13px; }

/* Form: pembungkus halaman */
.application-form-panel { margin-top: 0; }
.form-field input[type="search"] { -webkit-appearance: none; appearance: none; }

/* Dialog konfirmasi */
.jl-dialog { width: min(92vw, 420px); padding: 24px; border: 0; border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 24px 70px rgba(28, 47, 56, .25); }
.jl-dialog::backdrop { background: rgba(32, 42, 50, .45); }
.jl-dialog h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.jl-dialog p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.jl-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Notifikasi */
.jl-toast-root { position: fixed; z-index: 60; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(92vw, 380px); pointer-events: none; }
.jl-toast { padding: 13px 16px; border: 1px solid #d3e6e7; border-left-width: 4px; border-radius: 10px; background: #fff; box-shadow: 0 12px 34px rgba(28, 47, 56, .16); color: #303b43; font-size: 12px; line-height: 1.6; pointer-events: auto; }
.jl-toast-success { border-color: #bfe5d2; border-left-color: #25a879; }
.jl-toast-error { border-color: #efd3d6; border-left-color: #c0444f; }
.jl-toast-warning { border-color: #f1dfb9; border-left-color: #e5a33b; }
.jl-toast-info { border-left-color: var(--primary); }

@media (max-width: 1050px) {
  .jl-detail { grid-template-columns: minmax(0, 1fr); }
  .jl-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .jl-filters { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .jl-filter-search { grid-column: auto; }
  .jl-filter-actions .jl-btn-secondary { width: 100%; }
  .jl-row-head { display: none; }
  .jl-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; }
  .jl-detail-title { flex-direction: column; gap: 10px; }
  .jl-header-actions { width: 100%; }
  .jl-header-actions > * { flex: 1 1 auto; }
  .jl-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .jl-dl dd { margin-bottom: 10px; }
  .jl-trash-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 16px; }
  .jl-trash-row .jl-btn-secondary { width: 100%; }
  .jl-activity-item { flex-wrap: wrap; }
  .jl-activity-time { padding-left: 24px; flex-basis: 100%; }
  .jl-toast-root { right: 12px; left: 12px; bottom: 80px; width: auto; }
  .jl-pager { justify-content: center; }
}

/* Catatan pribadi */
.jl-note-count { margin-left: 6px; font-size: 11px; font-weight: 600; }
.jl-note-form { display: grid; gap: 8px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.jl-note-form .form-message { min-height: 0; margin-top: 0; }
.jl-note-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.jl-notes { display: grid; }
.jl-note { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.jl-note:last-child { padding-bottom: 0; border-bottom: 0; }
.jl-note-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.jl-note-footer .jl-sub { margin-top: 0; }
.jl-note-edit { display: grid; gap: 8px; }
.jl-note-edit textarea,
.jl-note-form textarea { width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid #dfe6e9; border-radius: 8px; font: inherit; font-size: 12px; line-height: 1.6; resize: vertical; }
.jl-note-edit textarea:focus,
.jl-note-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 127, 140, .10); outline: none; }
.jl-link-button { padding: 4px 6px; border: 0; background: transparent; color: var(--primary); font-size: 11px; font-weight: 700; cursor: pointer; }
.jl-link-button:hover { text-decoration: underline; }
.jl-link-danger { color: #b9444e; }

/* Analytics */
.jl-stats-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jl-dist { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.jl-dist-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; align-items: center; gap: 14px; }
.jl-dist-track { height: 10px; overflow: hidden; border-radius: 999px; background: #eef2f3; }
.jl-dist-fill { display: block; height: 100%; min-width: 0; border-radius: 999px; background: #9aa6ad; }
.jl-dist-value { color: #46545b; font-size: 11px; font-weight: 700; text-align: right; white-space: nowrap; }
.jl-fill-saved { background: #9aa6ad; }
.jl-fill-applied { background: #3984dc; }
.jl-fill-interview { background: #8b65d6; }
.jl-fill-assessment { background: #d98b2f; }
.jl-fill-offer { background: #269b6d; }
.jl-fill-rejected { background: #d1545e; }
.jl-fill-withdrawn { background: #6b777e; }
.jl-fill-no-response { background: #7e97ab; }

@media (max-width: 1050px) {
  .jl-stats-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .jl-dist-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .jl-dist-track { grid-column: 1 / -1; grid-row: 2; }
  .jl-note-footer { align-items: flex-start; flex-direction: column; }
}

/* Akun */
.jl-card-note { margin: 0 0 14px; color: #87939a; font-size: 11px; line-height: 1.7; }
.jl-menu { display: grid; }
.jl-menu a { padding: 11px 0; border-bottom: 1px solid var(--border); color: #303b43; font-size: 12px; font-weight: 600; text-decoration: none; }
.jl-menu a:last-child { border-bottom: 0; }
.jl-menu a:hover { color: var(--primary); }
.jl-danger-zone { border-color: #efd3d6; }
.jl-danger-zone h2 { color: #b9444e; }
.jl-card textarea { width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid #dfe6e9; border-radius: 8px; font: inherit; font-size: 12px; line-height: 1.6; resize: vertical; }
.jl-card .form-grid { margin-bottom: 4px; }
.jl-dialog .form-field { margin-bottom: 12px; }

/* Pembuat Lamaran */
.jl-copy-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.jl-copy-head h2 { margin: 0; }
.jl-card input[type="email"],
.jl-card input[type="text"] { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dfe6e9; border-radius: 8px; background: #fff; font-size: 13px; }
.jl-card textarea { font-size: 13px; line-height: 1.75; }
.jl-card input:focus,
.jl-card textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 127, 140, .10); outline: none; }
.jl-notice { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; font-size: 12px; line-height: 1.7; }
.jl-notice[hidden] { display: none; }
.jl-notice-info { border: 1px solid #cfe3e5; background: #f3fafa; color: #2f5f66; }
.jl-notice-warn { border: 1px solid #f1dfb9; background: #fff8e8; color: #7a5a1c; }
.jl-usage ul { margin: 0; padding-left: 20px; color: #46545b; font-size: 12px; line-height: 1.9; }
@media (max-width: 760px) {
  .jl-copy-head .jl-btn-small { width: 100%; }
}
