




/* Normalize base layout to remove inline styles from template */
body {
    width: 100%;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Overlay base — shared by registration and deactivated overlays ── */
#registration-overlay,
#deactivated-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    /* Reset inherited properties so template CSS cannot bleed in */
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    font-weight: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#registration-overlay { z-index: 10000; }
#deactivated-overlay  { z-index: 99999; }

#registration-overlay.show,
#deactivated-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* ── Main content area — fills remaining space and centres its children ── */
#registration-overlay .overlay-main,
#deactivated-overlay .overlay-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1.5rem;
}

/* ── Shared overlay text elements ── */
#registration-overlay .registration-text,
#deactivated-overlay .registration-text {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

/* Deactivated title is red to signal an error state */
#deactivated-overlay .registration-text {
    color: #ff4444;
}

#registration-overlay .registration-status,
#deactivated-overlay .registration-status {
    font-size: 1.2rem;
    opacity: 0.8;
    text-align: center;
}

#registration-overlay .registration-status {
    color: #0dcaf0;
}

/* ── Powered-by block — in normal flow, can never overlap the QR code ── */
#registration-overlay .powered-by,
#deactivated-overlay .powered-by {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    margin-bottom: 32px;
    background: white;
    border-radius: 12px;
}

#registration-overlay .powered-text,
#deactivated-overlay .powered-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

#registration-overlay .powered-logo,
#deactivated-overlay .powered-logo {
    height: 48px;
    width: auto;
}

/* ── QR code — 15 px white border around the code ── */
#qr-code-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#qr-code {
    margin: 0;
    display: block;
}



#main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


#debug-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    border-left: 2px solid #444;
    z-index: 9999;
}

#debug-panel.collapsed {
    width: 40px;
}

#debug-panel.collapsed .debug-content {
    display: none;
}

#debug-toggle {
    background: #333;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    border-bottom: 1px solid #444;
    user-select: none;
}

#debug-toggle:hover {
    background: #444;
}

.debug-content {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.debug-section {
    margin-bottom: 15px;
}

.debug-label {
    color: #aaa;
}

.debug-value {
    color: #0f0;
    font-weight: bold;
}
