 

 

/* 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;
}

/* Registration overlay styling */
#registration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* keep a dark backdrop */
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
    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;
}

/* When registration overlay is visible, we use a solid dark backdrop (no SVG watermark) */
#registration-overlay.show {
    display: flex;
    background-image: none;
    opacity: 1;
    pointer-events: all;
}

/* Deactivated overlay styling (mirrors registration) */
#deactivated-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999; /* higher than registration */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    /* 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;
}
#deactivated-overlay.show {
    opacity: 1;
    pointer-events: all;
}
#deactivated-overlay .registration-text {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #ff4444;
}
#deactivated-overlay .registration-status {
    font-size: 1.5rem;
    opacity: 0.8;
}
#deactivated-overlay .powered-by {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      opacity: 0.7;
}
#deactivated-overlay .powered-text {
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: #aaa;
}
#deactivated-overlay .powered-logo {
      height: 120px;
      width: auto;
      filter: grayscale(100%) brightness(1.5);
}

#registration-overlay .registration-text {
    font-size: 24px;
    font-weight: bold;
    margin: 20px;
    text-align: center;
    color: white;
}
#registration-overlay .registration-status {
    font-size: 18px;
    color: #0dcaf0;
    margin-top: 10px;
    text-align: center;
}

#qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    /* Use flex to center QR code horizontally and vertically */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 320px;
    min-height: 320px;
}

/* Powered-by block shown below the QR code */
#registration-overlay .powered-by {
    margin-top: 80px;
    margin-bottom: 16px;
    color: #0dcaf0;
    padding-top: 80px;
}
#registration-overlay .powered-by .powered-text {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 6px;
}
#registration-overlay .powered-by .powered-logo {
    height: 120px;
    width: auto;
    display: inline-block;
    filter: brightness(1.2);
}

#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;
}

