html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  display: flex;
  flex-direction: column;
  /* min-height: 100vh; Need to ensure footer is visible */
  margin-bottom: 60px;
}

main {
  flex: 1 0 auto;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6, .navbar-brand {
  color: #293272;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
}

.navbar, .navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

ol ul {
  padding-inline-start: 0;
  list-style-position: inside;
  list-style-type: none;
}

ol ol {
  padding-inline-start: 1em;
  list-style-position: outside;
}

li {
  color: #293272;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

li.privacy {
  padding-top: 1.25rem;
}

.nav-link, .btn, .text-muted, p {
  color: #293272;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.nav-link {
  font-size: 14px;
}

.form-label, .form-text, .form-control {
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.btn-primary {
  background: linear-gradient(180deg, #1559ea 0%, #293272 100%);
  color: #ffffff;
  border-radius: 40px;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #293272 0%, #293272 100%);
  color: #ffffff;
}

.btn-outline-primary {
  border-color: #293272;
  border-radius: 40px;
}

.btn-outline-primary:hover {
  border-color: #f89420;
  background: #f89420;
}

.pidm-gradient {
  background: linear-gradient(107deg, #e5efff 0%, #fff6ed 100.97%);
  background-size: cover;
}

.pidm-font-archivo {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
}

.pidm-font-inter {
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.pidm-font-google-code {
  font-family: "Google Sans Code", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
}

/* Global Loading Spinner */
#loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#loading-overlay.show {
  display: flex;
}

.loading-spinner {
  text-align: center;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
}

/* Replaces inline styles to comply with CSP style-src without unsafe-inline */
.navbar-brand-logo { margin: 24px; }
.footer-text { color: rgba(153, 153, 153, 1); }
.jobid-code { font-size: 0.85rem; }
.form-inline-display { display: inline; }
.decrypted-content-box { max-height: 500px; overflow-y: auto; overflow-x: auto; }
.decrypted-pre { font-size: 0.85rem; }
.privacy-ol { color: #293272; text-align: justify; }
.privacy-link-external { color: #0D6EFD; }
.privacy-ul-plain { list-style-type: none; }
.alert-preline { white-space: pre-line; }
.email-body-pre { background: #f8f9fa; padding: 12px; border-radius: 4px; font-size: 13px; white-space: pre-wrap; word-break: break-all; }