﻿/* Improved SweetAlert Custom Modal */
:root {
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --modal-bg: #fff;
    --modal-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition-duration: 0.2s;
}

.custom-swal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

    .custom-swal-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

.custom-swal {
    background: var(--modal-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--modal-shadow);
    width: 90%;
    max-width: 400px;
    padding: 1.5rem;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

    .custom-swal.active {
        transform: scale(1);
        opacity: 1;
    }

    .custom-swal .swal-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
    }

        .custom-swal .swal-icon svg {
            width: 2.5em;
            height: 2.5em;
        }

    .custom-swal .swal-header {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        line-height: 1.3;
        color: #2d3748;
    }

    .custom-swal .swal-body {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
        color: #4a5568;
    }

    .custom-swal .swal-footer {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .custom-swal button {
        padding: 0.625rem 1.5rem;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.9375rem;
        font-weight: 500;
        transition: all var(--transition-duration) ease;
        min-width: 100px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

        .custom-swal button:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
        }

.swal-confirm {
    background-color: var(--success-color);
    color: white;
}

    .swal-confirm:hover {
        background-color: #218838;
        transform: translateY(-1px);
    }

.swal-cancel {
    background-color: var(--error-color);
    color: white;
}

    .swal-cancel:hover {
        background-color: #c82333;
        transform: translateY(-1px);
    }

@keyframes icon-animation {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.icon-success {
    color: var(--success-color);
    animation: icon-animation 0.4s ease-out;
}

.icon-error {
    color: var(--error-color);
    animation: icon-animation 0.4s ease-out;
}
