/* Autonomous System Font Stack — 100% On-Premise Ready (Zero External CDN) */
:root {
    --primaryColor: #1e40af;
    --primaryHover: #1e3a8a;
    --accentGreen: #059669;
    --accentOrange: #d97706;
    --bgLight: #f1f5f9;
    --cardBg: #ffffff;
    --textMain: #0f172a;
    --textMuted: #475569;
    --borderColor: #cbd5e1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bgLight);
    color: var(--textMain);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.containerBox { max-width: 1180px; margin: 0 auto; padding: 0 20px; width: 100%; }
.topNavbar { background: #ffffff; border-bottom: 1px solid var(--borderColor); padding: 14px 0; }
.navFlex { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brandLogo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--textMain); font-size: 1.25rem; }
.brandBadge { background: #dbeafe; color: var(--primaryColor); font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; margin-left: 6px; font-weight: 600; }
.navActions { display: flex; align-items: center; gap: 14px; }
.navLink { color: var(--textMuted); text-decoration: none; font-weight: 500; }

.mainContent { flex: 1; padding-top: 28px; padding-bottom: 48px; }
.gatewayGrid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .gatewayGrid { grid-template-columns: 1fr; } }

.gatewayCard { background: var(--cardBg); border: 1px solid var(--borderColor); border-radius: 12px; padding: 28px; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04); }
.gatewaySideColumn { display: flex; flex-direction: column; gap: 20px; }
.cardTag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; letter-spacing: 0.03em; }
.tagBlue { background: #dbeafe; color: #1e40af; }
.tagGreen { background: #d1fae5; color: #065f46; }
.tagOrange { background: #fef3c7; color: #92400e; }

h1 { font-size: 1.65rem; margin-bottom: 8px; }
h2 { font-size: 1.25rem; margin-bottom: 8px; }
h3 { font-size: 1.1rem; margin: 16px 0 12px; }
.cardSubtitle { color: var(--textMuted); margin-bottom: 20px; font-size: 0.95rem; }

.formGroup { margin-bottom: 16px; }
.formGroup label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.formGroup input, .formGroup select {
    width: 100%; padding: 11px 14px; border: 1px solid var(--borderColor); border-radius: 8px; font-size: 1rem; background: #fff;
}
.formGroup input:focus, .formGroup select:focus { outline: 2px solid var(--primaryColor); border-color: transparent; }
.pinBigInput { font-size: 1.8rem !important; text-align: center; letter-spacing: 0.35em; font-weight: 700; color: var(--primaryColor); }
.formRowTwo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .formRowTwo { grid-template-columns: 1fr; } }

.btnPrimaryLg, .btnPrimary, .btnSecondary, .btnOutline, .btnOutlineSm {
    display: inline-block; text-align: center; text-decoration: none; font-weight: 600; border-radius: 8px; cursor: pointer; border: none; transition: 0.15s;
}
.btnPrimaryLg { background: var(--primaryColor); color: #fff; padding: 14px 22px; font-size: 1.05rem; }
.btnPrimaryLg:hover, .btnPrimary:hover { background: var(--primaryHover); }
.btnPrimary { background: var(--primaryColor); color: #fff; padding: 11px 18px; font-size: 0.95rem; }
.btnSecondary { background: #e2e8f0; color: var(--textMain); padding: 11px 18px; font-size: 0.95rem; }
.btnOutline { border: 2px solid var(--primaryColor); color: var(--primaryColor); background: transparent; padding: 10px 18px; }
.btnOutlineSm { border: 1px solid var(--borderColor); color: var(--textMain); background: #fff; padding: 7px 14px; font-size: 0.88rem; }
.btnFullWidth { width: 100%; }
.btnGroupStack { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.demoCrashBox { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--borderColor); display: flex; flex-direction: column; gap: 8px; }
.btnDemoLink { color: var(--accentGreen); font-weight: 700; text-decoration: none; }
.ministryAccessBar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; }

.authContainer { max-width: 520px; margin: 0 auto; }
.authContainerWide { max-width: 820px; margin: 0 auto; }
.schoolSelectorBox { background: #f8fafc; border: 1px solid var(--borderColor); border-radius: 10px; padding: 18px; margin-bottom: 20px; }
.schoolDropdownList { max-height: 260px; overflow-y: auto; border: 1px solid var(--primaryColor); border-radius: 8px; background: #fff; margin-top: 6px; }
.schoolDropdownItem { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; cursor: pointer; }
.schoolDropdownItem:hover { background: #eff6ff; }
.schoolItemTitle { font-weight: 700; color: var(--primaryColor); }
.schoolItemMeta { font-size: 0.82rem; color: var(--textMuted); }
.schoolDropdownEmpty { padding: 12px; color: var(--textMuted); font-size: 0.9rem; }
.selectedSchoolBanner { background: #ecfdf5; border: 1px solid #10b981; color: #065f46; padding: 12px 16px; border-radius: 8px; margin: 12px 0; }
.customSchoolToggleBar { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; flex-wrap: wrap; gap: 8px; }
.btnLinkAction { background: none; border: none; color: var(--primaryColor); font-weight: 600; text-decoration: underline; cursor: pointer; }

.alertBox { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.alertSuccess { background: #d1fae5; color: #065f46; border: 1px solid #34d399; }
.alertError { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.statusBadge { font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; margin-left: 6px; text-decoration: none; font-weight: 600; }
.statusVerified { background: #d1fae5; color: #065f46; }
.statusPending { background: #fef3c7; color: #92400e; }

.verifyMethodsGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
@media (max-width: 768px) { .verifyMethodsGrid { grid-template-columns: 1fr; } }
.verifyMethodCard { border: 1px solid var(--borderColor); border-radius: 10px; padding: 20px; background: #f8fafc; }
.inlineCodeForm { display: flex; gap: 10px; }
.sandboxNoticeBox { background: #eff6ff; border: 1px solid #93c5fd; color: #1e3a8a; padding: 14px; border-radius: 8px; margin-top: 12px; }
.siteFooter { background: #fff; border-top: 1px solid var(--borderColor); padding: 20px 0; font-size: 0.85rem; color: var(--textMuted); }
.footerFlex { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.labelFlexRow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.forgotPassLink { font-size: 0.85rem; color: var(--primaryColor); text-decoration: none; font-weight: 500; }
.forgotPassLink:hover { text-decoration: underline; }
.authFooterLinks { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--borderColor); text-align: center; }
.authFooterTitle { font-size: 0.9rem; color: var(--textMuted); margin-bottom: 12px; font-weight: 500; }
.authFooterButtons { display: flex; flex-direction: column; gap: 10px; }

.adminNavStrip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.adminTab { background: #fff; border: 1px solid var(--borderColor); padding: 10px 16px; border-radius: 8px; text-decoration: none; color: var(--textMain); font-weight: 600; font-size: 0.92rem; }
.adminTab.active, .adminTab:hover { background: var(--primaryColor); color: #fff; border-color: var(--primaryColor); }
.statsGridFour { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .statsGridFour { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .statsGridFour { grid-template-columns: 1fr; } }
.statBox { background: #f8fafc; border: 1px solid var(--borderColor); border-radius: 10px; padding: 16px; }
.statLabel { font-size: 0.85rem; color: var(--textMuted); font-weight: 600; margin-bottom: 6px; }
.statValue { font-size: 1.55rem; font-weight: 800; color: var(--primaryColor); }
.formTextarea { width: 100%; padding: 10px 14px; border: 1px solid var(--borderColor); border-radius: 8px; font-family: inherit; font-size: 0.95rem; }
.tableResponsive { overflow-x: auto; margin-top: 12px; }
.dataTable { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dataTable th, .dataTable td { padding: 11px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.dataTable th { background: #f8fafc; font-weight: 700; color: var(--textMuted); }
.activeFilterBtn { background: #dbeafe !important; border-color: var(--primaryColor) !important; color: var(--primaryColor) !important; }

/* Projector 16:9 Wide Container & Slide Typography (prevents paragraph sticking) */
.projectorWideWrapper {
    width: calc(100vw - 48px);
    max-width: 1520px;
    margin-left: 50%;
    transform: translateX(-50%);
}
@media (max-width: 1220px) {
    .projectorWideWrapper {
        width: 100%;
        margin-left: 0;
        transform: none;
    }
}

.slideContentTypography p {
    margin-bottom: 16px;
    line-height: 1.65;
}
.slideContentTypography p:last-child {
    margin-bottom: 0;
}
.slideContentTypography ul,
.slideContentTypography ol {
    margin: 12px 0 18px 24px;
    padding-left: 8px;
}
.slideContentTypography li {
    margin-bottom: 10px;
    line-height: 1.6;
}
.slideContentTypography li:last-child {
    margin-bottom: 0;
}
.slideContentTypography strong {
    color: #0f172a;
    font-weight: 700;
}
