/* ASB custom notifications — toast + dialog (no SweetAlert) */

.asb-notify-toast-host {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    pointer-events: none;
    background: transparent;
    transition: background 0.2s ease;
}

.asb-notify-toast-host.asb-notify-toast-host--open {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.52);
}

.asb-notify-toast {
    pointer-events: auto;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
    animation: asbNotifyCenterIn 0.28s ease;
}

@keyframes asbNotifyCenterIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.asb-notify-toast.is-leaving {
    animation: asbNotifyCenterOut 0.22s ease forwards;
}

@keyframes asbNotifyCenterOut {
    to {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
}

.asb-notify-toast__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1rem;
}

.asb-notify-toast--success .asb-notify-toast__icon {
    background: #ecfdf5;
    color: #047857;
}

.asb-notify-toast--error .asb-notify-toast__icon {
    background: #fef2f2;
    color: #b91c1c;
}

.asb-notify-toast--warning .asb-notify-toast__icon {
    background: #fffbeb;
    color: #b45309;
}

.asb-notify-toast__body {
    width: 100%;
    min-width: 0;
}

.asb-notify-toast__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.asb-notify-toast__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
}

.asb-notify-toast__actions {
    width: 100%;
    margin-top: 1.25rem;
    padding-top: 0.25rem;
}

.asb-notify-toast__ok {
    width: 100%;
    min-height: 44px;
}

/* Modal dialog */
.asb-notify-overlay {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    animation: asbOverlayIn 0.2s ease;
}

@keyframes asbOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.asb-notify-dialog {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    animation: asbDialogIn 0.24s ease;
}

@keyframes asbDialogIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.asb-notify-dialog__head {
    padding: 1.25rem 1.35rem 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.asb-notify-dialog__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.asb-notify-dialog--success .asb-notify-dialog__icon { background: #ecfdf5; color: #047857; }
.asb-notify-dialog--error .asb-notify-dialog__icon { background: #fef2f2; color: #b91c1c; }
.asb-notify-dialog--warning .asb-notify-dialog__icon { background: #fffbeb; color: #b45309; }
.asb-notify-dialog--question .asb-notify-dialog__icon { background: #eff6ff; color: #1d4ed8; }

.asb-notify-dialog__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.asb-notify-dialog__text {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #64748b;
}

.asb-notify-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 1.15rem 1.35rem 1.25rem;
}

.asb-notify-btn {
    min-height: 42px;
    padding: 0 1.1rem;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.asb-notify-btn--primary {
    background: linear-gradient(145deg, #f4cb10 0%, #ffe566 100%);
    color: #0f172a;
    box-shadow: 0 6px 18px rgba(244, 203, 16, 0.35);
}

.asb-notify-btn--ghost {
    background: #f1f5f9;
    color: #334155;
}

.asb-notify-btn--danger {
    background: #dc2626;
    color: #fff;
}

.asb-notify-btn:hover {
    transform: translateY(-1px);
}
