/**
 * Estilos para sistema de notificaciones Toast
 * Reutilizable en todo el sistema
 */

/* Contenedor de notificaciones toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

/* Toast individual */
.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-out 2.7s forwards;
    border-left: 4px solid;
}

/* Toast de éxito (verde) */
.toast.toast-success {
    border-left-color: #27AE60;
    background: #d4edda;
}

/* Toast de error (rojo) */
.toast.toast-error {
    border-left-color: #E74C3C;
    background: #f8d7da;
}

/* Icono del toast */
.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    font-weight: bold;
}

.toast-success .toast-icon {
    color: #27AE60;
}

.toast-error .toast-icon {
    color: #E74C3C;
}

/* Contenido del toast */
.toast-content {
    flex: 1;
}

.toast-message {
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
}

.toast-success .toast-message {
    color: #155724;
}

.toast-error .toast-message {
    color: #721c24;
}

/* Botón de cerrar */
.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* Animaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

