html {
  font-size: 14px;
}

@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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 60px;
}

.offline-primer__scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.15);
    z-index: 1055;
    pointer-events: auto;
    cursor: wait;
    display: none;
}

body.offline-primer--blocking {
    overflow: hidden;
}

body.offline-primer--blocking .offline-primer__scrim {
    display: block;
}

body.offline-prep-page {
    background: radial-gradient(circle at top, #1f2a44 0%, #0a1330 55%, #050914 100%);
    color: #fff;
    overflow: hidden;
}

body.offline-prep-page .content-wrapper {
    margin: 0 !important;
    width: 100%;
}

.offline-prep {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.offline-prep__card {
    max-width: 540px;
    width: 100%;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.offline-prep__spinner {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    color: #f97316;
    border-width: 0.3rem;
    border-color: rgba(249, 115, 22, 0.25);
    border-top-color: #f97316;
}

.offline-prep__title {
    font-size: 1.75rem;
    font-weight: 600;
}

.offline-prep__status,
.offline-prep__substatus {
    margin-bottom: 0.25rem;
}

.offline-prep__substatus,
.offline-prep .text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}
.offline-prep__eyebrow {
    letter-spacing: 0.2rem;
    font-size: 0.75rem;
}

.help-doc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.help-doc-button i {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.swal2-popup.help-doc-popup {
    width: 100% !important;
    max-width: none;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.help-doc-content {
    flex: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
    text-align: left;
}

.help-doc-loading {
    color: #6c757d;
}

.help-doc-container {
    z-index: 20000;
}

.help-doc-popup .swal2-html-container {
    text-align: left;
}

/* Rendered markdown styles */
.help-doc-rendered {
    white-space: normal;
}

.help-doc-rendered h1,
.help-doc-rendered h2,
.help-doc-rendered h3,
.help-doc-rendered h4,
.help-doc-rendered h5,
.help-doc-rendered h6 {
    margin: 0.5rem 0 0.25rem;
    font-weight: 600;
    font-size: 1rem;
}

.help-doc-rendered p {
    margin: 0.5rem 0;
}

.help-doc-rendered ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.help-doc-rendered li {
    margin: 0.25rem 0;
}

.help-doc-rendered code {
    background: #eef2f7;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.help-doc-rendered pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

/* Custom help overlay */
.help-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}

.help-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.help-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
}

.help-overlay__panel {
    position: absolute;
    inset: 0;
    margin: 2rem;
    background: #fff;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

@media (max-width: 768px) {
    .help-overlay__panel {
        margin: 0.75rem;
    }
}

.help-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.help-overlay__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.help-overlay__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}

.help-overlay__body {
    flex: 1;
    padding: 1rem;
    overflow: hidden;
}

.help-overlay__body .help-doc-content {
    height: 100%;
    margin-top: 0;
}
