/* /OlivaWeb/public/css/modal-tema.css (CORRIGIDO) */

/* =============================================== */
/* 🌈 Modal de Seleção de Tema — modal-tema.css     */
/* =============================================== */

#modal-tema {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}



#modal-tema.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Conteúdo do modal */
.modal-conteudo {
    background-color: var(--cor-painel, #fff);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);

    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Aumenta o espaçamento entre os elementos */
    width: 100%; 
    text-align: center; /* Centraliza os textos principais */

    max-width: 475px; /* Define uma largura máxima */
    animation: fadeInScale 0.25s ease;
}

/* Título */
.modal-conteudo h2 {
    margin-bottom: 1.5rem;
    color: var(--color-primary, #1C743C);
    font-size: 1.4rem;
    font-weight: 600;
}

/* Opções de tema */
.opcoes-tema {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tema-opcao {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
    text-transform: capitalize;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tema-opcao:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Temas específicos */
.tema-verde { background-color: #1C743C; }
.tema-azul { background-color: #004D99; }
.tema-roxo { background-color: #6A0DAD; }
.tema-vermelho { background-color: #8d0601; }
.tema-cinza { background-color: #37474F; }
.tema-preto { background-color: #000000; }
.tema-laranja { background-color: #E65100; }
.tema-amarelo { background-color: #F9A825; }
.tema-rosa { background-color: #C2185B; }



/* Tema selecionado visualmente */
.tema-opcao.ativo {
    outline: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--color-primary, #1C743C);
}

/* Animação de entrada */
@keyframes fadeInScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsividade */
@media (max-width: 480px) {
    .modal-conteudo {
        width: 90%;
        padding: 1.5rem;
    }
}


/* Área do botão Fechar — centralizado */
.modal-acoes {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Botão Fechar menor */
.btn-fechar {
    padding: 6px 14px;
    font-size: 0.85rem;
    border: none;
    border-radius: 8px;
    background-color: #ddd;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-fechar:hover {
    background-color: #ccc;
}
