﻿namespace SCCS2.Administracion.Blazor.Server.wwwroot.css
/* async-job-monitor.css */
.proc-toast-dock {
    position: fixed;
    top: 64px; /* debajo del header */
    right: 18px;
    width: 360px;
    max-width: 92vw;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none; /* no bloquea la UI */
}

/* Card base */
.proc-toast {
    pointer-events: auto;
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.proc-toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0,0,0,.18);
}

/* Estados */
.proc-running {
    border-left: 4px solid rgba(59,130,246,.85);
}

.proc-ok {
    border-left: 4px solid rgba(34,197,94,.85);
}

/* (opcional) estado failed si lo agregas después */
.proc-failed {
    border-left: 4px solid rgba(239,68,68,.90);
}

/* Header del toast */
.proc-toast-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

/* derecha: meta + botón cerrar */
.proc-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proc-title {
    font-weight: 800;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.proc-meta {
    font-weight: 800;
    font-size: 12px;
    opacity: .8;
}

.proc-sub {
    font-size: 12.5px;
    opacity: .75;
    margin-bottom: 10px;
}

/* Progreso del proceso */
.proc-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.08);
    overflow: hidden;
    margin-bottom: 6px;
}

.proc-fill {
    height: 100%;
    border-radius: 999px;
    background: rgba(59,130,246,.78);
    transition: width .3s ease;
}

/* Barra de tiempo (regresiva) */
.proc-timebar {
    height: 5px;
    border-radius: 999px;
    background: rgba(0,0,0,.06);
    overflow: hidden;
}

.proc-timefill {
    height: 100%;
    border-radius: 999px;
    background: rgba(59,130,246,.35);
    transition: width 1s linear;
}

/* Flash/pulse al refrescar */
.proc-pulse {
    animation: procPulse .22s ease-out;
}

@keyframes procPulse {
    0% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.01);
    }

    100% {
        transform: scale(1);
    }
}

/* Botón cerrar */
.proc-close {
    border: none;
    background: rgba(0,0,0,.06);
    width: 22px;
    height: 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    opacity: .8;
    padding: 0;
}

    .proc-close:hover {
        background: rgba(0,0,0,.12);
        opacity: 1;
    }

/* Link de acción opcional */
.proc-action-link {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    opacity: .75;
    text-decoration: underline;
    margin-top: 8px;
}

    .proc-action-link:hover {
        opacity: 1;
    }
