/* Custom Modal Styles - Diálogos Personalizados */

/* Overlay do modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container do modal */
.modal-container {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Header do modal */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
    position: relative;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Corpo do modal */
.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

/* Botões do modal */
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.modal-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.modal-btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.modal-btn-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.modal-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.modal-btn-success {
    background: linear-gradient(45deg, #32D74B, #00C851);
    color: white;
    box-shadow: 0 4px 15px rgba(50, 215, 75, 0.3);
}

.modal-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(50, 215, 75, 0.4);
}

/* Estilos específicos para diferentes tipos de modal */
.pix-modal .modal-header {
    background: linear-gradient(135deg, #32D74B 0%, #00C851 100%);
}

.warning-modal .modal-header {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
}

.error-modal .modal-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.info-modal .modal-header {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
}

.success-modal .modal-header {
    background: linear-gradient(135deg, #32D74B 0%, #00C851 100%);
}

/* Ícone PIX personalizado */
.pix-icon {
    background: white;
    color: #32D74B;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 480px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
}

/* Animações */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

