/* Reset e base */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #2e3b2f;
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* Topo fixo com logo */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 20px;
    background-color: #1a472a; /* Verde escuro */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.logo img {
    height: 40px;
}

/* Centralização do conteúdo */
.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px; /* Espaço para evitar sobreposição do header */
    box-sizing: border-box;
}

/* Caixa de conteúdo central */
.container {
    text-align: center;
    background: #1c1f1d;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    box-sizing: border-box;
}

/* Caixa da chave Pix */
.pix-box {
    margin: 20px auto;
    font-size: 1.3rem;
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Botão de copiar */
.copiar-btn {
    margin-top: 15px;
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copiar-btn:hover {
    background-color: #45a049;
}

/* Rodapé fixo */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background-color: #1a472a; /* Verde escuro */
    color: #ddd;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Link para o cadastro */
a {
    color: #4caf50;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
}

/* Responsividade */
@media (max-width: 600px) {
    .pix-box {
        font-size: 1rem;
        padding: 12px;
    }

    .copiar-btn {
        width: 100%;
        font-size: 14px;
    }

    .logo img {
        height: 30px;
    }

    .footer {
        font-size: 12px;
    }
}
.hidden {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #555;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

#barra-progresso {
    height: 100%;
    width: 100%;
    background-color: #4caf50;
    transition: width 1s linear;
}

#temporizador p {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #4caf50;
}
/* Alerta Personalizado */
.alerta {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(76, 175, 80, 0.95);  /* Verde com transparência */
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 1051;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Alerta Ativo (Visível) */
.alerta.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Animação de Desaparecer */
.alerta.hidden {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
}

/* Fundo Desfocado */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);  /* Desfoque */
    background-color: rgba(0, 0, 0, 0.5);  /* Fundo escuro com transparência */
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Fundo Ativo */
.overlay.show {
    opacity: 1;
}
