.demo-controls { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:16px; }
.demo-controls button, .demo-controls a { color:#fff; background:#ffffff0d; border:1px solid #ffffff33; border-radius:8px; padding:10px 14px; font:inherit; font-size:14px; cursor:pointer; text-decoration:none; }
.demo-controls a[hidden] { display:none; }
.form-group .btn-magic:disabled, .demo-controls button:disabled { opacity:.6; cursor:not-allowed; transform:none; }
#generation-status { font-size:14px; color:#ffffffcc; margin-top:12px; }

/* Fundo dinâmico em toda a janela, atrás da interface e sem capturar cliques. */
body { isolation: isolate; }
#generated-background { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #0f131a; }
#generated-background[hidden], .demo-controls button[hidden] { display: none; }
#generated-background iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
body > .header, body > .container { position: relative; z-index: 1; }
/* Mantém texto e formulário legíveis mesmo sobre fundos muito claros. */
body.has-generated-background .header { text-shadow: 0 1px 5px #000, 0 0 12px #000; }
body.has-generated-background .main-card { background: rgba(15, 19, 26, .78); }
