/* ============================================ */
/* VIPROIDS - TOAST GLOBAL UNIFICADO           */
/* Compatible con VIPToast + todas las páginas */
/* ============================================ */

/* Contenedor */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

/* Toast base */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-left: 4px solid #ff6b00;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    min-width: 280px;
    max-width: 420px;
    pointer-events: all;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Toast visible */
.toast.toast-visible,
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast ocultándose */
.toast.toast-hiding,
.toast.hiding {
    opacity: 0;
    transform: translateX(60px);
}

/* Tipos de toast */
.toast.toast-success,
.toast.success {
    border-left-color: #00c853;
}

.toast.toast-error,
.toast.error {
    border-left-color: #ff5252;
}

.toast.toast-warning,
.toast.warning {
    border-left-color: #ffab00;
}

.toast.toast-info,
.toast.info {
    border-left-color: #60a5fa;
}

/* Icono */
.toast-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
}

.toast.toast-success .toast-icon,
.toast.success .toast-icon {
    color: #00c853;
}

.toast.toast-error .toast-icon,
.toast.error .toast-icon {
    color: #ff5252;
}

.toast.toast-warning .toast-icon,
.toast.warning .toast-icon {
    color: #ffab00;
}

.toast.toast-info .toast-icon,
.toast.info .toast-icon {
    color: #60a5fa;
}

/* Contenido */
.toast-content {
    flex: 1;
}

.toast-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-message {
    color: #b0b0c0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Botón cerrar */
.toast-close {
    background: #ff6b00;
    border: none;
    color: #ffffff;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    margin-left: auto;
    transition: background 0.2s ease;
}

.toast-close:hover {
    background: #ff8c00;
    color: #ffffff;
}

/* Barra de progreso */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255,255,255,0.2);
    border-radius: 0 0 8px 8px;
}

/* ============================================ */
/* RESPONSIVE - TABLET                         */
/* ============================================ */
@media (max-width: 992px) {
    .toast-container {
        bottom: 20px;
        right: 20px;
    }

    .toast {
        min-width: 260px;
        max-width: 380px;
    }
}

/* ============================================ */
/* RESPONSIVE - MÓVIL                          */
/* ============================================ */
@media (max-width: 768px) {
    .toast-container {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
        width: 100%;
        padding: 12px 14px;
    }

    .toast-message {
        font-size: 0.8rem;
    }
}

/* ============================================ */
/* RESPONSIVE - MÓVIL PEQUEÑO                  */
/* ============================================ */
@media (max-width: 480px) {
    .toast-container {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .toast {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 6px;
    }

    .toast-icon {
        font-size: 1.2rem;
    }

    .toast-title {
        font-size: 0.9rem;
    }

    .toast-message {
        font-size: 0.78rem;
    }
}

/* ============================================ */
/* RESPONSIVE - ULTRA PEQUEÑO                  */
/* ============================================ */
@media (max-width: 360px) {
    .toast-container {
        bottom: 8px;
        left: 8px;
        right: 8px;
    }

    .toast {
        padding: 8px 10px;
        gap: 8px;
    }

    .toast-close {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

/* ============================================ */
/* PRINT - OCULTAR TOASTS AL IMPRIMIR          */
/* ============================================ */
@media print {
    .toast-container {
        display: none !important;
    }
}