#asx-toast-container {
    position: fixed;
    top: 76px;
    right: 16px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    pointer-events: none;
}

.asx-toast {
    background: #e5e5e5;
    border-radius: 12px;
    padding: 13px 14px;
    box-shadow: -4px -4px 10px rgba(255,255,255,0.8), 4px 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: all;
    min-width: 240px;
}
.asx-toast.show { opacity: 1; transform: translateX(0); }
.asx-toast.hide { opacity: 0; transform: translateX(24px); }

.asx-toast-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.asx-toast-body { flex: 1; font-size: 0.875rem; color: #374151; line-height: 1.45; }

.asx-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}
.asx-toast-close:hover { color: #374151; }

.asx-toast.t-info    .asx-toast-icon { color: #17a2b8; }
.asx-toast.t-success .asx-toast-icon { color: #059669; }
.asx-toast.t-error   .asx-toast-icon { color: #ef4444; }
.asx-toast.t-warning .asx-toast-icon { color: #d97706; }

body.dark-theme .asx-toast {
    background: #1a1a1d;
    box-shadow: -4px -4px 10px rgba(60,60,65,0.4), 4px 4px 10px rgba(0,0,0,0.5);
}
body.dark-theme .asx-toast-body  { color: #b8b8c0; }
body.dark-theme .asx-toast-close { color: #6b6b75; }
body.dark-theme .asx-toast-close:hover { color: #d4d4dc; }

/* ── Confirm dialog ─────────────────────────────────────────────────────── */

#asx-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}
#asx-confirm-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.asx-confirm {
    background: #e5e5e5;
    border-radius: 18px;
    padding: 28px 24px 20px;
    max-width: 380px;
    width: 90%;
    box-shadow: -8px -8px 18px rgba(255,255,255,0.85), 8px 8px 18px rgba(0,0,0,0.15);
    transform: scale(0.94);
    transition: transform 0.2s ease;
}
#asx-confirm-overlay.show .asx-confirm {
    transform: scale(1);
}

.asx-confirm-msg {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.55;
    margin: 0 0 22px;
}

.asx-confirm-btns {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.asx-confirm-btn {
    padding: 9px 22px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: box-shadow 0.15s, transform 0.1s;
}
.asx-confirm-btn:active { transform: scale(0.97); }

.asx-confirm-cancel {
    background: #e5e5e5;
    color: #6b7280;
    box-shadow: -3px -3px 7px rgba(255,255,255,0.9), 3px 3px 7px rgba(0,0,0,0.12);
}
.asx-confirm-cancel:hover {
    box-shadow: -1px -1px 3px rgba(255,255,255,0.9), 1px 1px 3px rgba(0,0,0,0.1);
}

.asx-confirm-ok {
    background: #17a2b8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(23,162,184,0.35);
}
.asx-confirm-ok:hover { background: #138496; }

/* Dark theme */
body.dark-theme #asx-confirm-overlay { background: rgba(0,0,0,0.45); }
body.dark-theme .asx-confirm {
    background: #1a1a1d;
    box-shadow: -8px -8px 18px rgba(60,60,65,0.4), 8px 8px 18px rgba(0,0,0,0.55);
}
body.dark-theme .asx-confirm-msg { color: #b8b8c0; }
body.dark-theme .asx-confirm-cancel {
    background: #1a1a1d;
    color: #9ca3af;
    box-shadow: -3px -3px 7px rgba(60,60,65,0.5), 3px 3px 7px rgba(0,0,0,0.5);
}
body.dark-theme .asx-confirm-cancel:hover {
    box-shadow: -1px -1px 3px rgba(60,60,65,0.4), 1px 1px 3px rgba(0,0,0,0.4);
}
