/* Popup de Confirmação - Estilo Global ALUFORCE V.2 */
/* Design Profissional e Institucional */

.popup-confirmacao-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.popup-confirmacao-overlay.active {
    display: flex !important;
    animation: overlayFadeIn 0.25s ease-out;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-confirmacao-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 0;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), 0 0 1px rgba(0, 0, 0, 0.1);
    animation: popupSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Header do Popup - Visual Impactante */
.popup-confirmacao-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 28px 20px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}

/* Ícone com Design de Círculo */
.popup-confirmacao-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
}

.popup-confirmacao-icon-wrapper.danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.popup-confirmacao-icon-wrapper.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.popup-confirmacao-icon-wrapper.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
}

.popup-confirmacao-icon-wrapper.info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.popup-confirmacao-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

.popup-confirmacao-icon-wrapper.danger::after {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.popup-confirmacao-icon {
    font-size: 36px;
    position: relative;
    z-index: 1;
}

.popup-confirmacao-icon.danger { color: #ef4444; }
.popup-confirmacao-icon.warning { color: #f59e0b; }
.popup-confirmacao-icon.success { color: #22c55e; }
.popup-confirmacao-icon.info { color: #3b82f6; }

.popup-confirmacao-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Body do Popup */
.popup-confirmacao-body {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    padding: 24px 28px;
    text-align: center;
}

.popup-confirmacao-body strong {
    color: #334155;
    font-weight: 600;
}

.popup-confirmacao-body .item-name {
    display: block;
    margin-top: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    font-weight: 600;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

/* Footer do Popup */
.popup-confirmacao-footer {
    display: flex;
    gap: 12px;
    padding: 0 28px 28px;
    justify-content: stretch;
}

.popup-confirmacao-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-confirmacao-btn i {
    font-size: 16px;
}

.popup-confirmacao-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.popup-confirmacao-btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
}

.popup-confirmacao-btn-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.popup-confirmacao-btn-confirm:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.popup-confirmacao-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.popup-confirmacao-btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.popup-confirmacao-btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.popup-confirmacao-btn-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

/* Estilos para tipo de exclusão */
.popup-exclusao .popup-confirmacao-header {
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}

.popup-exclusao .popup-confirmacao-body {
    color: #64748b;
}

/* Estilo para aviso importante */
.popup-confirmacao-warning-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
}

.popup-confirmacao-warning-text i {
    color: #f59e0b;
}

/* Responsivo */
@media (max-width: 480px) {
    .popup-confirmacao-content {
        width: 95%;
        margin: 16px;
        border-radius: 20px;
    }
    
    .popup-confirmacao-header {
        padding: 28px 24px 16px;
    }
    
    .popup-confirmacao-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .popup-confirmacao-icon {
        font-size: 30px;
    }
    
    .popup-confirmacao-title {
        font-size: 20px;
    }
    
    .popup-confirmacao-body {
        padding: 20px 24px;
        font-size: 14px;
    }
    
    .popup-confirmacao-footer {
        flex-direction: column-reverse;
        padding: 0 24px 24px;
    }
    
    .popup-confirmacao-btn {
        width: 100%;
    }
}
