/* Modais de Confirmação */
/* Vota Cidadão - Barra do Rocha 2028 */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    background: var(--cor-branco);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--cor-borda);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: bounceSuccess 1s ease-out;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3));
}

@keyframes bounceSuccess {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    70% {
        transform: scale(0.95) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.modal-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--cor-primaria);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--cor-texto-claro);
    font-weight: 500;
}

.modal-body {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-message {
    font-size: 1.2rem;
    color: var(--cor-texto);
    line-height: 1.8;
    font-weight: 500;
    padding: 0 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 150px;
}

.modal-btn-primary {
    background: var(--gradiente-primario);
    color: var(--cor-branco);
    box-shadow: 0 4px 16px rgba(26, 95, 122, 0.3);
}

.modal-btn-primary:hover {
    background: var(--gradiente-secundario);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 95, 122, 0.4);
}

.modal-btn-secondary {
    background: var(--cor-fundo);
    color: var(--cor-texto);
    border: 2px solid var(--cor-borda);
}

.modal-btn-secondary:hover {
    background: var(--cor-borda);
    transform: translateY(-2px);
}

.modal-btn:active {
    transform: translateY(-1px);
}

/* Modal Success */
.modal-success .modal-icon {
    color: var(--cor-sucesso);
}

/* Modal Error */
.modal-error .modal-icon {
    color: var(--cor-erro);
}

/* Modal Warning */
.modal-warning .modal-icon {
    color: var(--cor-warning);
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsivo */
@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-icon {
        font-size: 3.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}
