/* PHP/MySQL production-app refinements */
.admin-nav-logout-form { display: inline-flex; margin: 0; }
.admin-nav-logout-form .admin-nav-link { font: inherit; cursor: pointer; }

.wvc-delete-modal .modal-dialog { max-width: 480px; }
.wvc-delete-modal .modal-content {
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 1.7rem 4.5rem rgba(6, 24, 56, .28);
}
.wvc-delete-modal .modal-body { background: linear-gradient(180deg, #fff 0%, #f7faff 100%); }
.delete-modal-icon {
  display: grid;
  width: 4.1rem;
  height: 4.1rem;
  margin: 0 auto 1rem;
  place-items: center;
  border: 1px solid rgba(220, 53, 69, .18);
  border-radius: 1.25rem;
  color: #c92a3b;
  background: linear-gradient(145deg, #fff0f1, #ffe0e3);
  box-shadow: 0 .7rem 1.5rem rgba(201, 42, 59, .12);
  font-size: 1.6rem;
}
.delete-modal-eyebrow { color: #c92a3b; font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.delete-record-preview {
  padding: 1rem 1.1rem;
  border: 1px solid #e2eaf4;
  border-radius: 1rem;
  background: rgba(255,255,255,.9);
  overflow-wrap: anywhere;
}
.delete-record-preview strong { color: #0b2450; font-size: 1rem; }
.wvc-delete-modal .btn-danger { color: #fff !important; background: linear-gradient(135deg, #e54858, #b91f35) !important; border-color: #c92a3b !important; }
.wvc-delete-modal .btn-danger:hover { background: linear-gradient(135deg, #c92a3b, #991b2d) !important; }
.wvc-delete-modal .btn-light { color: #253a57 !important; background: #fff !important; border-color: #dbe4ef !important; }
.wvc-delete-modal .btn-light:hover { background: #f1f5fa !important; }

#admin-form-feedback .alert { border-radius: .85rem; }
#visa-search-feedback .alert { border-radius: .85rem; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #dc3545 !important; }
.wvc-country-toggle.is-invalid { border-color: #dc3545 !important; box-shadow: 0 0 0 .2rem rgba(220,53,69,.1); }
.invalid-feedback[data-validation-message] { font-size: .78rem; margin-top: .35rem; }
.admin-page .admin-table td { vertical-align: middle; }
.admin-page .table-responsive { border-radius: 0 0 1.15rem 1.15rem; }

@media (max-width: 575.98px) {
  .wvc-delete-modal .modal-dialog { margin: .75rem; }
  .wvc-delete-modal .modal-body { padding: 1.5rem !important; }
  .admin-nav-logout-form { width: 100%; }
}


/* Visa result panel: preserve the original white/navy card; color only matched values. */
.applicant-result-panel .result-stat-box {
  background: #fff;
  border: 1px solid #bdcce6;
  box-shadow: none;
}
.applicant-result-panel .result-stat-label { color: #657390; }
.applicant-result-panel .visa-result-message.is-success {
  border: 1px solid #b9e6ca;
  background: #e6f7ec;
  color: #146c43;
}
.applicant-result-panel.has-result .applicant-detail-row > strong,
.applicant-result-panel.has-result #result-validity {
  color: #16804a;
  font-weight: 800;
}
.applicant-result-panel #result-status[class*="status-"] {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 1.55rem;
  padding: .22rem .62rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}
.applicant-result-panel #result-status.status-approved {
  color: #147849;
  background: #e9f8ef;
  border-color: #b9e8ca;
}
.applicant-result-panel #result-status.status-rejected {
  color: #b42318;
  background: #fff0ef;
  border-color: #f5c5c1;
}
.applicant-result-panel #result-status.status-pending {
  color: #936000;
  background: #fff5db;
  border-color: #f2dfa7;
}
.applicant-result-panel #result-status.status-under-review {
  color: #175cd3;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.applicant-result-panel #result-status.status-additional-documents-required {
  color: #6941c6;
  background: #f4f0ff;
  border-color: #d9ccff;
}
.applicant-result-panel #result-status.status-unknown {
  color: #475467;
  background: #f2f4f7;
  border-color: #d0d5dd;
}
.result-pdf-button {
  min-height: 46px;
  gap: .45rem;
  padding: .65rem 1.1rem;
  border: 1px solid #0b52bf !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0b5dd7, #0b2450) !important;
  box-shadow: 0 9px 22px rgba(11, 82, 191, .2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.result-pdf-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 13px 28px rgba(11, 82, 191, .27);
}
.result-pdf-button .pdf-button-icon {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: .55rem;
  background: rgba(255,255,255,.14);
}
.result-pdf-button:disabled { box-shadow: none; }
@media (max-width: 575.98px) {
  .applicant-result-panel .applicant-detail-row { flex-direction: column; gap: .25rem; }
  .applicant-result-panel .applicant-detail-row > strong { text-align: left; max-width: 100%; }
  .applicant-result-panel #result-status[class*="status-"] { align-self: flex-start; }
  .result-pdf-button { width: 100%; justify-content: center; }
}


/* Show only the uploaded applicant image beneath the result heading: 6px padding, no caption, border or background. */
.applicant-image-result {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-bottom: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.applicant-result-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: auto;
  padding: 0;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.applicant-image-caption { display: none !important; }

/* Small saved-record thumbnails help admins recognise the uploaded image at a glance. */
.admin-record-identity { display: flex; align-items: center; gap: .7rem; min-width: 225px; }
.record-image-thumbnail {
  display: block;
  width: 44px;
  height: 52px;
  flex: 0 0 44px;
  object-fit: cover;
  border: 1px solid #dbe4ef;
  border-radius: .45rem;
  background: #f4f7fb;
}
.record-image-placeholder { display: grid; place-items: center; color: #8b99ad; font-size: 1rem; }
.admin-image-preview {
  padding: .85rem;
  border: 1px solid #dce6f2;
  border-radius: .9rem;
  background: #f8fbff;
}
.admin-image-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 220px;
  margin-inline: auto;
  object-fit: contain;
  border-radius: .65rem;
  background: white;
}

/* Optional private PDF attachment controls in the admin record editor. */
.admin-pdf-current {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  border: 1px solid #dce6f2;
  border-radius: .9rem;
  background: linear-gradient(135deg, #f7faff, #fff);
  overflow-wrap: anywhere;
}
.admin-pdf-current-icon {
  display: inline-grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 2.65rem;
  place-items: center;
  color: #0b52bf;
  border: 1px solid #d9e5f7;
  border-radius: .75rem;
  background: #eaf2ff;
  font-size: 1.3rem;
}
.result-uploaded-pdf-button {
  border-color: #0b52bf !important;
  color: #0b52bf !important;
  background: #fff !important;
  box-shadow: 0 7px 18px rgba(11, 82, 191, .08);
}
.result-uploaded-pdf-button:hover:not(:disabled) {
  color: #fff !important;
  background: linear-gradient(135deg, #0b5dd7, #0b2450) !important;
}
.result-uploaded-pdf-button .pdf-button-icon {
  color: #0b52bf;
  border-color: #cbdcf6;
  background: #edf4ff;
}
.result-uploaded-pdf-button:hover:not(:disabled) .pdf-button-icon {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.14);
}
