/* Jobs Core Pro — Modal dialog generik (lihat jc-modal.js).
   Dipakai admin (metabox) dan halaman publik, jadi warnanya SENGAJA netral
   (tidak ikut palet admin ataupun tema) — cuma teal aksen plugin (#17607a),
   yang sudah dipakai konsisten di seluruh metabox. */

.jc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 100000; /* di atas admin bar WP (99999) & anchor ad tema (9999) */
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.jc-modal-overlay.is-open {
  display: flex;
}
.jc-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
  animation: jc-modal-in 0.15s ease-out;
}
@keyframes jc-modal-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.jc-modal-message {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.jc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.jc-modal-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.jc-modal-btn:focus-visible {
  outline: 2px solid #17607a;
  outline-offset: 2px;
}
.jc-modal-btn-secondary {
  background: #fff;
  border-color: #cfd8e3;
  color: #475569;
}
.jc-modal-btn-secondary:hover {
  background: #f1f5f9;
}
.jc-modal-btn-primary {
  background: #17607a;
  color: #fff;
}
.jc-modal-btn-primary:hover {
  background: #124d61;
}

@media screen and (max-width: 480px) {
  .jc-modal-box {
    padding: 18px 18px;
  }
  .jc-modal-actions {
    flex-direction: column-reverse;
  }
  .jc-modal-btn {
    width: 100%;
    padding: 10px 18px;
  }
}
