/* assets/css/toast.css — V5.0 (Rectangular Top-Right) */

/* Estilos Base del Toast */
.fc-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    
    /* Diseño Rectangular Elegante */
    background: #ffffff;
    color: #1f2937;
    padding: 16px 20px;
    border-radius: 8px; /* Bordes suaves, no redondos del todo */
    border-left: 5px solid var(--border-color, #ccc); /* Línea de acento */
    
    /* Sombra Profunda (Efecto Flotante) */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.02);
    
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 300px;
    max-width: 400px;
    
    /* Flex para icono y texto */
    display: flex;
    align-items: center;
    gap: 12px;
    
    /* Animación de Entrada (Desde la derecha) */
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Estado Visible */
.fc-toast.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Variantes de Color (Borde izquierdo + Icono) --- */

/* Éxito (Verde) */
.fc-toast--success {
    border-left-color: #10b981;
}
.fc-toast--success::before {
    content: '\f00c'; /* Icono Check de FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.2rem;
    color: #10b981;
}

/* Error (Rojo) */
.fc-toast--error {
    border-left-color: #ef4444;
}
.fc-toast--error::before {
    content: '\f071'; /* Icono Alerta */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
    color: #ef4444;
}

/* Aviso (Naranja) */
.fc-toast--warning {
    border-left-color: #f59e0b;
}
.fc-toast--warning::before {
    content: '\f12a'; /* Icono Exclamación */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.2rem;
    color: #f59e0b;
}

/* Info (Azul) */
.fc-toast--info {
    border-left-color: #3b82f6;
}
.fc-toast--info::before {
    content: '\f05a'; /* Icono Info */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.2rem;
    color: #3b82f6;
}

/* --- Modo Oscuro --- */
body.dark .fc-toast {
    background: #1e293b;
    color: #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Responsive (Móvil) */
@media (max-width: 600px) {
    .fc-toast {
        top: 10px;
        right: 10px;
        left: 10px; /* Ocupa todo el ancho arriba */
        width: auto;
        min-width: 0;
        transform: translateY(-20px); /* En móvil cae de arriba */
    }
    .fc-toast.visible {
        transform: translateY(0);
    }
}