:root {
    --bg-color: #000000;
    --transition-speed: 1.2s;
    --image-duration: 8000ms; /* Padrão 8 segundos */
    --accent-color: #f1f1f1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: white;
}

.display-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.media-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}

.media-wrapper.active {
    opacity: 1;
    z-index: 10;
}

.media-content {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Estilo para vídeos em tela cheia se necessário */
video.media-content {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Geralmente vídeos de signage ocupam a tela toda */
}

/* Feedback visual de carregamento */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* Notificação de erro */
.error-msg {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
}
