html {
  font-size: 16px;
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

.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 {
  margin-bottom: 60px;
  line-height: 1.5;
  color: #222;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Nylas Connection Status Indicators */
.nylas-status-connected {
  color: #28a745;
  font-weight: 500;
  cursor: default;
  font-size: 0.95em;
}

.nylas-status-disconnected {
  color: #dc3545;
  font-weight: 500;
  cursor: default;
  font-size: 0.95em;
}

/* Even smaller status indicators for detail pages */
h4 .nylas-status-connected,
h4 .nylas-status-disconnected {
  font-size: 0.85em;
  vertical-align: super;
  line-height: 1;
}

/* Darken muted and helper text for readability */
small,
.form-text,
.text-muted {
  color: #555 !important;
}

/* Stack emergency block and footer on mobile */
@media (max-width: 768px) {
    .emergency-block,
    footer {
        display: block !important;
        width: 100% !important;
    }

    .emergency-block {
        margin-bottom: 20px;
        padding: 0 15px;
    }
}

body {
    padding-top: 100px; /* Adjust based on your header height */
    padding-bottom: 100px; /* Adjust based on your footer height */
}


/* =========================
   Magellan XML Preview Page
   ========================= */

/* Let Bootstrap handle layout — do NOT override row flex */
.xml-preview-container {
    min-height: 75vh;
}

/* Left steps rail (Legal Items style) */
.xml-preview-steps {
    width: 240px; /* fixed legal-style sidebar */
    flex-shrink: 0;
    border-right: 1px solid #e5e5e5;
    padding-right: 1rem;
}

    .xml-preview-steps h6 {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6c757d;
        margin: 0 0 1rem 0; /* normalize heading */
    }

    .xml-preview-steps ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 1.5rem;
    }

    .xml-preview-steps li {
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

/* Step states */
.xml-step-complete {
    color: #198754; /* Bootstrap success */
    font-weight: 600;
}

.xml-step-pending {
    color: #6c757d;
}

/* Right document pane */
.xml-preview-document {
    padding-left: 2.5rem;
}

    .xml-preview-document h4 {
        margin: 0 0 1rem 0; /* align with Steps header */
        font-weight: 500;
    }

/* XML content */
.xml-preview {
    max-height: 75vh;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1rem;
    font-family: Consolas, Menlo, Monaco, monospace;
    font-size: 13px;
    white-space: pre-wrap;
}

/* Button spacing */
.steps-actions {
    margin-top: 1rem;
}

