html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

#app {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.6s ease;
}

.iframe-wrapper iframe.visible {
    opacity: 1;
    z-index: 1;
}

.pdf-layer {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.pdf-layer[hidden] {
    display: none !important;
}

#pdf-canvas {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.status-msg {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-family: system-ui, sans-serif;
    font-size: 1.25rem;
    padding: 2rem;
    text-align: center;
}

.status-msg[hidden] {
    display: none !important;
}

/*
 * Barra de “countdown” sem números — fora de #app para ficar por cima de iframes
 * (Power BI / embeds usam camada de composição e tapam siblings no mesmo bloco).
 */
.slide-progress {
    position: fixed;
    right: 12px;
    bottom: 10px;
    width: 96px;
    max-width: 14vw;
    height: 3px;
    border-radius: 2px;
    overflow: hidden;
    z-index: 2147483000;
    pointer-events: none;
    opacity: 0.55;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: opacity 0.35s ease;
}

.slide-progress[hidden] {
    display: none !important;
}

.slide-progress.slide-progress--idle .slide-progress-fill {
    transform: scaleX(1);
    transition: none;
    opacity: 0.35;
}

.slide-progress-fill {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(1);
    background: linear-gradient(90deg, rgba(140, 180, 255, 0.45), rgba(230, 235, 255, 0.85));
    opacity: 1;
}
