@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

// Plugin Deactivation Modal Styles
.aae-deactivate-modal {
    font-family: "Inter", sans-serif;
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);

    input[type=radio]:checked::before  
    {       
        background-color: #f00;       
    }
    
    .modal-content {
        background-color: #ffffff;
        margin: 5% auto;
        padding: 0;
        border-radius: 12px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        animation: modalSlideIn 0.3s ease-out;
        overflow: hidden;
    }
    
    .modal-header {
        padding: 24px 24px 20px;
        border-bottom: 1px solid #e5e5e5;
        background: white;
        color: #333;
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            
            .header-left {
                display: flex;
                align-items: center;
                gap: 14px;
                
                .wp-logo {
                    width: 24px;
                    height: 24px;
                    background: #f56500;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: white;
                    font-weight: bold;
                    font-size: 14px;
                    
                    img {                       
                        object-fit: contain;
                    }
                }
            }
            
            h3 {
                margin: 0;
                font-size: 18px;
                font-weight: 600;
                color: #333;
            }
            
            .close-btn {
                cursor: pointer;
                font-size: 28px;
                color: #666;
                transition: color 0.2s ease;
                line-height: 1;
                
                &:hover {
                    
                }
            }
        }
    }
    
    .modal-body {
        padding: 24px;
        
        .question {
            margin-bottom: 24px;
            color: #333;
            font-size: 16px;
            font-weight: 500;
            line-height: 1.5;
        }
        
        .feedback-form {
            .radio-group {
                margin-bottom: 16px;
                
                label {
                    display: flex;
                    align-items: center;
                    cursor: pointer;
                    padding: 4px 0px;
                    border-radius: 8px;
                    transition: background-color 0.2s ease;
                    margin-bottom: 8px;
                    
                    &:hover {
                      
                    }
                    
                    input[type="radio"] {
                        margin-right: 12px;
                        accent-color: #f56500;
                        transform: scale(1.1);
                        box-shadow: none;
                   
                        &:focus {
                            outline: none;
                            border-color: #f56500;
                        }
                    }
                    
                    span {
                        color: #555;
                        font-size: 14px;
                        font-weight: 400;
                    }
                }
            }
            
            .other-reason {
                display: none;
                margin-top: 16px;
                padding-left: 28px;
                
                textarea {
                    width: 100%;
                    height: 100px;
                    padding: 12px;
                    border: 1px solid #e5e5e5;
                    border-radius: 8px;
                    resize: vertical;
                    font-size: 14px;
                    transition: border-color 0.2s ease;
                    box-shadow: none;

                    &:focus {
                        outline: none;
                        border-color: rgba(255, 0, 0, 0.651);
                       
                    }
                    
                    &::placeholder {
                        color: #999;
                    }
                }
            }
        }
    }
    
    .modal-footer {
        padding: 20px 24px;
        border-top: 1px solid #e5e5e5;
        display: flex;
        justify-content: space-between;
        align-items: center;      
        
        .skip-btn {
            background: none;
            border: none;
            color: #666;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 6px;
            transition: all 0.2s ease;
            
            &:hover {
                color: #333;
                background-color: #e9ecef;
            }
        }
        
        .submit-btn {
            background: #f56500;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            
            &:hover {
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(245, 101, 0, 0.4);
            }
            
            &:disabled {
                background: #ccc;
                cursor: not-allowed;
                transform: none;
                box-shadow: none;
            }
        }
    }
}

// Animation for modal
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

// Responsive design
@media (max-width: 768px) {
    .aae-deactivate-modal {
        .modal-content {
            margin: 10% auto;
            width: 95%;
        }
        
        .modal-header {
            padding: 20px;
            
            .header-content h3 {
                font-size: 18px;
            }
        }
        
        .modal-body {
            padding: 20px;
        }
        
        .modal-footer {
            padding: 16px 20px;
            flex-direction: column;
            gap: 12px;
            
            .skip-btn,
            .submit-btn {
                width: 100%;
                text-align: center;
            }
        }
    }
}