/* Toast moderno / minimalista — substitui alert() nativo */

.wm-toast-host {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.wm-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 16px 32px -8px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(15, 23, 42, 0.06);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-toast--in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wm-toast--out {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
}

.wm-toast__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.wm-toast__body {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.wm-toast__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
    opacity: 0.75;
}

.wm-toast__msg {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1f2937;
}

.wm-toast__close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.wm-toast__close:hover {
    color: #374151;
    background: rgba(15, 23, 42, 0.05);
}

/* Tipos */
.wm-toast--success .wm-toast__icon {
    background: #ecfdf5;
    color: #059669;
}
.wm-toast--success .wm-toast__label { color: #059669; }

.wm-toast--danger .wm-toast__icon,
.wm-toast--error .wm-toast__icon {
    background: #fef2f2;
    color: #dc2626;
}
.wm-toast--danger .wm-toast__label,
.wm-toast--error .wm-toast__label { color: #dc2626; }

.wm-toast--warning .wm-toast__icon {
    background: #fffbeb;
    color: #d97706;
}
.wm-toast--warning .wm-toast__label { color: #d97706; }

.wm-toast--info .wm-toast__icon {
    background: #eff6ff;
    color: #2563eb;
}
.wm-toast--info .wm-toast__label { color: #2563eb; }

body.demo-mode .wm-toast-host {
    top: 56px;
}

@media (max-width: 576px) {
    .wm-toast-host {
        top: 12px;
        width: calc(100vw - 24px);
    }
    body.demo-mode .wm-toast-host {
        top: 48px;
    }
    .wm-toast {
        padding: 12px 14px;
        border-radius: 12px;
    }
}
