/* SweetAlert2 Final Custom Style with Larger Toast */

/* Base styles */
.swal2-popup {
    font-size: 16px;
    border-radius: 0.3em;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.swal2-popup * {
    font-size: 16px;
}

/* Modal styles */
.swal2-popup:not(.swal2-toast) {
    padding: 1.5em;
    width: auto;
    max-width: 95%;
}

.swal2-popup:not(.swal2-toast) .swal2-title {
    font-size: 1.6em;
    margin-bottom: 0.8em;
}

.swal2-popup:not(.swal2-toast) .swal2-content,
.swal2-popup:not(.swal2-toast) .swal2-html-container {
    font-size: 1.1em;
    margin-bottom: 0.8em;
}

/* Toast styles - Significantly increased size */
.swal2-toast {
    font-size: 16px;  /* Increased from 1em */
    padding: 1.2em 1.8em;  /* Increased padding */
    max-width: 480px;  /* Increased from 400px */
}

.swal2-toast .swal2-title {
    font-size: 1.3em;  /* Increased */
    margin: 0 0 0.6em 0;
    padding: 0;
}

.swal2-toast .swal2-content,
.swal2-toast .swal2-html-container {
    font-size: 1.1em;  /* Increased for better readability */
    margin: 0;
    padding: 0;
}

.swal2-toast .swal2-icon {
    width: 2.5em;  /* Increased */
    height: 2.5em;
    margin: 0 0.8em 0 0;  /* Adjusted margin */
}

.swal2-toast .swal2-icon .swal2-icon-content {
    font-size: 2.2em;  /* Increased for better visibility */
}

.swal2-toast .swal2-close {
    font-size: 2em;  /* Increased */
    right: 0.4em;
    top: 0.4em;
}

/* Button styles */
.swal2-actions button,
.swal2-actions .swal2-styled {
    font-size: 1.1em;  /* Slightly increased */
    padding: 0.8em 1.6em;  /* Increased padding */
    margin: 0.5em;
    border-radius: 0.3em;
    font-weight: normal;
    line-height: 1.5;
    transition: all 0.15s ease-in-out;
}

.swal2-actions .swal2-confirm {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.swal2-actions .swal2-cancel {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.swal2-actions button:hover,
.swal2-actions .swal2-styled:hover {
    opacity: 0.8;
}

.swal2-actions button:focus,
.swal2-actions .swal2-styled:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Icon styles */
.swal2-icon.swal2-warning {
    border-color: #facea8;
    color: #f8bb86;
}

/* Error icon and X mark styles */
.swal2-icon.swal2-error {
    border-color: #f27474;
    color: #f27474;
}

/* Container styles */
.swal2-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes swal2-toast-show {
    0% { transform: translateY(-15px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes swal2-toast-hide {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-15px); opacity: 0; }
}

@keyframes swal2-show {
    0% { transform: scale(0.7); }
    45% { transform: scale(1.05); }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes swal2-hide {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.5); opacity: 0; }
}

@keyframes swal2-animate-icon-show {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}

.swal2-show {
    animation: swal2-show 0.3s;
}

.swal2-hide {
    animation: swal2-hide 0.15s forwards;
}

.swal2-toast.swal2-show {
    animation: swal2-toast-show 0.5s;
}

.swal2-toast.swal2-hide {
    animation: swal2-toast-hide 0.2s forwards;
}

.swal2-icon.swal2-animate-icon-show {
    animation: swal2-animate-icon-show 0.5s;
}