﻿/* Shared SweetAlert2 toast styles. */
.swal2-container.app-toast-container {
    box-sizing: border-box;
    max-width: min(100%, calc(600px + 24px));
    padding: 12px;
}

.swal2-popup.swal2-toast {
    box-sizing: border-box;
    width: max-content;
    min-width: 0;
    max-width: min(100%, 600px);
    padding: 16px 24px;
    border: none;
    border-radius: 2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: #F65275;
    color: #fff;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
}

    .swal2-popup.swal2-toast .swal2-title,
    .swal2-popup.swal2-toast .swal2-html-container,
    .swal2-popup.swal2-toast .swal2-close {
        padding: 0;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        color: #fff;
        text-align: left;
        font-size: 14px;
        line-height: 20px;
        font-weight: 400;
        font-family: var(--app-font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    }

    .swal2-popup.swal2-toast .swal2-timer-progress-bar-container {
        display: none;
    }

    /* Icon slot: the tick/cross assets already include their own circular badge. */
    .swal2-popup.swal2-toast .swal2-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 28px;
        height: 28px;
        min-width: 28px;
        margin: 0;
        border: none;
        background: transparent;
        border-radius: 50%;
    }

        .swal2-popup.swal2-toast .swal2-icon .swal2-icon-content {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }

        /* Tick/cross glyphs loaded from wwwroot/icons. */
        .swal2-popup.swal2-toast .swal2-icon .app-toast-glyph {
            width: 28px;
            height: 28px;
            display: block;
        }

        .swal2-popup.swal2-toast .swal2-icon [class^='swal2-x-mark'],
        .swal2-popup.swal2-toast .swal2-icon .swal2-success-ring,
        .swal2-popup.swal2-toast .swal2-icon [class^='swal2-success-circular-line'],
        .swal2-popup.swal2-toast .swal2-icon .swal2-success-fix,
        .swal2-popup.swal2-toast .swal2-icon [class^='swal2-success-line'] {
            display: none;
        }

    /* Success variant: explicit class plus a fallback based on the rendered icon. */
    .swal2-popup.swal2-toast.app-toast-success,
    .swal2-popup.swal2-toast:has(.swal2-icon.swal2-success) {
        background: #12A085;
    }

    .swal2-popup.swal2-toast.app-toast-error {
        background: #F65275;
    }

/* Shared confirmation modal (AppConfirm) */
.swal2-popup.app-confirm-popup {
    border-radius: 4px;
    padding: 32px 24px 24px;
}

.app-confirm-title {
    color: #4A4A4A;
    font-size: 30px;
    font-weight: 700;
}

.app-confirm-text {
    color: #6B6B6B;
    font-size: 18px;
}

.app-confirm-actions {
    gap: 12px;
}

.app-confirm-btn,
.app-confirm-cancel-btn {
    border: 0;
    border-radius: 2px;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 28px;
}

.app-confirm-btn {
    background: #00795C;
}

    .app-confirm-btn:hover {
        background: #00614A;
    }

.app-confirm-cancel-btn {
    background: #F98A75;
}

    .app-confirm-cancel-btn:hover {
        background: #F4715A;
    }
