/* Delete Account Plugin Styles */

.delete-account-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.delete-account-section h3 {
    color: #d63638;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.delete-account-section p {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.delete-account-button {
    background-color: #d63638 !important;
    border-color: #d63638 !important;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.delete-account-button:hover {
    background-color: #b32d2e !important;
    border-color: #b32d2e !important;
}

.delete-account-button:disabled {
    background-color: #999 !important;
    border-color: #999 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* WordPress Admin Profile Page Styles */
.form-table .delete-account-button {
    margin-top: 10px;
}

/* WooCommerce Account Page Styles */
.woocommerce-account .delete-account-section {
    margin-top: 20px;
}

/* Notification Styles */
.delete-account-notification {
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

.delete-account-notification__content {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-account-notification__message {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.delete-account-notification__close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

/* Success notification */
.delete-account-notification--success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.delete-account-notification--success .delete-account-notification__close {
    color: #155724;
}

.delete-account-notification--success .delete-account-notification__close:hover {
    background-color: rgba(21, 87, 36, 0.1);
}

/* Error notification */
.delete-account-notification--error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.delete-account-notification--error .delete-account-notification__close {
    color: #721c24;
}

.delete-account-notification--error .delete-account-notification__close:hover {
    background-color: rgba(114, 28, 36, 0.1);
}

/* Info notification */
.delete-account-notification--info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.delete-account-notification--info .delete-account-notification__close {
    color: #0c5460;
}

.delete-account-notification--info .delete-account-notification__close:hover {
    background-color: rgba(12, 84, 96, 0.1);
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Confirmation Modal Styles */
.delete-account-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.delete-account-modal__content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.delete-account-modal__header {
    margin-bottom: 20px;
}

.delete-account-modal__title {
    color: #d63638;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
}

.delete-account-modal__icon {
    margin-right: 10px;
    font-size: 24px;
}

.delete-account-modal__message {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.delete-account-modal__actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.delete-account-modal__button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.delete-account-modal__button--cancel {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.delete-account-modal__button--cancel:hover {
    background-color: #e8e8e8;
    border-color: #ccc;
}

.delete-account-modal__button--confirm {
    background-color: #d63638;
    color: #fff;
}

.delete-account-modal__button--confirm:hover {
    background-color: #b32d2e;
}

.delete-account-modal__button--confirm:disabled {
    background-color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .delete-account-section {
        padding: 15px;
    }

    .delete-account-button {
        width: 100%;
        text-align: center;
    }

    .delete-account-notification__content {
        padding: 12px 15px;
    }

    .delete-account-notification__message {
        font-size: 14px;
    }

    .delete-account-notification__close {
        margin-left: 10px;
        width: 20px;
        height: 20px;
        font-size: 16px;
    }

    .delete-account-modal__content {
        padding: 20px;
        margin: 20px;
    }

    .delete-account-modal__title {
        font-size: 18px;
    }

    .delete-account-modal__message {
        font-size: 14px;
    }

    .delete-account-modal__actions {
        flex-direction: column;
        gap: 10px;
    }

    .delete-account-modal__button {
        width: 100%;
    }
}
