/* ==========================================================================
   Speedy Admin — Toast notifications
   ========================================================================== */

.toast-root {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 13.5px;
    pointer-events: auto;
    animation: toast-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.leaving { animation: toast-out 0.18s ease forwards; }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(24px); }
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    margin-top: 1px;
}

.toast-success { border-left-color: var(--success); }
.toast-success .toast-icon { background: var(--success); }

.toast-error { border-left-color: var(--danger); }
.toast-error .toast-icon { background: var(--danger); }

.toast-warning { border-left-color: var(--warning); }
.toast-warning .toast-icon { background: var(--warning); }

.toast-info .toast-icon { background: var(--primary); }

.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 700; }
.toast-message { color: var(--text-2); font-size: 13px; word-break: break-word; }

.toast-close {
    border: 0;
    background: transparent;
    color: var(--text-3);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
}
.toast-close:hover { color: var(--text); }

@media (max-width: 640px) {
    .toast-root { left: 16px; right: 16px; max-width: none; }
}
