Anion-π and halide-halide nonbonding interactions in a new ionic liquid based on imidazolium cation with three-dimensional magnetic ordering in the solid state.