/* =========================================
   SISTEMA GLOBAL DE TOASTS
   ========================================= */
#toast-container {
    position: fixed;
    top: 20px; /* Margen desde el techo de la pantalla */
    left: 50%; /* Lo empuja hacia el centro */
    transform: translateX(-50%); /* Ajuste matemático para un centrado perfecto */
    z-index: 99999; /* Por encima de todo, incluidos los juegos */
    display: flex;
    flex-direction: column; /* Si llegan varias notis, se apilan hacia abajo */
    gap: 15px;
    pointer-events: none;
    align-items: center; /* Asegura que la tarjeta no se deforme */
}

.toast-noti {
    background: #1a1a1a;
    border-left: 4px solid #df1818; /* Roja por defecto */
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    min-width: 250px;
    max-width: 350px;
    pointer-events: auto;

    /* ESTADO INICIAL: Invisible y 100px más arriba de su posición final */
    opacity: 0;
    transform: translateY(-100px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

/* ANIMACIÓN DE ENTRADA */
.toast-noti.show {
    opacity: 1;
    transform: translateY(0); /* Desliza hacia abajo hasta su posición natural */
}

/* ANIMACIÓN DE SALIDA */
.toast-noti.hide {
    opacity: 0;
    transform: translateY(-100px); /* Vuelve a deslizarse hacia arriba mientras desaparece */
}

/* Variante verde para amigos (No la borres, la usa tu JS) */
.toast-amigo {
    border-left-color: #44ff66;
}

/* Textos e iconos */
.toast-icon { font-size: 1.5rem; color: #df1818; }
.toast-content { display: flex; flex-direction: column; overflow: hidden; }
.toast-titulo { font-weight: bold; font-size: 0.95rem; }
.toast-desc { font-size: 0.85rem; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#toast-container .toast-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

#toast-container .toast-action {
    all: unset;
    box-sizing: border-box !important;

    flex: 1;
    min-width: 0;
    padding: 7px 10px !important;

    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;

    font-family: Arial, sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: 0 !important;

    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    transition: filter 0.15s ease, opacity 0.15s ease !important;
}

#toast-container .btn-toast-accept {
    background: #28a745 !important;
}

#toast-container .btn-toast-reject {
    background: #dc3545 !important;
}

#toast-container .toast-action:hover {
    filter: brightness(1.12);
    transform: none !important;
}

#toast-container .toast-action:active {
    transform: none !important;
    box-shadow: none !important;
}

#toast-container .toast-action:disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
}