/* ===== POPUP CUSTOMIZADO ===== */
/* Overlay escuro com blur */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

/* Container do popup */
.popup-container {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    position: relative;
    border: 1px solid var(--border);
    animation: slideIn 0.3s ease;
}

/* Tema claro para o popup */
[data-theme="light"] .popup-container {
    background: white;
}

/* Ícone do popup */
.popup-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Cores dos ícones por tipo */
.popup-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.popup-icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.popup-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.popup-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* Título do popup */
.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Mensagem do popup */
.popup-message {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Container dos botões */
.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Botões do popup */
.popup-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    min-width: 120px;
}

/* Botão primário (roxo) */
.popup-btn.primary {
    background: var(--accent);
    color: white;
}

.popup-btn.primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Botão secundário (borda roxa) */
.popup-btn.secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.popup-btn.secondary:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
}

/* Botão de fechar */
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    background: var(--bg-hover);
    color: var(--accent);
    transform: rotate(90deg);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 480px) {
    .popup-container {
        width: 95%;
        padding: 1.5rem;
    }
    
    .popup-title {
        font-size: 1.2rem;
    }
    
    .popup-message {
        font-size: 0.9rem;
    }
    
    .popup-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
}